Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest exp begin
- state start begin
- when 9003.chat."Expokurwy" with pc.is_gm() begin
- say_title("Oddawanie expa")
- say("Czy chcesz pozbyc sie")
- say("pewnej ilosci punktow doswiadczenia?")
- local x = select("Tak", "Nie")
- if x == 2 then
- say_title("Zegnaj")
- say("Spoko, moze kiedy indziej")
- return
- elseif x == 1 then
- say_title("Ilosc PD")
- say("Napisz ile punktow doswiadczenia")
- say("Chcesz oddac")
- local s=input()
- if pc.get_exp()+s<pc.get_exp() then
- say_title("Oszust?!")
- say("Ojojoj pogniewamy sie")
- say("Nie oszukuj !!")
- return
- elseif pc.get_exp()<s then
- say_title("Brak PD")
- say("Niestety nie masz tyle")
- say("Punktow doswiadcznia")
- return
- else
- pc.give_exp2(-s)
- say("Gratulacje oddales ".. s .." PD")
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement