9
3

TheGroundsKeeper.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. --[[
  2. Script Name : SpawnScripts/DownBelow_Classic/TheGroundsKeeper.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.01.09 09:01:48
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. dmgMod = GetStr(NPC)/10
  11. Named(NPC)
  12. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(30 + dmgMod))
  14. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(60 + dmgMod))
  15. SetSeeHide(NPC,1)
  16. SetSeeInvis(NPC,1)
  17. AddTimer(NPC, 6000,"waypoints")
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. end
  22. function respawn(NPC)
  23. end
  24. function waypoints(NPC)
  25. MovementLoopAddLocation(NPC, -77.8, -0.13, -132.99, 2, 0)
  26. MovementLoopAddLocation(NPC, -83.2, -0.11, -137.97, 2, 0)
  27. MovementLoopAddLocation(NPC, -86.93, -0.08, -135.68, 2, 0)
  28. MovementLoopAddLocation(NPC, -90.96, 0.45, -131.41, 2, 0)
  29. MovementLoopAddLocation(NPC, -95.33, 0.45, -126.78, 2, 0)
  30. MovementLoopAddLocation(NPC, -103.06, -0.09, -119.42, 2, 0)
  31. MovementLoopAddLocation(NPC, -105.92, -0.12, -116.71, 2, 0)
  32. MovementLoopAddLocation(NPC, -112.47, -0.14, -115.38, 2, 0)
  33. MovementLoopAddLocation(NPC, -118.05, -0.09, -116.99, 2, 0)
  34. MovementLoopAddLocation(NPC, -121.33, 0.42, -119.42, 2, 0)
  35. MovementLoopAddLocation(NPC, -126.67, -0.13, -125.38, 2, 0)
  36. MovementLoopAddLocation(NPC, -127.77, -0.11, -130.09, 2, 0)
  37. MovementLoopAddLocation(NPC, -129.2, -0.07, -136.25, 2, 0)
  38. MovementLoopAddLocation(NPC, -128.07, -0.1, -143.89, 2, 0)
  39. MovementLoopAddLocation(NPC, -124.5, -0.12, -148.49, 2, 0)
  40. MovementLoopAddLocation(NPC, -121.16, 0.41, -152.01, 2, 0)
  41. MovementLoopAddLocation(NPC, -119.99, -0.08, -155.59, 2, 0)
  42. MovementLoopAddLocation(NPC, -119.67, -0.02, -173.11, 2, 0)
  43. MovementLoopAddLocation(NPC, -119.99, -0.12, -176.73, 2, 0)
  44. MovementLoopAddLocation(NPC, -121.76, 0.5, -179.62, 2, 0)
  45. MovementLoopAddLocation(NPC, -124.61, -0.12, -181.42, 2, 0)
  46. MovementLoopAddLocation(NPC, -131.85, 0.47, -181.08, 2, 0)
  47. MovementLoopAddLocation(NPC, -138.47, -0.3, -180.48, 2, 0)
  48. MovementLoopAddLocation(NPC, -148.46, -0.38, -176.22, 2, 0)
  49. MovementLoopAddLocation(NPC, -158.5, -0.39, -172.01, 2, 0)
  50. MovementLoopAddLocation(NPC, -165.88, 0.36, -171.48, 2, 0)
  51. MovementLoopAddLocation(NPC, -169.52, -0.08, -173.24, 2, 0)
  52. MovementLoopAddLocation(NPC, -171.49, -0.09, -174.38, 2, 0)
  53. MovementLoopAddLocation(NPC, -173.22, 0.02, -178.61, 2, 0)
  54. MovementLoopAddLocation(NPC, -172.94, -0.12, -182.75, 2, 0)
  55. MovementLoopAddLocation(NPC, -174.21, -0.13, -186.73, 2, 0)
  56. MovementLoopAddLocation(NPC, -175.67, -0.07, -188.49, 2, 0)
  57. MovementLoopAddLocation(NPC, -180.64, -0.15, -189.99, 2, 5)
  58. MovementLoopAddLocation(NPC, -180.64, -0.15, -189.99, 2, 0)
  59. MovementLoopAddLocation(NPC, -177.99, -0.09, -189.84, 2, 0)
  60. MovementLoopAddLocation(NPC, -175.43, -0.07, -188.34, 2, 0)
  61. MovementLoopAddLocation(NPC, -174.01, -0.17, -186.06, 2, 0)
  62. MovementLoopAddLocation(NPC, -173.68, 0.02, -180.28, 2, 0)
  63. MovementLoopAddLocation(NPC, -173.46, -0.01, -176.63, 2, 0)
  64. MovementLoopAddLocation(NPC, -172.63, -0.11, -175.37, 2, 0)
  65. MovementLoopAddLocation(NPC, -169.89, -0.09, -173.04, 2, 0)
  66. MovementLoopAddLocation(NPC, -166.1, 0.35, -171.55, 2, 0)
  67. MovementLoopAddLocation(NPC, -160.27, -0.32, -171.59, 2, 0)
  68. MovementLoopAddLocation(NPC, -149.92, -0.36, -175.93, 2, 0)
  69. MovementLoopAddLocation(NPC, -139.62, -0.35, -180.74, 2, 0)
  70. MovementLoopAddLocation(NPC, -132.42, 0.48, -181.44, 2, 0)
  71. MovementLoopAddLocation(NPC, -127.7, -0.08, -181.54, 2, 0)
  72. MovementLoopAddLocation(NPC, -122.27, 0.52, -179.73, 2, 0)
  73. MovementLoopAddLocation(NPC, -119.59, 0.02, -174.39, 2, 0)
  74. MovementLoopAddLocation(NPC, -119.29, -0.1, -160.63, 2, 0)
  75. MovementLoopAddLocation(NPC, -119.21, -0.08, -156.99, 2, 0)
  76. MovementLoopAddLocation(NPC, -121.04, 0.38, -152.91, 2, 0)
  77. MovementLoopAddLocation(NPC, -123.44, -0.1, -150.73, 2, 0)
  78. MovementLoopAddLocation(NPC, -126.65, -0.04, -147.81, 2, 0)
  79. MovementLoopAddLocation(NPC, -127.42, -0.06, -145.69, 2, 0)
  80. MovementLoopAddLocation(NPC, -128.17, -0.12, -139.2, 2, 0)
  81. MovementLoopAddLocation(NPC, -129.25, -0.04, -139.54, 2, 0)
  82. MovementLoopAddLocation(NPC, -129.36, -0.05, -137.1, 2, 0)
  83. MovementLoopAddLocation(NPC, -127.95, -0.14, -131.41, 2, 0)
  84. MovementLoopAddLocation(NPC, -127.69, 0.23, -129.34, 2, 0)
  85. MovementLoopAddLocation(NPC, -125.23, -0.13, -124.09, 2, 0)
  86. MovementLoopAddLocation(NPC, -121.89, 0.55, -120.25, 2, 0)
  87. MovementLoopAddLocation(NPC, -118.8, -0.08, -117.79, 2, 0)
  88. MovementLoopAddLocation(NPC, -113.58, -0.13, -115.24, 2, 0)
  89. MovementLoopAddLocation(NPC, -109.4, -0.08, -115.65, 2, 0)
  90. MovementLoopAddLocation(NPC, -104.39, -0.09, -118.25, 2, 0)
  91. MovementLoopAddLocation(NPC, -96.26, 0.46, -126.39, 2, 0)
  92. MovementLoopAddLocation(NPC, -91.75, 0.46, -130.87, 2, 0)
  93. MovementLoopAddLocation(NPC, -84.16, -0.12, -138.68, 2, 0)
  94. MovementLoopAddLocation(NPC, -80.36, -0.09, -135.64, 2, 0)
  95. --
  96. MovementLoopAddLocation(NPC, -79.75, -0.1, -134.91, 2, 0)
  97. MovementLoopAddLocation(NPC, -76.48, -0.08, -137.59, 2, 0)
  98. MovementLoopAddLocation(NPC, -73.14, -0.1, -141.61, 2, 0)
  99. MovementLoopAddLocation(NPC, -71.11, -0.06, -145.17, 2, 0)
  100. MovementLoopAddLocation(NPC, -70.44, -0.05, -149.51, 2, 0)
  101. MovementLoopAddLocation(NPC, -69.09, -0.11, -152.6, 2, 0)
  102. MovementLoopAddLocation(NPC, -64.08, 0.09, -153.17, 2, 0)
  103. MovementLoopAddLocation(NPC, -58.03, -0.15, -151.86, 2, 0)
  104. MovementLoopAddLocation(NPC, -53.13, 0.16, -148.3, 2, 0)
  105. MovementLoopAddLocation(NPC, -46.16, -1.07, -141.86, 2, 0)
  106. MovementLoopAddLocation(NPC, -38.65, -0.22, -134.71, 2, 0)
  107. MovementLoopAddLocation(NPC, -35.93, -0.01, -132.03, 2, 0)
  108. MovementLoopAddLocation(NPC, -34.23, 0.54, -127.02, 2, 0)
  109. MovementLoopAddLocation(NPC, -34.19, -0.11, -122.34, 2, 0)
  110. MovementLoopAddLocation(NPC, -34.49, -0.08, -117.06, 2, 0)
  111. MovementLoopAddLocation(NPC, -34.46, -0.06, -111.55, 2, 0)
  112. MovementLoopAddLocation(NPC, -30.79, 0.41, -107.34, 2, 0)
  113. MovementLoopAddLocation(NPC, -27.12, -1, -104.03, 2, 0)
  114. MovementLoopAddLocation(NPC, -21.52, -1.09, -98.69, 2, 0)
  115. MovementLoopAddLocation(NPC, -18.51, 0.34, -95.64, 2, 0)
  116. MovementLoopAddLocation(NPC, -14.84, -0.06, -91.54, 2, 0)
  117. MovementLoopAddLocation(NPC, -12.15, -0.06, -91.39, 2, 0)
  118. MovementLoopAddLocation(NPC, -8.92, -0.13, -93.95, 2, 0)
  119. MovementLoopAddLocation(NPC, -5.31, 0.44, -97.91, 2, 0)
  120. MovementLoopAddLocation(NPC, 0.03, -0.1, -103.24, 2, 0)
  121. MovementLoopAddLocation(NPC, 2.24, -0.02, -106.59, 2, 0)
  122. MovementLoopAddLocation(NPC, 5.17, -0.02, -108.34, 2, 0)
  123. MovementLoopAddLocation(NPC, 8.19, -0.11, -107.07, 2, 0)
  124. MovementLoopAddLocation(NPC, 11.5, 0.19, -104.03, 2, 0)
  125. MovementLoopAddLocation(NPC, 20.74, 0.13, -96.11, 2, 0)
  126. MovementLoopAddLocation(NPC, 22.01, 0.46, -93.3, 2, 0)
  127. MovementLoopAddLocation(NPC, 21.55, 0.27, -88.6, 2, 0)
  128. MovementLoopAddLocation(NPC, 21.27, -1.01, -83.74, 2, 0)
  129. MovementLoopAddLocation(NPC, 21.44, -1.1, -76.56, 2, 0)
  130. MovementLoopAddLocation(NPC, 21.3, -0.08, -72.05, 2, 0)
  131. MovementLoopAddLocation(NPC, 21.27, 0.57, -68.61, 2, 0)
  132. MovementLoopAddLocation(NPC, 19.5, -0.1, -64.81, 2, 0)
  133. MovementLoopAddLocation(NPC, 16.78, -0.07, -61.82, 2, 0)
  134. MovementLoopAddLocation(NPC, 14.19, -0.08, -60.96, 2, 0)
  135. MovementLoopAddLocation(NPC, 11.09, -0.08, -60.5, 2, 0)
  136. MovementLoopAddLocation(NPC, 0.17, -0.09, -60.59, 2, 0)
  137. MovementLoopAddLocation(NPC, -1.21, -0.12, -60.39, 2, 0)
  138. MovementLoopAddLocation(NPC, -4.29, -0.08, -59.27, 2, 0)
  139. MovementLoopAddLocation(NPC, -7.1, -0.12, -56.66, 2, 0)
  140. MovementLoopAddLocation(NPC, -9.9, 0.53, -53.88, 2, 0)
  141. MovementLoopAddLocation(NPC, -13.54, -0.07, -50.08, 2, 0)
  142. MovementLoopAddLocation(NPC, -15.14, -0.13, -47.72, 2, 0)
  143. MovementLoopAddLocation(NPC, -15.58, 0.57, -45.34, 2, 0)
  144. MovementLoopAddLocation(NPC, -15.2, -0.12, -41.81, 2, 0)
  145. MovementLoopAddLocation(NPC, -13.48, -0.12, -40.35, 2, 0)
  146. MovementLoopAddLocation(NPC, -4.5, -0.1, -31.51, 2, 0)
  147. MovementLoopAddLocation(NPC, -2.07, -0.11, -29.11, 2, 0)
  148. MovementLoopAddLocation(NPC, -1.16, 0.51, -27.35, 2, 0)
  149. MovementLoopAddLocation(NPC, -0.19, -0.08, -24.39, 2, 0)
  150. MovementLoopAddLocation(NPC, -0.16, -0.11, -22.42, 2, 5)
  151. MovementLoopAddLocation(NPC, -0.16, -0.11, -22.42, 2, 0)
  152. MovementLoopAddLocation(NPC, 0.14, -0.09, -24.29, 2, 0)
  153. MovementLoopAddLocation(NPC, -0.77, 0.51, -26.76, 2, 0)
  154. MovementLoopAddLocation(NPC, -2.32, -0.12, -29.14, 2, 0)
  155. MovementLoopAddLocation(NPC, -4.26, -0.09, -31.27, 2, 0)
  156. MovementLoopAddLocation(NPC, -13.18, -0.1, -39.41, 2, 0)
  157. MovementLoopAddLocation(NPC, -14.87, -0.12, -41.79, 2, 0)
  158. MovementLoopAddLocation(NPC, -14.93, 0.6, -44.77, 2, 0)
  159. MovementLoopAddLocation(NPC, -15, -0.11, -47.9, 2, 0)
  160. MovementLoopAddLocation(NPC, -12.68, -0.08, -50.63, 2, 0)
  161. MovementLoopAddLocation(NPC, -10.18, 0.53, -53.29, 2, 0)
  162. MovementLoopAddLocation(NPC, -6.21, -0.12, -56.92, 2, 0)
  163. MovementLoopAddLocation(NPC, -2.92, -0.09, -60.02, 2, 0)
  164. MovementLoopAddLocation(NPC, 0.37, -0.09, -60.37, 2, 0)
  165. MovementLoopAddLocation(NPC, 10.28, -0.1, -60.31, 2, 0)
  166. MovementLoopAddLocation(NPC, 12.81, -0.03, -60.04, 2, 0)
  167. MovementLoopAddLocation(NPC, 15.06, -0.13, -61.26, 2, 0)
  168. MovementLoopAddLocation(NPC, 20.06, 0.09, -65.56, 2, 0)
  169. MovementLoopAddLocation(NPC, 21.22, 0.54, -68.19, 2, 0)
  170. MovementLoopAddLocation(NPC, 21.59, -0.16, -72.56, 2, 0)
  171. MovementLoopAddLocation(NPC, 21.5, -1.03, -83.6, 2, 0)
  172. MovementLoopAddLocation(NPC, 21.51, 0.17, -87.64, 2, 0)
  173. MovementLoopAddLocation(NPC, 21.52, 0.45, -93.65, 2, 0)
  174. MovementLoopAddLocation(NPC, 21.28, 0.12, -95.35, 2, 0)
  175. MovementLoopAddLocation(NPC, 13.16, 0.14, -103.65, 2, 0)
  176. MovementLoopAddLocation(NPC, 8.31, -0.11, -107.24, 2, 0)
  177. MovementLoopAddLocation(NPC, 6.78, -0.05, -108.89, 2, 0)
  178. MovementLoopAddLocation(NPC, 4.24, -0.03, -107.6, 2, 0)
  179. MovementLoopAddLocation(NPC, 1.28, -0.07, -104.52, 2, 0)
  180. MovementLoopAddLocation(NPC, -4.6, 0.45, -98.26, 2, 0)
  181. MovementLoopAddLocation(NPC, -10.66, -0.09, -92.61, 2, 0)
  182. MovementLoopAddLocation(NPC, -12.89, -0.06, -90.62, 2, 0)
  183. MovementLoopAddLocation(NPC, -15.45, -0.08, -92.14, 2, 0)
  184. MovementLoopAddLocation(NPC, -17.81, 0.31, -94.55, 2, 0)
  185. MovementLoopAddLocation(NPC, -21.93, -1.08, -98.57, 2, 0)
  186. MovementLoopAddLocation(NPC, -26.6, -1.16, -103.42, 2, 0)
  187. MovementLoopAddLocation(NPC, -29.65, 0.51, -106.44, 2, 0)
  188. MovementLoopAddLocation(NPC, -32.62, 0.02, -109.38, 2, 0)
  189. MovementLoopAddLocation(NPC, -33.77, -0.08, -112.13, 2, 0)
  190. MovementLoopAddLocation(NPC, -33.84, -0.09, -116.08, 2, 0)
  191. MovementLoopAddLocation(NPC, -33.96, -0.14, -122.8, 2, 0)
  192. MovementLoopAddLocation(NPC, -34.01, 0.54, -125.6, 2, 0)
  193. MovementLoopAddLocation(NPC, -34.07, -0.09, -129.21, 2, 0)
  194. MovementLoopAddLocation(NPC, -36.29, -0.01, -131.75, 2, 0)
  195. MovementLoopAddLocation(NPC, -38, 0, -133.5, 2, 0)
  196. MovementLoopAddLocation(NPC, -43.94, -1.08, -139.95, 2, 0)
  197. MovementLoopAddLocation(NPC, -46.33, -1.08, -142.05, 2, 0)
  198. MovementLoopAddLocation(NPC, -52.51, 0.2, -148.05, 2, 0)
  199. MovementLoopAddLocation(NPC, -56.19, -0.03, -150.91, 2, 0)
  200. MovementLoopAddLocation(NPC, -58.44, -0.15, -151.72, 2, 0)
  201. MovementLoopAddLocation(NPC, -62.93, -0.09, -152.65, 2, 0)
  202. MovementLoopAddLocation(NPC, -69.98, -0.11, -152.51, 2, 0)
  203. MovementLoopAddLocation(NPC, -69.61, 0.23, -148.64, 2, 0)
  204. MovementLoopAddLocation(NPC, -70.54, -0.06, -144.72, 2, 0)
  205. MovementLoopAddLocation(NPC, -71.84, -0.09, -142.65, 2, 0)
  206. MovementLoopAddLocation(NPC, -74.82, -0.11, -139.57, 2, 0)
  207. MovementLoopAddLocation(NPC, -79.26, -0.1, -134.88, 2, 0)
  208. MovementLoopAddLocation(NPC, -81.37, -0.09, -136.55, 2, 0)
  209. MovementLoopAddLocation(NPC, -88.03, -0.11, -143.44, 2, 0)
  210. MovementLoopAddLocation(NPC, -88.03, -0.11, -143.44, 2, 0, "Action")
  211. end
  212. function Action(NPC,Spawn)
  213. Despawn(NPC)
  214. end