Advertisement
Guest User

Untitled

a guest
Dec 16th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.62 KB | None | 0 0
  1. quest drop_sosete begin
  2. state start begin
  3. when login begin
  4. if game.get_event_flag("sosete_event") == 1 then
  5. notice("[Eveniment]Drop Sosete: Activ")
  6. end
  7. end
  8. when kill begin
  9. local m_ind = pc.get_map_index()
  10. if npc.is_pc() then
  11. else
  12. if m_ind == 1 or m_ind == 3 or m_ind == 21 or m_ind == 23 or m_ind == 41 or m_ind == 43 and pc.get_level() <= 100 then
  13. if game.get_event_flag("sosete_event") == 1 then
  14. local chance = number(1, 100)
  15. local chance_max = game.get_event_flag("mond_drop_chance")
  16. if chance <= chance_max then
  17. pc.give_item2(50010)
  18. else
  19. end
  20. else
  21. end
  22. elseif m_ind == 63 or m_ind == 64 and pc.get_level() <= 100 then
  23. if game.get_event_flag("sosete_event") == 1 then
  24. local chance = number(1, 100)
  25. local chance_max = game.get_event_flag("mond_drop_chance")
  26. if chance <= chance_max then
  27. pc.give_item2(50010)
  28. else
  29. end
  30. else
  31. end
  32. elseif m_ind == 65 or m_ind == 61 or m_ind == 104 and pc.get_level() <= 100 then
  33. if game.get_event_flag("sosete_event") == 1 then
  34. local chance = number(1, 100)
  35. local chance_max = game.get_event_flag("mond_drop_chance")
  36. if chance <= chance_max then
  37. pc.give_item2(50010)
  38. else
  39. end
  40. else
  41. end
  42. elseif m_ind == 62 or m_ind == 71 or m_ind == 67 and pc.get_level() <= 100 then
  43. if game.get_event_flag("sosete_event") == 1 then
  44. local chance = number(1, 100)
  45. local chance_max = game.get_event_flag("mond_drop_chance")
  46. if chance <= chance_max then
  47. pc.give_item2(50010)
  48. else
  49. end
  50. else
  51. end
  52. elseif m_ind == 68 or m_ind == 72 or m_ind == 73 or m_ind == 66 and pc.get_level() <= 100 then
  53. if game.get_event_flag("sosete_event") == 1 then
  54. local chance = number(1, 100)
  55. local chance_max = game.get_event_flag("mond_drop_chance")
  56. if chance <= chance_max then
  57. pc.give_item2(50010)
  58. else
  59. end
  60. else
  61. end
  62. elseif m_ind == 103 or m_ind == 70 or m_imd == 69 and pc.get_level() <= 100 then
  63. if game.get_event_flag("sosete_event") == 1 then
  64. local chance = number(1, 100)
  65. local chance_max = game.get_event_flag("mond_drop_chance")
  66. if chance <= chance_max then
  67. pc.give_item2(50010)
  68. else
  69. end
  70. else
  71. end
  72. end
  73. end
  74. end
  75. when 20031.chat."<GM> Eveniment Cufere" with pc.is_gm() begin
  76. if game.get_event_flag("sosete_event") == 1 then
  77. say_title("Administrare Eveniment:")
  78. say("")
  79. say("[Eveniment]Drop Sosete: Activ")
  80. say("")
  81. say_reward("Event Beenden?")
  82. local s=select("Da", "Nu")
  83. if s==1 then
  84. say_title("Administrare Eveniment:")
  85. say("")
  86. say("Evenimentul a luat sfârsit .")
  87. say("~ Pe data viitoare !")
  88. game.set_event_flag("sosete_event", 0)
  89. char_log(0, "sosete_event_end from" ..pc.get_name())
  90. notice_all("[Eveniment]Drop Sosete: Terminat")
  91. elseif s==2 then
  92. say_title("Administrare Eveniment:")
  93. say("")
  94. say("~ Pe curând !")
  95. end
  96. else
  97. say_title("Administrare Eveniment:")
  98. say("")
  99. say("Cufãr Com Clar De Lunã : ~ Închis ")
  100. say("")
  101. say_reward("Start Eveniment?")
  102. local s=select("Da", "Nu")
  103. if s==1 then
  104. say_title("Administrare Eveniment:")
  105. say("")
  106. say("[Eveniment]Drop Sosete: A inceput")
  107. game.set_event_flag("sosete_event", 1)
  108. char_log(0, "sosete_event_start from" ..pc.get_name())
  109. notice_all("[Eveniment]Drop Sosete: A inceput!")
  110. elseif s==2 then
  111. say_title("Administrare Eveniment:")
  112. say("")
  113. say("~ Pe curând !")
  114. end
  115. end
  116. end
  117. when 20031.chat."<GM> Dropul Cuferelor" with pc.is_gm() begin
  118. if pc.get_name() == "[SA]Ionut" or pc.get_name() == "[#SoSPvP]" or pc.get_name() == "[#Baek]" then
  119. say_title("Administrare Eveniment:")
  120. say("")
  121. say("Cat de mult sã fie dropul acestora ?")
  122. say("")
  123. say_reward("Între 1-100")
  124. say("")
  125. local new_chance = tonumber(input())
  126. if new_chance < 0 or new_chance > 100 then
  127. say_title("Administrare Eveniment:")
  128. say("")
  129. say("Introducere incorectã ~")
  130. else
  131. char_log(0, "sosete_event_chance from" ..pc.get_name().. " to " ..new_chance.. "%")
  132. game.set_event_flag("mond_drop_chance", new_chance)
  133. say_title("Administrare Eveniment:")
  134. say("")
  135. say("Dropul actual " ..new_chance.. " setat.")
  136. say("~ Pe curând !")
  137. end
  138. else
  139. say_title("Administrare Eveniment:")
  140. say("")
  141. say("Nu ai dreptul pentru a executa evenimentul .")
  142. end
  143. end
  144. end
  145. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement