Advertisement
Guest User

Untitled

a guest
May 21st, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. quest event_ok_card begin
  2. state start begin
  3. when letter with pc.is_gm() begin
  4. send_letter("GM: Okey-Card")
  5. end
  6. when info or button with pc.is_gm() begin
  7.  
  8. say_title("Okey-Card")
  9. say("")
  10. say("De aici poti sa pornesti si sa opresti evenimentul Okey-Card !")
  11. say("")
  12. say_reward("Vrei sa pornesti acest eveniment?")
  13. say("")
  14. local eternity = select("Activeaza","Dezactiveaza","Iesire")
  15. if eternity == 1 then
  16. command("e carduri 1")
  17. notice_all("Evenimentul Okey-Card a inceput !!!")
  18. notice_all("Pentru a vedea butonul de joc, teleportati-va !")
  19.  
  20. elseif eternity == 2 then
  21.  
  22. if not pc.get_map_index() == 1 or pc.get_map_index() == 21 or pc.get_map_index() == 41 then
  23. chat("Poti dezactiva evenimentul doar in Mapa Farm de Okey-Card !")
  24. chat("Ca sa ajungi acolo trebuie sa apesi pe butonul de Okey-Card !")
  25.  
  26. return
  27. end
  28.  
  29.  
  30. command("e carduri 0")
  31. warp_all_to_village( pc.get_map_index() , 1 )
  32. notice_all("Evenimentul Okey-Card s-a terminat !!!")
  33. notice_all("Multumim de participarea la eveniment !")
  34.  
  35. elseif eternity == 3 then
  36. send_letter("GM: Okey-Card")
  37. end
  38. end
  39. end
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement