Advertisement
Guest User

OX

a guest
Jan 17th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.90 KB | None | 0 0
  1. game\share\locale\romania\quest\object nu este --> 20358 flori fara nume
  2.  
  3. Quest :
  4.  
  5. quest competitia_ox begin
  6. state start begin
  7. when letter with pc.get_map_index() == 113 begin
  8. send_letter("Pãrãseste evenimentul OX")
  9. end
  10.  
  11. when login with pc.get_map_index() == 113 begin
  12. addimage ( - 85 , - 90 , "ox.tga" )
  13. say_red ( "[ENTER][ENTER]" )
  14. say_red ( "Salut, "..pc.get_name ()..".")
  15. say_red ( "Dacã vrei ca, competitia sã se desfãsoare" )
  16. say_red ( "într-un mediu plãcut, trebuie sã ai un")
  17. say_red ( "comportament adecvat fatã de echipã," )
  18. say_red ( "cât si de restul jucãtorilor. Nu arunca obiecte" )
  19. say_red ( "pe jos pentru cã risti sã fi deconectat." )
  20. say_red ( "" )
  21. say_alert ( "Succes la competitie!" )
  22. say_red ( "" )
  23. end
  24.  
  25. when button or info begin
  26.  
  27. say_title ( "Pãrãseste evenimentul OX" )
  28. say ( "Esti sigur cã vrei sã pãrãsesti evenimentul?[ENTER]" )
  29.  
  30. local s=select( "Da" , "Nu" )
  31.  
  32. if s==2 then
  33.  
  34. send_letter( "Pãrãseste evenimentul OX" )
  35. return
  36.  
  37. end
  38. local empire = pc.get_empire()
  39. if empire== 1 then
  40. pc.warp(473900, 954600)
  41. elseif empire == 2 then
  42. pc.warp(63200, 166700)
  43. elseif empire == 3 then
  44. pc.warp(959600, 269700)
  45. end
  46. end
  47.  
  48. when 20011.chat."Competitia OX" begin
  49.  
  50. say_title("Uriel, învãtatul:")
  51. say ( "Hey, tu de acolo! Da, da tu - vino pânã aici!" )
  52. say ( "Hai sã iti arãt ceva interesant." )
  53. say ( "Competitia OX. Eu te pot duce acolo." )
  54. say ( "Am auzit cã poti castiga premii interesante!" )
  55. say ( "" )
  56.  
  57. wait()
  58.  
  59. if pc.get_level() <= 109 then
  60.  
  61. say_title("Uriel, învãtatul:")
  62. say ( "Îmi pare rãu, dar nu ai nivelul necesar pentru" )
  63. say ( "a participa.[ENTER]" )
  64. say_orange ( "Nivelul minim pentru participare: 110" )
  65. say ( "" )
  66. return
  67. end
  68.  
  69. if game.get_event_flag("oxevent_status") == 0 then
  70.  
  71. say_title("Uriel, învãtatul:")
  72. say ( "Momentan nu am auzit cã se desfãsoarã nici" )
  73. say ( "o competitie. Te voi anunta eu când aflu ceva." )
  74. say ( "" )
  75.  
  76.  
  77. elseif game.get_event_flag("oxevent_status") == 1 then
  78.  
  79. say_title( "Uriel, învãtatul:" )
  80. say ( "Doresti sã participi la competitie" )
  81. say ( "sau doar sã te uiti?[ENTER]" )
  82.  
  83. local s = select( "Particip" , "Spectator", "Înapoi" )
  84.  
  85. if s == 1 then
  86.  
  87. say_title("Uriel, învãtatul:")
  88. say ( "Imediat te voi duce la competitie." )
  89. say ( "Succes.[ENTER]" )
  90. horse.unride()
  91. horse.unsummon()
  92. wait()
  93. pc.warp(896500, 24600)
  94. elseif s == 2 then
  95.  
  96. say_title("Uriel, învãtatul:")
  97. say ( "Vrei sa fii doar spectator? Ok, alegerea ta." )
  98. say ( "Imediat vei fi teleportat.[ENTER]" )
  99. horse.unride()
  100. horse.unsummon()
  101. wait()
  102. pc.warp(896300, 28900)
  103. end
  104. elseif game.get_event_flag("oxevent_status") == 2 then
  105.  
  106. say_title("Uriel, învãtatul:")
  107. say ( "Îmi pare rãu, dar competitia a început deja ..." )
  108. say ( "Dar, dacã vrei, mai poti participa ca spectator.[ENTER]" )
  109. say ( "" )
  110.  
  111. local s = select( "Particip" , "Înapoi")
  112. if s == 1 then
  113.  
  114. say_title("Uriel, învãtatul:")
  115. say ( "Imediat vei fi teleportat.[ENTER]" )
  116. horse.unride()
  117. horse.unsummon()
  118. wait()
  119. pc.warp(896300, 28900)
  120. end
  121. end
  122. end
  123.  
  124. when 20358.chat."GM: Panou competitie OX" with pc.is_gm() begin
  125. local stat = oxevent.get_status()
  126. if stat == 0 then
  127.  
  128. say_gm_title( "Panou competitie OX" )
  129. say_gm ( "Începe OX?[ENTER]" )
  130.  
  131. local s = select( "Da" , "Nu")
  132. if s==2 then return end
  133. local v = oxevent.open()
  134. if v == 0 then
  135.  
  136. say_gm_title ( "Panou competitie OX" )
  137. say_gm ( "Nu am putut încãrca întrebãrile.[ENTER]" )
  138.  
  139. return
  140.  
  141. elseif v == 1 then
  142.  
  143. say_gm_title( "Panou competitie OX" )
  144. say_gm ( "Competitia OX a început.[ENTER]" )
  145.  
  146. server_timer("automatic1", 10*60, 113)
  147.  
  148. notice_all ( "Competitia OX a început! Pentru a intra la concurs fugiti repede la Uriel. " )
  149. notice_all ( "El vã va duce la competitie. Succes tuturor." )
  150.  
  151. else
  152. say("Error1")
  153. return
  154. end
  155. elseif stat == 1 then
  156.  
  157. say_gm_title( "Panou competitie OX" )
  158. say_gm ( "Portile sunt încã deschise." )
  159. say_gm ( "Jucãtori intrati: "..oxevent.get_attender()..".[ENTER]" )
  160.  
  161. local s = select ( "Închide portile", "Înapoi" )
  162. if s == 1 then
  163.  
  164. notice_all ( "Portile competitiei OX au fost închise. Mult noroc participantilor." )
  165.  
  166. oxevent.close()
  167. end
  168. elseif stat == 2 then
  169.  
  170. say_title("Concursul OX")
  171.  
  172. local s = select ( "Adreseazã întrebare", "Oferã un premiu participantilor", "Oferã un premiu castigatorului", "Închide competitia", "Anuleazã competitia", "Înapoi")
  173.  
  174. if s == 1 then
  175. local v = oxevent.quiz(1, 30)
  176. if v == 0 then
  177.  
  178. say_gm_title( "Panou competitie OX" )
  179. say_gm ( "Eroare adresare întrebare.[ENTER]" )
  180.  
  181. return
  182. else
  183.  
  184. say_gm_title( "Panou competitie OX" )
  185. say_gm ( "Întrebare adresatã cu succes.[ENTER]" )
  186.  
  187. return
  188. end
  189.  
  190. elseif s == 2 then
  191.  
  192. say_gm_title( "Panou competitie OX" )
  193. say_gm ( "Parolã:[ENTER]" )
  194. local sname = input()
  195. if sname == "Metin2Fly-Zone" then
  196.  
  197. say_gm_title( "Panou competitie OX" )
  198. say_gm ( "Adaugã obiect:[ENTER]" )
  199.  
  200. local item_vnum = input()
  201.  
  202. say_gm_title( "Panou competitie OX" )
  203. say_gm ( "Adaugã numãr articole:[ENTER]" )
  204.  
  205. local item_count = input()
  206. oxevent.give_item(item_vnum, item_count)
  207.  
  208. say_gm_title( "Panou competitie OX" )
  209. say_gm ( "Participantii au primit "..item_name(item_vnum)..".[ENTER]")
  210.  
  211. notice_all ( "Participantii competitei OX au primit "..item_count.."x"..item_name(item_vnum))
  212. end
  213.  
  214. elseif s == 3 then
  215.  
  216. say_gm_title( "Panou competitie OX" )
  217. say_gm ( "Parolã:[ENTER]" )
  218. local sname = input()
  219. if sname == "Metin2Fly-Zone" then
  220.  
  221. say_gm_title( "Panou competitie OX" )
  222. say_gm ( "Adaugã obiect:[ENTER]" )
  223.  
  224. local item_vnum = input()
  225.  
  226. say_gm_title( "Panou competitie OX" )
  227. say_gm ( "Adaugã numãr articole:[ENTER]" )
  228.  
  229. local item_count = input()
  230. oxevent.give_item(item_vnum, item_count)
  231.  
  232. say_gm_title( "Panou competitie OX" )
  233. say_gm ( "Câstigãtorul competitiei a primit "..item_name(item_vnum)..".[ENTER]")
  234.  
  235. notice_all ( "WOW Câstigãtorul competitiei a primit "..item_count.."x "..item_name(item_vnum))
  236. end
  237.  
  238. elseif s == 4 then
  239.  
  240. oxevent.end_event()
  241.  
  242. notice_all ( "Competitia OX a luat sfârsit." )
  243.  
  244. setskin(0)
  245. elseif s == 5 then
  246.  
  247. say_gm_title( "Panou competitie OX" )
  248. say_gm ( "Esti sigur cã vrei sã opresti competitia?[ENTER]" )
  249.  
  250. local s = select("Da", "Nu")
  251. if s == 1 then
  252.  
  253. oxevent.end_event_force()
  254. end
  255. elseif s == 6 then
  256. return
  257. end
  258. elseif stat == 3 then
  259.  
  260. say_gm_title( "Panou competitie OX" )
  261. say_gm ( "Momentan este o întrebare adresatã.[ENTER]" )
  262.  
  263. else
  264. say_gm_title( "Panou competitie OX" )
  265. say_gm ( "Eroare.[ENTER]" )
  266.  
  267. return
  268. end
  269. end
  270.  
  271. end
  272. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement