9
3

acragrat.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. --[[
  2. Script Name : SpawnScripts/Blackburrow/acragrat.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.09 11:07:56
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 12
  11. local level2 = 13
  12. local difficulty1 = 5
  13. local hp1 = 350
  14. local power1 = 125
  15. local difficulty2 = 5
  16. local hp2 = 440
  17. local power2 = 145
  18. if Level == level1 then
  19. SpawnSet(NPC, "difficulty", difficulty1)
  20. SpawnSet(NPC, "hp", hp1)
  21. SpawnSet(NPC, "power", power1)
  22. elseif Level == level2
  23. then
  24. SpawnSet(NPC, "difficulty", difficulty2)
  25. SpawnSet(NPC, "hp", hp2)
  26. SpawnSet(NPC, "power", power2)
  27. end
  28. waypoints(NPC)
  29. end
  30. function hailed(NPC, Spawn)
  31. end
  32. function respawn(NPC)
  33. spawn(NPC)
  34. end
  35. function waypoints(NPC)
  36. if GetSpawnLocationID(NPC)== 414132 then
  37. MovementLoopAddLocation(NPC, 68.65, -3.47, -56.12, 2, math.random(9,15))
  38. MovementLoopAddLocation(NPC, 71.25, -3.39, -56.14, 2, math.random(9,15))
  39. MovementLoopAddLocation(NPC, 72.81, -3.64, -58.97, 2, math.random(9,15))
  40. MovementLoopAddLocation(NPC, 68.84, -4.06, -61.49, 2, math.random(9,15))
  41. MovementLoopAddLocation(NPC, 70.73, -3.85, -60.3, 2, math.random(9,15))
  42. MovementLoopAddLocation(NPC, 72.16, -4.17, -61.77, 2, math.random(9,15))
  43. MovementLoopAddLocation(NPC, 73.04, -3.67, -59.12, 2, math.random(9,15))
  44. MovementLoopAddLocation(NPC, 71.76, -3.42, -56.73, 2, math.random(9,15))
  45. MovementLoopAddLocation(NPC, 68.81, -3.52, -56.38, 2, math.random(9,15))
  46. MovementLoopAddLocation(NPC, 67.12, -3.42, -56.78, 2, math.random(9,15))
  47. elseif GetSpawnLocationID(NPC)== 414131 then
  48. MovementLoopAddLocation(NPC, 56.6, -5.2, -79.45, 2, math.random(9,15))
  49. MovementLoopAddLocation(NPC, 56.6, -5.2, -79.45, 2, math.random(9,15))
  50. MovementLoopAddLocation(NPC, 58.7, -5.25, -79.31, 2, math.random(9,15))
  51. MovementLoopAddLocation(NPC, 55.17, -5.2, -78.14, 2, math.random(9,15))
  52. MovementLoopAddLocation(NPC, 54.63, -5.2, -76.33, 2, math.random(9,15))
  53. MovementLoopAddLocation(NPC, 56.91, -5.3, -74.87, 2, math.random(9,15))
  54. MovementLoopAddLocation(NPC, 55.02, -5.2, -76.51, 2, math.random(9,15))
  55. MovementLoopAddLocation(NPC, 56.42, -5.2, -78.89, 2, math.random(9,15))
  56. MovementLoopAddLocation(NPC, 58.9, -5.22, -78.96, 2, math.random(9,15))
  57. MovementLoopAddLocation(NPC, 62.86, -5.2, -79.08, 2, math.random(9,15))
  58. MovementLoopAddLocation(NPC, 59.23, -5.18, -79.44, 2, math.random(9,15))
  59. elseif GetSpawnLocationID(NPC)== 414124 then
  60. MovementLoopAddLocation(NPC, 27.17, -3.85, -62.74, 2, math.random(9,20))
  61. MovementLoopAddLocation(NPC, 27.2, -3.75, -59.53, 2, math.random(9,20))
  62. MovementLoopAddLocation(NPC, 24.08, -4.12, -59.53, 2, math.random(9,15))
  63. MovementLoopAddLocation(NPC, 22.24, -4.28, -59.86, 2, math.random(9,15))
  64. MovementLoopAddLocation(NPC, 20.99, -4.52, -63.97, 2, math.random(9,15))
  65. MovementLoopAddLocation(NPC, 25.44, -5.15, -67.84, 2, math.random(9,15))
  66. MovementLoopAddLocation(NPC, 25.81, -4.21, -64.24, 2, math.random(9,20))
  67. MovementLoopAddLocation(NPC, 26.49, -5.22, -67.89, 2, math.random(9,15))
  68. MovementLoopAddLocation(NPC, 24.03, -6.54, -72.46, 2, math.random(9,15))
  69. MovementLoopAddLocation(NPC, 21.07, -6.85, -73.53, 2, math.random(9,20))
  70. MovementLoopAddLocation(NPC, 23.04, -6.36, -70.8, 2, math.random(9,15))
  71. MovementLoopAddLocation(NPC, 27.01, -5.6, -68.91, 2, math.random(9,15))
  72. MovementLoopAddLocation(NPC, 23.66, -4.66, -66.14, 2, math.random(9,20))
  73. elseif GetSpawnLocationID(NPC)== 414105 then
  74. MovementLoopAddLocation(NPC, 1.51, -8.72, -66.77, 2, math.random(9,20))
  75. MovementLoopAddLocation(NPC, -1.91, -9.76, -69.3, 2, math.random(9,15))
  76. MovementLoopAddLocation(NPC, -4.48, -9.75, -70.18, 2, math.random(9,15))
  77. MovementLoopAddLocation(NPC, -1.72, -9.79, -68.55, 2, math.random(9,20))
  78. MovementLoopAddLocation(NPC, 1.2, -9.14, -67.35, 2, math.random(9,15))
  79. MovementLoopAddLocation(NPC, 4.44, -9.1, -67.46, 2, math.random(9,15))
  80. MovementLoopAddLocation(NPC, 6.55, -8.76, -67.91, 2, math.random(9,20))
  81. MovementLoopAddLocation(NPC, 8.49, -8.54, -66.81, 2, math.random(9,15))
  82. MovementLoopAddLocation(NPC, 10.11, -8.39, -67.67, 2, math.random(9,15))
  83. MovementLoopAddLocation(NPC, 7.42, -8.72, -67.4, 2, math.random(9,20))
  84. MovementLoopAddLocation(NPC, 2.73, -9.17, -68.26, 2, math.random(9,15))
  85. MovementLoopAddLocation(NPC, 0.62, -9.38, -67.54, 2, math.random(9,15))
  86. MovementLoopAddLocation(NPC, -0.36, -9.48, -68.52, 2, math.random(9,20))
  87. elseif GetSpawnLocationID(NPC)== 133771550 then
  88. MovementLoopAddLocation(NPC, 14.78, -6.54, -66.42, 2, math.random(9,20))
  89. MovementLoopAddLocation(NPC, 13.87, -6.71, -67.47, 2, math.random(9,15))
  90. MovementLoopAddLocation(NPC, 16.85, -5.7, -65.41, 2, math.random(9,15))
  91. MovementLoopAddLocation(NPC, 16.93, -4.81, -63.42, 2, math.random(9,15))
  92. MovementLoopAddLocation(NPC, 12.56, -5.27, -61.36, 2, math.random(9,20))
  93. MovementLoopAddLocation(NPC, 9.05, -5.8, -61.26, 2, math.random(9,15))
  94. MovementLoopAddLocation(NPC, 3.8, -6.76, -64.4, 2, math.random(9,15))
  95. MovementLoopAddLocation(NPC, -2.04, -7.31, -62.01, 2, math.random(9,20))
  96. MovementLoopAddLocation(NPC, 1.68, -6.98, -61.47, 2, math.random(9,15))
  97. MovementLoopAddLocation(NPC, 5.42, -6.51, -64.07, 2, math.random(9,15))
  98. MovementLoopAddLocation(NPC, 7.89, -5.95, -61.25, 2, math.random(9,20))
  99. MovementLoopAddLocation(NPC, 10.73, -5.54, -60.92, 2, math.random(9,15))
  100. MovementLoopAddLocation(NPC, 13.66, -5.02, -63.2, 2, math.random(9,15))
  101. MovementLoopAddLocation(NPC, 18.82, -4.66, -64.03, 2, math.random(9,15))
  102. MovementLoopAddLocation(NPC, 19.31, -5.65, -67.41, 2, math.random(9,20))
  103. elseif GetSpawnLocationID(NPC)== 133771591 then
  104. MovementLoopAddLocation(NPC, -4.31, -12.16, -14.74, 2, math.random(9,15))
  105. MovementLoopAddLocation(NPC, -6.62, -12.14, -17.65, 2, math.random(9,20))
  106. MovementLoopAddLocation(NPC, -0.88, -12.05, -13.14, 2, math.random(9,15))
  107. MovementLoopAddLocation(NPC, -8.1, -12.2, -7.31, 2, math.random(9,15))
  108. MovementLoopAddLocation(NPC, -9.73, -12.2, -8.39, 2, math.random(9,20))
  109. MovementLoopAddLocation(NPC, -0.36, -12, -11.22, 2, math.random(9,15))
  110. MovementLoopAddLocation(NPC, 1.12, -12, -10.45, 2, math.random(9,20))
  111. MovementLoopAddLocation(NPC, -2.2, -12.12, -13.21, 2, math.random(9,15))
  112. MovementLoopAddLocation(NPC, -7.11, -12.12, -18.6, 2, math.random(9,20))
  113. elseif GetSpawnLocationID(NPC)== 414061 then
  114. MovementLoopAddLocation(NPC, -18.79, -12.38, -13.7, 2, math.random(9,20))
  115. MovementLoopAddLocation(NPC, -14.59, -12.19, -17.31, 2, math.random(9,20))
  116. MovementLoopAddLocation(NPC, -11.97, -12.01, -22.72, 2, math.random(9,15))
  117. MovementLoopAddLocation(NPC, -18.27, -12.24, -18.97, 2, math.random(9,15))
  118. MovementLoopAddLocation(NPC, -21.39, -11.98, -27.02, 2, math.random(9,20))
  119. MovementLoopAddLocation(NPC, -20.09, -11.9, -28.82, 2, math.random(9,15))
  120. MovementLoopAddLocation(NPC, -12.56, -11.53, -25.19, 2, math.random(9,15))
  121. MovementLoopAddLocation(NPC, -13.64, -11.92, -21.61, 2, math.random(9,15))
  122. MovementLoopAddLocation(NPC, -19.79, -12.39, -16.28, 2, math.random(9,20))
  123. MovementLoopAddLocation(NPC, -24.28, -12.19, -11.33, 2, math.random(9,20))
  124. MovementLoopAddLocation(NPC, -22.25, -12.15, -10.11, 2, math.random(9,15))
  125. MovementLoopAddLocation(NPC, -22.29, -12.16, -14.73, 2, math.random(9,20))
  126. elseif GetSpawnLocationID(NPC)== 414083 then
  127. MovementLoopAddLocation(NPC, -9.93, 0.45, -23.94, 2, math.random(9,20))
  128. MovementLoopAddLocation(NPC, -11.73, 0.88, -21.78, 2, math.random(9,20))
  129. MovementLoopAddLocation(NPC, -10.8, 0.89, -20.35, 2, math.random(9,15))
  130. MovementLoopAddLocation(NPC, -10.73, 0.22, -25.01, 2, math.random(9,15))
  131. MovementLoopAddLocation(NPC, -6.27, -1.78, -27.98, 2, math.random(9,15))
  132. MovementLoopAddLocation(NPC, -2.14, -2.85, -28.99, 2, math.random(9,20))
  133. MovementLoopAddLocation(NPC, -4.82, -1.89, -27.11, 2, math.random(9,20))
  134. MovementLoopAddLocation(NPC, -4.63, -2.46, -30.15, 2, math.random(9,15))
  135. MovementLoopAddLocation(NPC, -9.84, -0.5, -26.99, 2, math.random(9,15))
  136. MovementLoopAddLocation(NPC, -10.05, 0.9, -19.56, 2, math.random(9,15))
  137. elseif GetSpawnLocationID(NPC)== 133771524 then
  138. MovementLoopAddLocation(NPC, -2.91, -2.81, -29.59, 2, math.random(9,15))
  139. MovementLoopAddLocation(NPC, 1.26, -3.81, -31.25, 2, math.random(9,15))
  140. MovementLoopAddLocation(NPC, 2.42, -4.5, -35.31, 2, math.random(9,20))
  141. MovementLoopAddLocation(NPC, 0.35, -4.55, -35.29, 2, math.random(9,15))
  142. MovementLoopAddLocation(NPC, 2.36, -4.38, -33.94, 2, math.random(9,15))
  143. MovementLoopAddLocation(NPC, -3.47, -2.83, -30.78, 2, math.random(9,20))
  144. MovementLoopAddLocation(NPC, -3.7, -2.25, -27.71, 2, math.random(9,20))
  145. MovementLoopAddLocation(NPC, 2.42, -4.3, -33.21, 2, math.random(9,20))
  146. MovementLoopAddLocation(NPC, -0.42, -5.14, -37.25, 2, math.random(9,15))
  147. MovementLoopAddLocation(NPC, -3.64, -6.5, -41.79, 2, math.random(9,15))
  148. MovementLoopAddLocation(NPC, -7.65, -7.58, -41.24, 2, math.random(9,15))
  149. MovementLoopAddLocation(NPC, -0.66, -5.71, -40.74, 2, math.random(9,20))
  150. MovementLoopAddLocation(NPC, 2.18, -4.42, -34.61, 2, math.random(9,15))
  151. MovementLoopAddLocation(NPC, 0.06, -3.57, -30.62, 2, math.random(9,20))
  152. MovementLoopAddLocation(NPC, -5.15, -2.3, -29.92, 2, math.random(9,15))
  153. elseif GetSpawnLocationID(NPC)== 133771567 then
  154. MovementLoopAddLocation(NPC, -80.14, -0.89, -12.58, 2, math.random(9,20))
  155. MovementLoopAddLocation(NPC, -76.9, -0.98, -11.3, 2, math.random(9,15))
  156. MovementLoopAddLocation(NPC, -81.97, -0.75, -13.39, 2, math.random(9,15))
  157. MovementLoopAddLocation(NPC, -82.13, -0.95, -8.96, 2, math.random(9,15))
  158. MovementLoopAddLocation(NPC, -81.39, -0.78, -13.34, 2, math.random(9,20))
  159. MovementLoopAddLocation(NPC, -84.66, -0.88, -7.91, 2, math.random(9,15))
  160. MovementLoopAddLocation(NPC, -82.55, -0.81, -11.76, 2, math.random(9,15))
  161. MovementLoopAddLocation(NPC, -81.65, -0.93, -9.72, 2, math.random(9,15))
  162. elseif GetSpawnLocationID(NPC)== 414041 then
  163. MovementLoopAddLocation(NPC, -89.09, -0.74, -12.97, 2, math.random(9,15))
  164. MovementLoopAddLocation(NPC, -89.02, -0.9, -10.58, 2, math.random(9,15))
  165. MovementLoopAddLocation(NPC, -86.3, -0.72, -12.3, 2, math.random(9,20))
  166. MovementLoopAddLocation(NPC, -87.48, -0.56, -14.52, 2, math.random(9,15))
  167. MovementLoopAddLocation(NPC, -88.81, -0.95, -9.95, 2, math.random(9,20))
  168. MovementLoopAddLocation(NPC, -89.59, -0.84, -11.58, 2, math.random(9,15))
  169. MovementLoopAddLocation(NPC, -87.02, -0.8, -11.4, 2, math.random(9,20))
  170. MovementLoopAddLocation(NPC, -86.51, -0.65, -13.13, 2, math.random(9,15))
  171. MovementLoopAddLocation(NPC, -89.85, -0.77, -14.62, 2, math.random(9,20))
  172. elseif GetSpawnLocationID(NPC)== 414037 then
  173. MovementLoopAddLocation(NPC, -98.29, -0.75, -87.21, 2, math.random(9,15))
  174. MovementLoopAddLocation(NPC, -95.32, -0.69, -87.21, 2, math.random(9,20))
  175. MovementLoopAddLocation(NPC, -99.34, -0.76, -91.86, 2, math.random(9,15))
  176. MovementLoopAddLocation(NPC, -93.13, -0.67, -88, 2, math.random(9,15))
  177. MovementLoopAddLocation(NPC, -97.86, -0.73, -83.45, 2, math.random(9,20))
  178. MovementLoopAddLocation(NPC, -101.55, -0.86, -83.99, 2, math.random(9,15))
  179. MovementLoopAddLocation(NPC, -93.12, -0.68, -89.41, 2, math.random(9,20))
  180. MovementLoopAddLocation(NPC, -96.46, -0.71, -92.89, 2, math.random(9,15))
  181. MovementLoopAddLocation(NPC, -95.97, -0.69, -86.82, 2, math.random(9,15))
  182. MovementLoopAddLocation(NPC, -96.29, -0.7, -99.97, 2, math.random(9,20))
  183. MovementLoopAddLocation(NPC, -99.43, -0.71, -101.83, 2, math.random(9,15))
  184. MovementLoopAddLocation(NPC, -98.25, -0.72, -94.01, 2, math.random(9,15))
  185. MovementLoopAddLocation(NPC, -90.58, -0.69, -90.05, 2, math.random(9,15))
  186. MovementLoopAddLocation(NPC, -96.12, -0.68, -83.13, 2, math.random(9,15))
  187. end
  188. end