Advertisement
Proiect

mentenanta.quest

Mar 27th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. quest mentenanta begin
  2. state start begin
  3. when login with game.get_event_flag("mentenanta") == 1 begin
  4. timer("mentenanta", 1)
  5. end
  6.  
  7. when login with game.get_event_flag("mentenanta") == 0 begin
  8. timer("mentenanta_check", 10)
  9. end
  10.  
  11. when mentenanta_check.timer begin
  12. if game.get_event_flag("mentenanta") == 1 then
  13. command("quit")
  14. else
  15. return
  16. end
  17. end
  18.  
  19. when mentenanta.timer begin
  20. say("Este mentenanta,[ENTER]trebuie sa introduci parola,[ENTER]altfel nu poti intra pe server:")
  21. local pw = input ( )
  22. if pw == "----------aici scrii parola ta ca să intri pe server----------" then
  23. say("Codul este bun!")
  24. say("Poti intra!")
  25. else
  26. say("Parola este incorecta!")
  27. say("Te voi da afara!")
  28. say("[DELAY value; 1000]. . . . .[/DELAY]")
  29. command("quit")
  30. end
  31. end
  32.  
  33. when 20095.chat."GM: Mentenanta" with pc.is_gm() begin
  34. say_title("Mentenanta")
  35. say("Introdu parola pentru a putea [ENTER]activa sau dezactiva [ENTER]mentenanta")
  36. local pass_m = input()
  37. if pass_m == "---------aici scrii parola ta ca să intri în npc----------" then
  38. say("Optiuni mentenanta")
  39. if game.get_event_flag("mentenanta") == 0 then
  40. local meniu_m1 = select ("Porneste mentenanta", "Iesire")
  41. if meniu_m1 == 2 then
  42. return
  43. elseif meniu_m1 == 1 then
  44. game.set_event_flag("mentenanta", 1)
  45. notice_all("[MENTENANTA] Serverul a intrat in mentenanta revenim curand!")
  46. timer("mentenanta_check", 5)
  47. end
  48. elseif game.get_event_flag("mentenanta") == 1 then
  49. local meniu_m2 = select ("Opreste mentenanta", "Iesire")
  50. if meniu_m2 == 2 then
  51. return
  52. elseif meniu_m2 == 1 then
  53. game.set_event_flag("mentenanta", 0)
  54. notice_all("[MENTENANTA A FOST OPRITA]")
  55. end
  56. end
  57. else
  58. say_title("Mentenanta")
  59. say("Parola este incorecta")
  60. end
  61. end --when
  62.  
  63. end
  64. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement