MuckRaker.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity_Classic/MuckRaker.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.10.30 09:10:47
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. dmgMod = GetStr(NPC)/10
  10. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  11. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(18 + dmgMod))
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(32 + dmgMod))
  13. AddTimer(NPC, 6000, "waypoints")
  14. PlayFlavor(NPC,"","","result_spawn",0,0)
  15. SetSeeHide(NPC,1)
  16. SetSeeInvis(NPC,1)
  17. end
  18. function aggro(NPC,Spawn)
  19. ApplySpellVisual(NPC,61)
  20. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end
  24. function waypoints(NPC)
  25. if GetSpawnLocationID(NPC) ==133787343 then
  26. MovementLoopAddLocation(NPC, -41.3, -0.54, -28.79, 2, 0)
  27. MovementLoopAddLocation(NPC, -41.3, -0.54, -28.79, 2, 0)
  28. MovementLoopAddLocation(NPC, -42.46, -0.53, -37.13, 2, 0)
  29. MovementLoopAddLocation(NPC, -37.79, -0.52, -44.83, 2, 0)
  30. MovementLoopAddLocation(NPC, -37.24, -0.59, -60.07, 2, 0)
  31. MovementLoopAddLocation(NPC, -45.28, -0.56, -68.13, 2, 0)
  32. MovementLoopAddLocation(NPC, -55.05, -0.62, -62.63, 2, 0)
  33. MovementLoopAddLocation(NPC, -67.9, -0.57, -66.92, 2, 0)
  34. MovementLoopAddLocation(NPC, -73.81, -0.58, -64.76, 2, 0)
  35. MovementLoopAddLocation(NPC, -76.29, -0.58, -56.04, 2, 0)
  36. MovementLoopAddLocation(NPC, -72.96, -0.58, -38.19, 2, 0)
  37. MovementLoopAddLocation(NPC, -76.97, -0.57, -25.34, 2, 0)
  38. MovementLoopAddLocation(NPC, -76.05, -0.78, -12.52, 2, 0)
  39. MovementLoopAddLocation(NPC, -78.24, -0.11, -3.35, 2, 0)
  40. MovementLoopAddLocation(NPC, -83.78, -0.22, 10.92, 2, 0)
  41. MovementLoopAddLocation(NPC, -81.58, -0.17, 16.21, 2, 0)
  42. MovementLoopAddLocation(NPC, -72.85, -0.59, 19.14, 2, 0)
  43. MovementLoopAddLocation(NPC, -59.82, -0.57, 20.1, 2, 0)
  44. MovementLoopAddLocation(NPC, -44.39, -0.53, 27.56, 2, 0)
  45. MovementLoopAddLocation(NPC, -36.89, -0.5, 26.62, 2, 0)
  46. MovementLoopAddLocation(NPC, -36.8, -0.55, 18.53, 2, 0)
  47. MovementLoopAddLocation(NPC, -35.3, -0.58, 6.15, 2, 0)
  48. MovementLoopAddLocation(NPC, -27.81, -0.58, 4.92, 2, 0)
  49. MovementLoopAddLocation(NPC, -8.8, -0.35, 4.91, 2, 0)
  50. MovementLoopAddLocation(NPC, -3.89, -0.09, -1.06, 2, 0)
  51. MovementLoopAddLocation(NPC, 2.27, -0.51, -14.01, 2, 0)
  52. MovementLoopAddLocation(NPC, 1.65, -0.49, -25.03, 2, 0)
  53. MovementLoopAddLocation(NPC, -3.62, -0.46, -32.54, 2, 0)
  54. MovementLoopAddLocation(NPC, -10.97, -0.5, -38.83, 2, 0)
  55. MovementLoopAddLocation(NPC, -9.46, -0.51, -51.78, 2, 0)
  56. MovementLoopAddLocation(NPC, -13.23, -0.67, -64.17, 2, 0)
  57. MovementLoopAddLocation(NPC, -8.06, -0.65, -68.73, 2, 0)
  58. MovementLoopAddLocation(NPC, 11.05, 0.26, -72.84, 2, 0)
  59. MovementLoopAddLocation(NPC, 11.33, 0.27, -70.23, 2, 0)
  60. MovementLoopAddLocation(NPC, 7.8, 0.24, -65.63, 2, 0)
  61. MovementLoopAddLocation(NPC, 10.62, 0.07, -53.58, 2, 0)
  62. MovementLoopAddLocation(NPC, 7.47, -0.23, -43.76, 2, 0)
  63. MovementLoopAddLocation(NPC, 8.64, -0.6, -22.18, 2, 0)
  64. MovementLoopAddLocation(NPC, 13.15, -0.09, -5.79, 2, 0)
  65. MovementLoopAddLocation(NPC, 16.83, 0.4, 2.7, 2, 0)
  66. MovementLoopAddLocation(NPC, 15.17, 1.11, 11.3, 2, 0)
  67. MovementLoopAddLocation(NPC, 5.18, 0.25, 24.18, 2, 0)
  68. MovementLoopAddLocation(NPC, 2.24, 1.02, 34.61, 2, 0)
  69. MovementLoopAddLocation(NPC, 6.88, 1.35, 46.05, 2, 0)
  70. MovementLoopAddLocation(NPC, 8.94, 1.09, 55.6, 2, 0)
  71. MovementLoopAddLocation(NPC, 13.36, 0.85, 58.85, 2, 0)
  72. MovementLoopAddLocation(NPC, 24, 0.98, 59.47, 2, 0)
  73. MovementLoopAddLocation(NPC, 36.31, 1.02, 59.44, 2, 0)
  74. MovementLoopAddLocation(NPC, 43.26, 0.62, 63.92, 2, 0)
  75. MovementLoopAddLocation(NPC, 52.52, 0.2, 63.29, 2, 0)
  76. MovementLoopAddLocation(NPC, 61.24, 0.82, 56.45, 2, 0)
  77. MovementLoopAddLocation(NPC, 62.23, 1.02, 36.33, 2, 0)
  78. MovementLoopAddLocation(NPC, 59.6, 1.07, 30.75, 2, 0)
  79. MovementLoopAddLocation(NPC, 45.37, 1.11, 22.03, 2, 0)
  80. MovementLoopAddLocation(NPC, 42.46, 1.02, 12.74, 2, 0)
  81. MovementLoopAddLocation(NPC, 48.74, 0.91, 4.62, 2, 0)
  82. MovementLoopAddLocation(NPC, 57.69, 1.22, -6.58, 2, 0)
  83. MovementLoopAddLocation(NPC, 46.72, 1.53, -14.74, 2, 0)
  84. MovementLoopAddLocation(NPC, 56.27, 1.02, -20.89, 2, 0)
  85. MovementLoopAddLocation(NPC, 60.42, 1.58, -35.28, 2, 0)
  86. MovementLoopAddLocation(NPC, 64.95, 1.74, -42.12, 2, 0)
  87. MovementLoopAddLocation(NPC, 75.13, 1.41, -43.51, 2, 0)
  88. MovementLoopAddLocation(NPC, 79.11, 1.66, -38.59, 2, 0)
  89. MovementLoopAddLocation(NPC, 81.61, 1.36, -26.72, 2, 0)
  90. MovementLoopAddLocation(NPC, 82.5, 1.85, -15.14, 2, 0)
  91. MovementLoopAddLocation(NPC, 84.52, 1.88, -11.16, 2, 0)
  92. MovementLoopAddLocation(NPC, 91.51, 2.16, -8.05, 2, 0)
  93. MovementLoopAddLocation(NPC, 100.52, 2.22, -1.16, 2, 0)
  94. MovementLoopAddLocation(NPC, 103.51, 1.88, 9.31, 2, 0)
  95. MovementLoopAddLocation(NPC, 97.68, 1.44, 17.91, 2, 0)
  96. MovementLoopAddLocation(NPC, 86.49, 1.83, 24.42, 2, 0)
  97. MovementLoopAddLocation(NPC, 78.24, 1.88, 25.93, 2, 0)
  98. MovementLoopAddLocation(NPC, 66.81, 1.02, 26.61, 2, 0)
  99. MovementLoopAddLocation(NPC, 61.25, 1.09, 24.56, 2, 0)
  100. MovementLoopAddLocation(NPC, 59.45, 1.18, 11.93, 2, 0)
  101. MovementLoopAddLocation(NPC, 57.06, 1.16, 1.2, 2, 0)
  102. MovementLoopAddLocation(NPC, 55.83, 1.36, -11.35, 2, 0)
  103. MovementLoopAddLocation(NPC, 46.26, 1.7, -11.12, 2, 0)
  104. MovementLoopAddLocation(NPC, 44.76, 1.89, -4.66, 2, 0)
  105. MovementLoopAddLocation(NPC, 49.52, 0.83, 6.31, 2, 0)
  106. MovementLoopAddLocation(NPC, 46.56, 0.8, 15.24, 2, 0)
  107. MovementLoopAddLocation(NPC, 40.45, 1.02, 17.39, 2, 0)
  108. MovementLoopAddLocation(NPC, 23.43, 0.28, 16.98, 2, 0)
  109. MovementLoopAddLocation(NPC, 11.17, 0.47, 20.35, 2, 0)
  110. MovementLoopAddLocation(NPC, 2.01, 0.39, 19.06, 2, 0)
  111. MovementLoopAddLocation(NPC, -5.62, -0.24, 10.28, 2, 0)
  112. MovementLoopAddLocation(NPC, -6.72, -0.27, 6.28, 2, 0)
  113. MovementLoopAddLocation(NPC, -10.42, -0.41, 5.21, 2, 0)
  114. MovementLoopAddLocation(NPC, -25.57, -0.58, 4.42, 2, 0)
  115. MovementLoopAddLocation(NPC, -29.19, -0.58, 2.43, 2, 0)
  116. MovementLoopAddLocation(NPC, -29.72, -0.63, -11.12, 2, 0)
  117. MovementLoopAddLocation(NPC, -32.45, -0.59, -21.73, 2, 0)
  118. MovementLoopAddLocation(NPC, -39.4, -0.57, -26.36, 2, 0)
  119. MovementLoopAddLocation(NPC, -39.4, -0.57, -26.36, 2, 3, "Action")
  120. elseif GetSpawnLocationID(NPC) ==133787394 then
  121. MovementLoopAddLocation(NPC, -39.4, -0.57, -26.36, 2, 0)
  122. MovementLoopAddLocation(NPC, -39.4, -0.57, -26.36, 2, 0)
  123. MovementLoopAddLocation(NPC, -32.45, -0.59, -21.73, 2, 0)
  124. MovementLoopAddLocation(NPC, -29.72, -0.63, -11.12, 2, 0)
  125. MovementLoopAddLocation(NPC, -29.19, -0.58, 2.43, 2, 0)
  126. MovementLoopAddLocation(NPC, -25.57, -0.58, 4.42, 2, 0)
  127. MovementLoopAddLocation(NPC, -10.42, -0.41, 5.21, 2, 0)
  128. MovementLoopAddLocation(NPC, -6.72, -0.27, 6.28, 2, 0)
  129. MovementLoopAddLocation(NPC, -5.62, -0.24, 10.28, 2, 0)
  130. MovementLoopAddLocation(NPC, 2.01, 0.39, 19.06, 2, 0)
  131. MovementLoopAddLocation(NPC, 11.17, 0.47, 20.35, 2, 0)
  132. MovementLoopAddLocation(NPC, 23.43, 0.28, 16.98, 2, 0)
  133. MovementLoopAddLocation(NPC, 40.45, 1.02, 17.39, 2, 0)
  134. MovementLoopAddLocation(NPC, 46.56, 0.8, 15.24, 2, 0)
  135. MovementLoopAddLocation(NPC, 49.52, 0.83, 6.31, 2, 0)
  136. MovementLoopAddLocation(NPC, 44.76, 1.89, -4.66, 2, 0)
  137. MovementLoopAddLocation(NPC, 46.26, 1.7, -11.12, 2, 0)
  138. MovementLoopAddLocation(NPC, 55.83, 1.36, -11.35, 2, 0)
  139. MovementLoopAddLocation(NPC, 57.06, 1.16, 1.2, 2, 0)
  140. MovementLoopAddLocation(NPC, 59.45, 1.18, 11.93, 2, 0)
  141. MovementLoopAddLocation(NPC, 61.25, 1.09, 24.56, 2, 0)
  142. MovementLoopAddLocation(NPC, 66.81, 1.02, 26.61, 2, 0)
  143. MovementLoopAddLocation(NPC, 78.24, 1.88, 25.93, 2, 0)
  144. MovementLoopAddLocation(NPC, 86.49, 1.83, 24.42, 2, 0)
  145. MovementLoopAddLocation(NPC, 97.68, 1.44, 17.91, 2, 0)
  146. MovementLoopAddLocation(NPC, 103.51, 1.88, 9.31, 2, 0)
  147. MovementLoopAddLocation(NPC, 100.52, 2.22, -1.16, 2, 0)
  148. MovementLoopAddLocation(NPC, 91.51, 2.16, -8.05, 2, 0)
  149. MovementLoopAddLocation(NPC, 84.52, 1.88, -11.16, 2, 0)
  150. MovementLoopAddLocation(NPC, 82.5, 1.85, -15.14, 2, 0)
  151. MovementLoopAddLocation(NPC, 81.61, 1.36, -26.72, 2, 0)
  152. MovementLoopAddLocation(NPC, 79.11, 1.66, -38.59, 2, 0)
  153. MovementLoopAddLocation(NPC, 75.13, 1.41, -43.51, 2, 0)
  154. MovementLoopAddLocation(NPC, 64.95, 1.74, -42.12, 2, 0)
  155. MovementLoopAddLocation(NPC, 60.42, 1.58, -35.28, 2, 0)
  156. MovementLoopAddLocation(NPC, 56.27, 1.02, -20.89, 2, 0)
  157. MovementLoopAddLocation(NPC, 46.72, 1.53, -14.74, 2, 0)
  158. MovementLoopAddLocation(NPC, 57.69, 1.22, -6.58, 2, 0)
  159. MovementLoopAddLocation(NPC, 48.74, 0.91, 4.62, 2, 0)
  160. MovementLoopAddLocation(NPC, 42.46, 1.02, 12.74, 2, 0)
  161. MovementLoopAddLocation(NPC, 45.37, 1.11, 22.03, 2, 0)
  162. MovementLoopAddLocation(NPC, 59.6, 1.07, 30.75, 2, 0)
  163. MovementLoopAddLocation(NPC, 62.23, 1.02, 36.33, 2, 0)
  164. MovementLoopAddLocation(NPC, 61.24, 0.82, 56.45, 2, 0)
  165. MovementLoopAddLocation(NPC, 52.52, 0.2, 63.29, 2, 0)
  166. MovementLoopAddLocation(NPC, 43.26, 0.62, 63.92, 2, 0)
  167. MovementLoopAddLocation(NPC, 36.31, 1.02, 59.44, 2, 0)
  168. MovementLoopAddLocation(NPC, 24, 0.98, 59.47, 2, 0)
  169. MovementLoopAddLocation(NPC, 13.36, 0.85, 58.85, 2, 0)
  170. MovementLoopAddLocation(NPC, 8.94, 1.09, 55.6, 2, 0)
  171. MovementLoopAddLocation(NPC, 6.88, 1.35, 46.05, 2, 0)
  172. MovementLoopAddLocation(NPC, 2.24, 1.02, 34.61, 2, 0)
  173. MovementLoopAddLocation(NPC, 5.18, 0.25, 24.18, 2, 0)
  174. MovementLoopAddLocation(NPC, 15.17, 1.11, 11.3, 2, 0)
  175. MovementLoopAddLocation(NPC, 16.83, 0.4, 2.7, 2, 0)
  176. MovementLoopAddLocation(NPC, 13.15, -0.09, -5.79, 2, 0)
  177. MovementLoopAddLocation(NPC, 8.64, -0.6, -22.18, 2, 0)
  178. MovementLoopAddLocation(NPC, 7.47, -0.23, -43.76, 2, 0)
  179. MovementLoopAddLocation(NPC, 10.62, 0.07, -53.58, 2, 0)
  180. MovementLoopAddLocation(NPC, 7.8, 0.24, -65.63, 2, 0)
  181. MovementLoopAddLocation(NPC, 11.33, 0.27, -70.23, 2, 0)
  182. MovementLoopAddLocation(NPC, 11.05, 0.26, -72.84, 2, 0)
  183. MovementLoopAddLocation(NPC, -8.06, -0.65, -68.73, 2, 0)
  184. MovementLoopAddLocation(NPC, -13.23, -0.67, -64.17, 2, 0)
  185. MovementLoopAddLocation(NPC, -9.46, -0.51, -51.78, 2, 0)
  186. MovementLoopAddLocation(NPC, -10.97, -0.5, -38.83, 2, 0)
  187. MovementLoopAddLocation(NPC, -3.62, -0.46, -32.54, 2, 0)
  188. MovementLoopAddLocation(NPC, 1.65, -0.49, -25.03, 2, 0)
  189. MovementLoopAddLocation(NPC, 2.27, -0.51, -14.01, 2, 0)
  190. MovementLoopAddLocation(NPC, -3.89, -0.09, -1.06, 2, 0)
  191. MovementLoopAddLocation(NPC, -8.8, -0.35, 4.91, 2, 0)
  192. MovementLoopAddLocation(NPC, -27.81, -0.58, 4.92, 2, 0)
  193. MovementLoopAddLocation(NPC, -35.3, -0.58, 6.15, 2, 0)
  194. MovementLoopAddLocation(NPC, -36.8, -0.55, 18.53, 2, 0)
  195. MovementLoopAddLocation(NPC, -36.89, -0.5, 26.62, 2, 0)
  196. MovementLoopAddLocation(NPC, -44.39, -0.53, 27.56, 2, 0)
  197. MovementLoopAddLocation(NPC, -59.82, -0.57, 20.1, 2, 0)
  198. MovementLoopAddLocation(NPC, -72.85, -0.59, 19.14, 2, 0)
  199. MovementLoopAddLocation(NPC, -81.58, -0.17, 16.21, 2, 0)
  200. MovementLoopAddLocation(NPC, -83.78, -0.22, 10.92, 2, 0)
  201. MovementLoopAddLocation(NPC, -78.24, -0.11, -3.35, 2, 0)
  202. MovementLoopAddLocation(NPC, -76.05, -0.78, -12.52, 2, 0)
  203. MovementLoopAddLocation(NPC, -76.97, -0.57, -25.34, 2, 0)
  204. MovementLoopAddLocation(NPC, -72.96, -0.58, -38.19, 2, 0)
  205. MovementLoopAddLocation(NPC, -76.29, -0.58, -56.04, 2, 0)
  206. MovementLoopAddLocation(NPC, -73.81, -0.58, -64.76, 2, 0)
  207. MovementLoopAddLocation(NPC, -67.9, -0.57, -66.92, 2, 0)
  208. MovementLoopAddLocation(NPC, -55.05, -0.62, -62.63, 2, 0)
  209. MovementLoopAddLocation(NPC, -45.28, -0.56, -68.13, 2, 0)
  210. MovementLoopAddLocation(NPC, -37.24, -0.59, -60.07, 2, 0)
  211. MovementLoopAddLocation(NPC, -37.79, -0.52, -44.83, 2, 0)
  212. MovementLoopAddLocation(NPC, -42.46, -0.53, -37.13, 2, 0)
  213. MovementLoopAddLocation(NPC, -41.3, -0.54, -28.79, 2, 0)
  214. MovementLoopAddLocation(NPC, -41.3, -0.54, -28.79, 2, 3, "Action")
  215. end
  216. end
  217. function Action(NPC,Spawn)
  218. Despawn(NPC)
  219. end