PHP Code:
quest 150lvl begin
state start begin
when levelup with pc.get_level() == 150 begin
setstate(information)
end
end
state information begin
when letter begin
send_letter("Well done! Reward!!!")
end
when button or info begin
say_title("Hallo "..pc.get_name().."")
say("You managed to arrive 150 level")
say("That's why Intifada2's Team offers you to")
say("Choose one weapon of your choise")
say("There will be 1 set of weapons")
say("")
say("Do you like it?.")
say_reward("You can pick your reward at the Captain.")
end
when 20355.chat."Level 150 reward." begin
say_title("Did you managed to arrive 150lvl?")
say("Well done")
say("That's why we will give you the weapon ")
say("Of your choise")
say("You will choose 4 weapons")
say("Only once so choose wisely")
say_reward("Choose!")
local items = {9199, 9299, 9399, 9499, 9599, 9699}
local a = select("2Hand Weapon", "Weapon", "Archer", "Ninja Weapon", "Shaman 1", "Shaman 2" )
pc.give_item2(items[a], 1)
set_state(finish)
end
end
state finish begin
end
end