Quest problem

01/07/2016 11:09 hacker-2012#1
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
01/07/2016 11:28 .Delta#2
[Only registered and activated users can see links. Click Here To Register...]

All Topics related to errors in quests etc. should be / have to be posted in this Thread.

Furthermore, please always specify which error is displayed.

01/07/2016 12:41 hacker-2012#3
oh...sorry:D and thank you a lot
01/07/2016 13:47 Jinbei#4
#closed