Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.53 KB | None | 0 0
  1. quest TajemniczeSkrzynie begin
  2. state start begin
  3.  
  4. -- DROP KLUCZY DO EQ
  5. when kill with not npc.is_pc()begin
  6. local roznica_poziomow = pc.get_level() - npc.get_level()
  7. if roznica_poziomow <= 15 then
  8. if pc.level >= 90 and pc.level < 140 then
  9. if math.random(800) == 2 then
  10. pc.give_item2(79011)
  11. end
  12. end
  13. if pc.level >= 140 and pc.level < 190 then
  14. if math.random(900) == 2 then
  15. pc.give_item2(79036)
  16. end
  17. end
  18. if pc.level >= 190 then
  19. if math.random(1000) == 2 then
  20. pc.give_item2(79037)
  21. end
  22. end
  23. end
  24. end
  25.  
  26. -- DROP KLUCZY NA ZIEMIE
  27. --when kill with not npc.is_pc()begin
  28. -- local roznica_poziomow = pc.get_level() - npc.get_level()
  29. -- if roznica_poziomow <= 15 then
  30. -- if pc.level >= 90 then
  31. -- local szansa = math.random(1, 1000)
  32. -- if szansa <= 5 then
  33. -- game.drop_item_with_ownership(79011, 1)
  34. -- end
  35. -- end
  36. -- if pc.level >= 130 then
  37. -- local szansa = math.random(1, 1000)
  38. -- if szansa <= 5 then
  39. -- game.drop_item_with_ownership(79036, 1)
  40. -- end
  41. -- end
  42. -- if pc.level >= 180 then
  43. -- local szansa = math.random(1, 1000)
  44. -- if szansa <= 5 then
  45. -- game.drop_item_with_ownership(79037, 1)
  46. -- end
  47. -- end
  48. -- end
  49. --end
  50.  
  51. -- OTWIERANIE SKRZYNI
  52. when 59239.take begin
  53. if item.vnum == 79011 or item.vnum == 79060 then
  54. local szansa = math.random(1,100)
  55. if szansa <= 70 then
  56. local id_przedmiotow = {27989, 50821, 50822, 50823, 50825, 50826, 70031, 71015, 71016, 71017, 71114, 79027, 79032, 79021, 18001, 18002, 18003, 18006, 18008, 18009, 18010, 18013, 18014, 18015, 18016, 18017, 18018, 18019, 18020, 18021, 18022, 18023, 18024, 18025, 18026, 18027, 18028, 18030, 18031, 18032, 50827, 50623, 30305}
  57. local ilosc_przedmiotow = {2, 5, 5, 5, 5, 5, 3, 1, 1, 1, 1, 3, 10, 1, 2, 2, 2, 2, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 3}
  58. local ilosc = 43
  59. local przedmiot = math.random(1, ilosc)
  60. pc.give_item2(id_przedmiotow[przedmiot], ilosc_przedmiotow[przedmiot])
  61. npc.kill()
  62. else
  63. if item.vnum == 79011 then
  64. chat("Klucz uległ złamaniu podczas próby otwarcia skrzyni..")
  65. else
  66. chat("Nie udało sie otworzyc skrzyni.")
  67. end
  68. end
  69. if item.vnum == 79011 then
  70. pc.remove_item(79011, 1)
  71. end
  72. end
  73. end
  74.  
  75. when 59252.take begin
  76. if item.vnum == 79036 or item.vnum == 79060 then
  77. local szansa = math.random(1,100)
  78. if szansa <= 50 then
  79. local id_przedmiotow = {27989, 50821, 50822, 50823, 50825, 50826, 71015, 71016, 71017, 71107, 71115, 71116, 71117, 71118, 72002, 72005, 72023, 18033, 18034, 18035, 18036, 18037, 18038, 18041, 18042, 18043, 18044, 18045, 18046, 18048, 18049, 28949, 28950, 28957, 28955, 50827, 50624, 79027, 30305, 50115, 79032}
  80. local ilosc_przedmiotow = {3, 10, 10, 10, 10, 10, 2, 2, 2, 5, 1, 1, 1, 1, 1, 1, 1, 2, 1, 3, 2, 2, 2, 2, 2, 1, 2, 3, 2, 4, 2, 1, 1, 1, 1, 6, 2, 3, 3, 10, 15,}
  81. local ilosc = 41
  82. local przedmiot = math.random(1, ilosc)
  83. pc.give_item2(id_przedmiotow[przedmiot], ilosc_przedmiotow[przedmiot])
  84. npc.kill()
  85. else
  86. if item.vnum == 79036 then
  87. chat("Klucz uległ złamaniu podczas próby otwarcia skrzyni..")
  88. else
  89. chat("Nie udało sie otworzyc skrzyni.")
  90. end
  91. end
  92. if item.vnum == 79036 then
  93. pc.remove_item(79036, 1)
  94. end
  95. end
  96. end
  97.  
  98. when 59253.take begin
  99. if item.vnum == 79037 or item.vnum == 79060 then
  100. local szansa = math.random(1,100)
  101. if szansa <= 30 then
  102. local id_przedmiotow = {27989, 50821, 50822, 50823, 50825, 50826, 27987, 70005, 70043, 71015, 71016, 71017, 71027, 71028, 71029, 71030, 71107, 71118, 72724, 72728, 28958, 28964, 28969, 28975, 18050, 18051, 18052, 18053, 18054, 18060, 18061, 18062, 29043, 29044, 29049, 29050, 18074, 18075, 18076, 18077, 18078, 18080, 18082, 18083, 18086, 18093, 18094, 18095, 18096, 18101, 18097, 18105, 18104, 18102, 79017, 80019, 50827, 50625, 50626, 79027, 79032, 30305, 50115}
  103. local ilosc_przedmiotow = {6, 15, 15, 15, 15, 15, 6, 1, 1, 3, 3, 3, 25, 25, 25, 25, 10, 1, 10, 10, 1, 1, 1, 1, 3, 1, 2, 3, 3, 1, 3, 4, 1, 1, 1, 3, 1, 2, 3, 3, 3, 2, 5, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 20, 3, 3, 6, 30, 7, 25}
  104. local ilosc = 63
  105. local przedmiot = math.random(1, ilosc)
  106. pc.give_item2(id_przedmiotow[przedmiot], ilosc_przedmiotow[przedmiot])
  107. npc.kill()
  108. else
  109. if item.vnum == 79037 then
  110. chat("Klucz uległ złamaniu podczas próby otwarcia skrzyni..")
  111. else
  112. chat("Nie udało sie otworzyc skrzyni.")
  113. end
  114. end
  115. if item.vnum == 79037 then
  116. pc.remove_item(79037, 1)
  117. end
  118. end
  119. end
  120. end
  121. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement