Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. quest event_summer_2018 begin
  2. state start begin
  3. when 9215.chat."Lato" with game.get_event_flag("event_summer_2018") == 1 begin
  4.  
  5.  
  6. local s = select("Chcę przejść ", "Nie dzięki")
  7. if s == 2 then
  8. return
  9. elseif s == 1 then
  10. pc.warp(2113500, 3278800)
  11. end
  12. end
  13.  
  14. when kill with not npc.is_pc() and game.get_event_flag("event_summer") == 1 begin
  15. if pc.get_map_index() == 10 then
  16. local los = number(1, 100)
  17. if los <= 5 then
  18. pc.give_item2(120345, 1)
  19. end
  20. end
  21. if pc.get_map_index() != 1 and
  22. pc.get_map_index() != 3 and
  23. pc.get_map_index() != 4 and
  24. pc.get_map_index() != 5 and
  25. pc.get_map_index() != 21 and
  26. pc.get_map_index() != 23 and
  27. pc.get_map_index() != 24 and
  28. pc.get_map_index() != 25 and
  29. pc.get_map_index() != 41 and
  30. pc.get_map_index() != 43 and
  31. pc.get_map_index() != 44 and
  32. pc.get_map_index() != 45 and
  33. pc.get_map_index() != 112 and
  34. pc.get_map_index() != 209 and
  35. pc.get_map_index() != 103 and
  36. pc.get_map_index() != 105 and
  37. pc.get_map_index() != 110 and
  38. pc.get_map_index() != 111 and
  39. pc.get_map_index() != 81 and
  40. pc.get_map_index() != 113 and
  41. pc.get_map_index() != 118 and
  42. pc.get_map_index() != 119 and
  43. pc.get_map_index() != 120 and
  44. pc.get_map_index() != 121 and
  45. pc.get_map_index() != 122 and
  46. pc.get_map_index() != 123 and
  47. pc.get_map_index() != 124 and
  48. pc.get_map_index() != 128 and
  49. pc.get_map_index() != 181 and
  50. pc.get_map_index() != 182 and
  51. pc.get_map_index() != 183 and
  52. pc.get_map_index() != 199 and
  53. pc.get_map_index() != 237 then
  54. local los = number(1, 100)
  55. if los <= 5 then
  56. pc.give_item2(120344, 1)
  57. end
  58. end
  59.  
  60. if npc.get_race() == 964 then
  61. local los_item = {
  62. {27992,250},
  63. {27992,500},
  64. {27992,750},
  65. {27992,1000},
  66. {71052,1},
  67. {43013,1},
  68. {43023,1},
  69. {71044,5},
  70. {71045,5},
  71. {120338,1},
  72. {120339,1},
  73. {30193,5},
  74. {70029,5},
  75. {50037,5},
  76. {50011,5},
  77. {50034,5},
  78. {71018,2},
  79. {71020,2},
  80. {71019,2},
  81. {71107,1},
  82. {51002,1},
  83. {71134,4},
  84. {120185,2},
  85. {120186,2},
  86. {120165,1},
  87. {120166,1},
  88. {120167,1}
  89.  
  90. }
  91. los = number(1, 27)
  92. pc.give_item2(los_item[los][1],los_item[los][2])
  93. los1 = number(1, 27)
  94. pc.give_item2(los_item[los1][1],los_item[los1][2])
  95. los2 = number(1, 27)
  96. pc.give_item2(los_item[los2][1],los_item[los2][2])
  97.  
  98. pc.give_item2(120344,5)
  99.  
  100.  
  101. local n =number(1,100)
  102. if n < 6 then
  103. game.drop_item(71106, 1)
  104. end
  105. end
  106. if npc.get_race() == 963 then
  107. if pc.get_level() < 150 then
  108. local los_item = {
  109. {27992,250},
  110. {27992,500},
  111. {27992,750},
  112. {27992,1000},
  113. {71052,1},
  114. {43013,1},
  115. {43023,1},
  116. {71044,5},
  117. {71045,5},
  118. {120338,1},
  119. {120339,1},
  120. {30193,5},
  121. {70029,5},
  122. {50037,5},
  123. {50011,5},
  124. {50034,5},
  125. {71018,2},
  126. {71020,2},
  127. {71019,2},
  128. {71107,1},
  129. {51002,1},
  130. {71134,4},
  131. {120185,2},
  132. {120186,2},
  133. {120165,1},
  134. {120166,1},
  135. {120167,1}
  136.  
  137. }
  138. los = number(1, 27)
  139. pc.give_item2(los_item[los][1],los_item[los][2])
  140. los1 = number(1, 27)
  141. pc.give_item2(los_item[los1][1],los_item[los1][2])
  142. los2 = number(1, 27)
  143. pc.give_item2(los_item[los2][1],los_item[los2][2])
  144.  
  145. pc.give_item2(120344,5)
  146.  
  147.  
  148. local n =number(1,100)
  149. if n < 6 then
  150. game.drop_item(71106, 1)
  151. end
  152. end
  153. end
  154. if npc.get_race() == 965 then
  155. local los_item = {
  156. {27992,100},
  157. {27992,150},
  158. {27992,300},
  159. {27992,500},
  160. {71052,1},
  161. {43013,1},
  162. {43023,1},
  163. {71044,5},
  164. {71045,5},
  165. {120337,1},
  166. {120106,2},
  167. {120107,2},
  168. {120108,2},
  169. {120109,2},
  170. {120110,2},
  171. {50037,5},
  172. {50011,5},
  173. {50034,5},
  174. {71018,2},
  175. {71019,2},
  176. {71020,2},
  177. {120182,5},
  178. {120184,5}
  179.  
  180. }
  181. los = number(1, 23)
  182. pc.give_item2(los_item[los][1],los_item[los][2])
  183. los1 = number(1, 23)
  184. pc.give_item2(los_item[los1][1],los_item[los1][2])
  185. los2 = number(1, 23)
  186. pc.give_item2(los_item[los2][1],los_item[los2][2])
  187.  
  188. local n =number(1,100)
  189. if n < 6 then
  190. game.drop_item(71106, 1)
  191. end
  192. end
  193.  
  194. end
  195.  
  196. end
  197. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement