Code:
quest 150lvl begin
state start begin
when levelup with pc.get_level() == 150 begin
setstate(info)
end
end
state info 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 a = select("2Hand Weapon", "Weapon", "Archer", "Ninja Weapon", "Shaman 1", "Shaman 2" )
if a == 1 then pc.give_item2(9199) setstate(finish)
if a == 2 then pc.give_item2(9299) setstate(finish)
if a == 3 then pc.give_item2(9399) setstate(finish)
if a == 4 then pc.give_item2(9499) setstate(finish)
if a == 5 then pc.give_item2(9599) setstate(finish)
if a == 6 then pc.give_item2(9699) setstate(finish)
end
end
state finish begin
end
end
I have this code for quest giving when arrives level 150 some items only ONCE! but it shows error







