Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.32 KB | None | 0 0
  1. quest event_xmas_help1 begin
  2. --http://wklej.to/xJy9C
  3. state start begin
  4. when 20254.chat."Świąteczna Kraina" with game.get_event_flag("event_xmas_help") == 1 and pc.get_map_index() != 11 begin
  5. say_title("Święty Elf!")
  6. say("")
  7. say("Świąteczna Kraina jest niedostępna.")
  8. say("Mogę Cię zabrać na Świąteczną Krainę.")
  9. say("")
  10. local s = select("Chcę przejść ", "Nie dzięki")
  11. if s == 2 then
  12. return
  13. elseif s == 1 then
  14. pc.warp(1744100, 68200)
  15. end
  16. end
  17. when login with pc.get_map_index() == 11 begin
  18. cmdchat("xmas_snow1 1")
  19. --cmdchat("sound isound/xmas_great.wav")
  20. end
  21. when 120268.use begin
  22. pc.mount(21614,60*60*60)
  23. end
  24. when 120267.use begin
  25. pc.mount(20249,60*60*60)
  26. end
  27. when kill with not npc.is_pc() and game.get_event_flag("event_xmas_help") == 1 begin
  28.  
  29. local szansa = number(1, 350)
  30. if pc.get_premium_remain_sec(PREMIUM_EXP) > 0 then
  31. local szansa = number(1, 190)
  32. end
  33. local x = pc.get_local_x() + number(1,5)
  34. local y = pc.get_local_y() + number(1,5)
  35. if szansa == 1 then
  36. pc.aggregate_monster()
  37. mob.spawn(7039, x, y, 0, 0, 1)
  38. mob.spawn(7036, x, y, 0, 0, 1)
  39. mob.spawn(116, x, y, 0, 0, 1)
  40. chat("Świąteczny prezent!")
  41. end
  42.  
  43. end
  44.  
  45. when 116.kill with game.get_event_flag("event_xmas_help") == 1 begin
  46. pc.give_item2(50037, 8)
  47. end
  48.  
  49. when 681.kill or 849.kill with game.get_event_flag("event_xmas_help") == 1 begin
  50. if pc.get_level() < 201 then
  51. local los_item = {
  52. {120119,3},
  53. {70011,30},
  54. {30192,30},
  55. {70018,30},
  56. {70029,30},
  57. {30193,30},
  58. {25041,10},
  59. {30059,20},
  60. {71018,5},
  61. {30203,30},
  62. {70031,20},
  63. {120298,2},
  64. {120297,3},
  65. {71052,2},
  66. {50011,30},
  67. {50037,20},
  68. {120154,20},
  69. {50080,1},
  70. {120131,2},
  71. {120127,5},
  72. {71140,1},
  73. {85001,1},
  74. {71139,5},
  75. {71138,1},
  76. {120352,1},
  77. {71136,2}
  78. }
  79. rand1 = math.random(1,table.getn(los_item))
  80. rand2 = math.random(1,table.getn(los_item))
  81. rand3 = math.random(1,table.getn(los_item))
  82. rand4 = math.random(1,table.getn(los_item))
  83. pc.give_item2(los_item[rand1][1],los_item[rand1][2])
  84. pc.give_item2(los_item[rand2][1],los_item[rand2][2])
  85. pc.give_item2(los_item[rand3][1],los_item[rand3][2])
  86. pc.give_item2(los_item[rand4][1],los_item[rand4][2])
  87. local x1 = number(1,100)
  88. if x1 < 2 then
  89. pc.give_item2(53008,1)
  90. end
  91. local x1 = number(1,100)
  92. if x1 < 2 then
  93. pc.give_item2(53009,1)
  94. end
  95. local x1 = number(1,100)
  96. if x1 < 2 then
  97. pc.give_item2(71156,1)
  98. end
  99. local x1 = number(1,100)
  100. if x1 < 2 then
  101. pc.give_item2(71155,1)
  102. end
  103. local x1 = number(1,100)
  104. if x1 < 5 then
  105. pc.give_item2(55238,1)
  106. end
  107. local x1 = number(1,100)
  108. if x1 < 5 then
  109. pc.give_item2(55239,1)
  110. end
  111. local x1 = number(1,100)
  112. if x1 < 5 then
  113. pc.give_item2(55240,1)
  114. end
  115. local x1 = number(1,100)
  116. if x1 < 5 then
  117. pc.give_item2(55241,1)
  118. end
  119. local x1 = number(1,100)
  120. if x1 < 5 then
  121. pc.give_item2(55242,1)
  122. end
  123. local x1 = number(1,100)
  124. if x1 < 5 then
  125. pc.give_item2(55243,1)
  126. end
  127. local x1 = number(1,100)
  128. if x1 < 5 then
  129. pc.give_item2(55244,1)
  130. end
  131. local x1 = number(1,100)
  132. if x1 < 5 then
  133. pc.give_item2(85039,1)
  134. end
  135. local x1 = number(1,100)
  136. if x1 < 5 then
  137. pc.give_item2(41324,1)
  138. end
  139. local x1 = number(1,100)
  140. if x1 < 5 then
  141. pc.give_item2(41325,1)
  142. end
  143. end
  144. end
  145. when 684.kill with game.get_event_flag("event_xmas_help") == 1 begin
  146. local los_item = {
  147. {120165,1},
  148. {120166,1},
  149. {120167,1},
  150. {120164,1},
  151. {120154,15},
  152. {50037,20},
  153. {50011,20},
  154. {120155,3},
  155. {71136,3},
  156. {71051,1},
  157. {71052,2},
  158. {71018,5},
  159. {71019,8},
  160. {71020,5},
  161. {120127,5},
  162. {120297,3},
  163. {120299,2},
  164. {71151,1},
  165. {120298,3},
  166. {85000,5},
  167. {50010,5},
  168. {120195,1},
  169. {120337,1},
  170. {120339,1},
  171. {120338,1},
  172. {120342,1},
  173. {120341,5},
  174. {120343,1}
  175. }
  176. rand1 = math.random(1,table.getn(los_item))
  177. rand2 = math.random(1,table.getn(los_item))
  178. rand3 = math.random(1,table.getn(los_item))
  179. rand4 = math.random(1,table.getn(los_item))
  180. game.drop_item_with_ownership(los_item[rand1][1],los_item[rand1][2])
  181. game.drop_item_with_ownership(los_item[rand2][1],los_item[rand2][2])
  182. game.drop_item_with_ownership(los_item[rand3][1],los_item[rand3][2])
  183. game.drop_item_with_ownership(los_item[rand4][1],los_item[rand4][2])
  184. local x1 = number(1,100)
  185. if x1 < 2 then
  186. pc.give_item2(53008,1)
  187. end
  188. local x1 = number(1,100)
  189. if x1 < 2 then
  190. pc.give_item2(53009,1)
  191. end
  192. local x1 = number(1,100)
  193. if x1 < 2 then
  194. pc.give_item2(71156,1)
  195. end
  196. local x1 = number(1,100)
  197. if x1 < 2 then
  198. pc.give_item2(71155,1)
  199. end
  200. local x1 = number(1,100)
  201. if x1 < 5 then
  202. pc.give_item2(55238,1)
  203. end
  204. local x1 = number(1,100)
  205. if x1 < 5 then
  206. pc.give_item2(55239,1)
  207. end
  208. local x1 = number(1,100)
  209. if x1 < 5 then
  210. pc.give_item2(55240,1)
  211. end
  212. local x1 = number(1,100)
  213. if x1 < 5 then
  214. pc.give_item2(55241,1)
  215. end
  216. local x1 = number(1,100)
  217. if x1 < 5 then
  218. pc.give_item2(55242,1)
  219. end
  220. local x1 = number(1,100)
  221. if x1 < 5 then
  222. pc.give_item2(55243,1)
  223. end
  224. local x1 = number(1,100)
  225. if x1 < 5 then
  226. pc.give_item2(55244,1)
  227. end
  228. local x1 = number(1,100)
  229. if x1 < 5 then
  230. pc.give_item2(85039,1)
  231. end
  232. local x1 = number(1,100)
  233. if x1 < 5 then
  234. pc.give_item2(41324,1)
  235. end
  236. local x1 = number(1,100)
  237. if x1 < 5 then
  238. pc.give_item2(41325,1)
  239. end
  240. end
  241. when 685.kill or 686.kill with game.get_event_flag("event_xmas_help") == 1 begin
  242. local los_item = {
  243. {71052,1},
  244. {120297,1},
  245. {120298,1},
  246. {70029,5},
  247. {70029,10},
  248. {30193,5},
  249. {30193,10},
  250. {70011,5},
  251. {70011,10},
  252. {120337,1},
  253. {71035,1},
  254. {30141,1},
  255. {85000,1},
  256. {30198,5},
  257. {50037,5},
  258. {50514,1},
  259. {70031,10},
  260. {70030,5},
  261. {70030,10},
  262. {30203,5},
  263. {30203,10},
  264. {120106,2},
  265. {120107,2},
  266. {120108,2},
  267. {120109,2},
  268. {120110,2},
  269. {70019,2},
  270. {71107,1}
  271. }
  272. rand1 = math.random(1,table.getn(los_item))
  273. rand2 = math.random(1,table.getn(los_item))
  274. rand3 = math.random(1,table.getn(los_item))
  275. rand4 = math.random(1,table.getn(los_item))
  276. game.drop_item_with_ownership(los_item[rand1][1],los_item[rand1][2])
  277. game.drop_item_with_ownership(los_item[rand2][1],los_item[rand2][2])
  278. game.drop_item_with_ownership(los_item[rand3][1],los_item[rand3][2])
  279. game.drop_item_with_ownership(los_item[rand4][1],los_item[rand4][2])
  280. end
  281. when 677.kill or 678.kill or 679.kill or 680.kill or 682.kill or 683.kill begin
  282. if game.get_event_flag("event_xmas_help") == 1 then
  283. if number(1,100) < 10 then
  284. game.drop_item_with_ownership(50010,1)
  285. end
  286. end
  287. end
  288. end
  289. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement