Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest event_ok_card begin
- state start begin
- when letter with pc.is_gm() begin
- send_letter("GM: Okey-Card")
- end
- when info or button with pc.is_gm() begin
- say_title("Okey-Card")
- say("")
- say("De aici poti sa pornesti si sa opresti evenimentul Okey-Card !")
- say("")
- say_reward("Vrei sa pornesti acest eveniment?")
- say("")
- local eternity = select("Activeaza","Dezactiveaza","Iesire")
- if eternity == 1 then
- command("e carduri 1")
- notice_all("Evenimentul Okey-Card a inceput !!!")
- notice_all("Pentru a vedea butonul de joc, teleportati-va !")
- elseif eternity == 2 then
- if not pc.get_map_index() == 1 or pc.get_map_index() == 21 or pc.get_map_index() == 41 then
- chat("Poti dezactiva evenimentul doar in Mapa Farm de Okey-Card !")
- chat("Ca sa ajungi acolo trebuie sa apesi pe butonul de Okey-Card !")
- return
- end
- command("e carduri 0")
- warp_all_to_village( pc.get_map_index() , 1 )
- notice_all("Evenimentul Okey-Card s-a terminat !!!")
- notice_all("Multumim de participarea la eveniment !")
- elseif eternity == 3 then
- send_letter("GM: Okey-Card")
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement