aforsakenobserver.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/aforsakenobserver.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.15 01:10:24
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile ("SpawnScripts/Generic/MonsterCallouts/BaseWaterElemental1.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. AddTimer(NPC, 6000, "waypoints")
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function waypoints(NPC)
  18. if GetSpawnLocationID(NPC) == 133778186 or GetSpawnLocationID(NPC) == 133778187 then
  19. MovementLoopAddLocation(NPC, 1071.38, -7.6, -747.31, 1, 0)
  20. MovementLoopAddLocation(NPC, 1064.21, -5.87, -746.13, 1, 0)
  21. MovementLoopAddLocation(NPC, 1065.68, -5.87, -739.01, 1, 0)
  22. MovementLoopAddLocation(NPC, 1070.5, -5, -740.62, 1, 0)
  23. MovementLoopAddLocation(NPC, 1071.55, -5, -745.73, 1, 0)
  24. MovementLoopAddLocation(NPC, 1066.46, -4.14, -746.48, 1, 0)
  25. MovementLoopAddLocation(NPC, 1064.51, -3.01, -742.49, 1, 0)
  26. MovementLoopAddLocation(NPC, 1070.65, -3.01, -739.68, 1, 0)
  27. MovementLoopAddLocation(NPC, 1070.65, -3.01, -739.68, 1, 0)
  28. MovementLoopAddLocation(NPC, 1070.26, -3.01, -746.59, 1, 0)
  29. MovementLoopAddLocation(NPC, 1066.94, -3.01, -748.56, 1, 0)
  30. MovementLoopAddLocation(NPC, 1063.2, -3.01, -744.81, 1, 0)
  31. MovementLoopAddLocation(NPC, 1065.53, -3.39, -741.44, 1, 0)
  32. MovementLoopAddLocation(NPC, 1070.63, -6.64, -740.45, 1, 0)
  33. MovementLoopAddLocation(NPC, 1071, -6.64, -744.23, 1, 0)
  34. MovementLoopAddLocation(NPC, 1071.66, -10.07, -748.36, 1, 0)
  35. MovementLoopAddLocation(NPC, 1065.67, -10.07, -748.74, 1, 0)
  36. MovementLoopAddLocation(NPC, 1062.33, -10.07, -744.24, 1, 0)
  37. MovementLoopAddLocation(NPC, 1064.02, -10.07, -739.76, 1, 0)
  38. MovementLoopAddLocation(NPC, 1069.6, -10.07, -738.06, 1, 0)
  39. MovementLoopAddLocation(NPC, 1073.44, -10.07, -741.3, 1, 0)
  40. MovementLoopAddLocation(NPC, 1072.75, -10.07, -748.72, 1, 0)
  41. MovementLoopAddLocation(NPC, 1073.44, -10.07, -741.3, 1, 0)
  42. MovementLoopAddLocation(NPC, 1069.6, -10.07, -738.06, 1, 0)
  43. MovementLoopAddLocation(NPC, 1064.02, -10.07, -739.76, 1, 0)
  44. MovementLoopAddLocation(NPC, 1062.33, -10.07, -744.24, 1, 0)
  45. MovementLoopAddLocation(NPC, 1065.67, -10.07, -748.74, 1, 0)
  46. MovementLoopAddLocation(NPC, 1071.66, -10.07, -748.36, 1, 0)
  47. MovementLoopAddLocation(NPC, 1073, -6.64, -744.23, 1, 0)
  48. MovementLoopAddLocation(NPC, 1070.63, -6.64, -740.45, 1, 0)
  49. MovementLoopAddLocation(NPC, 1065.53, -3.39, -741.44, 1, 0)
  50. MovementLoopAddLocation(NPC, 1063.2, -3.01, -744.81, 1, 0)
  51. MovementLoopAddLocation(NPC, 1066.94, -3.01, -748.56, 1, 0)
  52. MovementLoopAddLocation(NPC, 1072.26, -3.01, -746.59, 1, 0)
  53. MovementLoopAddLocation(NPC, 1072.65, -3.01, -739.68, 1, 0)
  54. MovementLoopAddLocation(NPC, 1072.65, -3.01, -739.68, 1, 0)
  55. MovementLoopAddLocation(NPC, 1064.51, -3.01, -742.49, 1, 0)
  56. MovementLoopAddLocation(NPC, 1066.46, -4.14, -746.48, 1, 0)
  57. MovementLoopAddLocation(NPC, 1071.55, -5, -745.73, 1, 0)
  58. MovementLoopAddLocation(NPC, 1070.5, -5, -740.62, 1, 0)
  59. MovementLoopAddLocation(NPC, 1065.68, -5.87, -739.01, 1, 0)
  60. MovementLoopAddLocation(NPC, 1064.21, -5.87, -746.13, 1, 0)
  61. MovementLoopAddLocation(NPC, 1071.38, -7.6, -747.31, 1, 0)
  62. elseif GetSpawnLocationID(NPC) == 133778322 then
  63. MovementLoopAddLocation(NPC, 1039.23, -5, -759.16, 1, 0)
  64. MovementLoopAddLocation(NPC, 1038.09, -4.49, -761.43, 1, 0)
  65. MovementLoopAddLocation(NPC, 1034.52, -4.49, -762.28, 1, 0)
  66. MovementLoopAddLocation(NPC, 1033.81, -4.49, -760.56, 1, 0)
  67. MovementLoopAddLocation(NPC, 1034.99, -4.49, -758.65, 1, 0)
  68. MovementLoopAddLocation(NPC, 1037.53, -4.49, -756.48, 1, 0)
  69. MovementLoopAddLocation(NPC, 1039.37, -4.49, -758.91, 1, 0)
  70. MovementLoopAddLocation(NPC, 1036.35, -4.49, -762.34, 1, 0)
  71. MovementLoopAddLocation(NPC, 1035.25, -3.31, -758.85, 1, 0)
  72. MovementLoopAddLocation(NPC, 1036.28, -3.31, -757.64, 1, 0)
  73. MovementLoopAddLocation(NPC, 1040.21, -3.31, -758.36, 1, 0)
  74. MovementLoopAddLocation(NPC, 1036.78, -3.31, -761.67, 1, 0)
  75. MovementLoopAddLocation(NPC, 1035.43, -3.31, -758.68, 1, 0)
  76. MovementLoopAddLocation(NPC, 1036.78, -3.31, -761.67, 1, 0)
  77. MovementLoopAddLocation(NPC, 1040.21, -3.31, -758.36, 1, 0)
  78. MovementLoopAddLocation(NPC, 1036.28, -3.31, -757.64, 1, 0)
  79. MovementLoopAddLocation(NPC, 1035.25, -3.31, -758.85, 1, 0)
  80. MovementLoopAddLocation(NPC, 1036.35, -4.49, -762.34, 1, 0)
  81. MovementLoopAddLocation(NPC, 1039.37, -4.49, -758.91, 1, 0)
  82. MovementLoopAddLocation(NPC, 1037.53, -4.49, -756.48, 1, 0)
  83. MovementLoopAddLocation(NPC, 1034.99, -4.49, -758.65, 1, 0)
  84. MovementLoopAddLocation(NPC, 1033.81, -4.49, -760.56, 1, 0)
  85. MovementLoopAddLocation(NPC, 1034.52, -4.49, -762.28, 1, 0)
  86. MovementLoopAddLocation(NPC, 1038.09, -4.49, -761.43, 1, 0)
  87. MovementLoopAddLocation(NPC, 1039.23, -5, -759.16, 1, 0)
  88. elseif GetSpawnLocationID(NPC) == 133778321 then
  89. MovementLoopAddLocation(NPC, 1049.92, -5, -771.68, 1, 0)
  90. MovementLoopAddLocation(NPC, 1052.63, -5, -773.45, 1, 0)
  91. MovementLoopAddLocation(NPC, 1051.4, -5.01, -777.35, 1, 0)
  92. MovementLoopAddLocation(NPC, 1049.35, -5.01, -776.63, 1, 0)
  93. MovementLoopAddLocation(NPC, 1048.96, -5.01, -772.52, 1, 0)
  94. MovementLoopAddLocation(NPC, 1052.02, -5.01, -772.27, 1, 0)
  95. MovementLoopAddLocation(NPC, 1053.24, -3.57, -772.93, 1, 0)
  96. MovementLoopAddLocation(NPC, 1052.3, -3.57, -776.64, 1, 0)
  97. MovementLoopAddLocation(NPC, 1048.55, -3.57, -775.93, 1, 0)
  98. MovementLoopAddLocation(NPC, 1050.63, -3.57, -771.62, 1, 0)
  99. MovementLoopAddLocation(NPC, 1052.43, -1.73, -772.43, 1, 0)
  100. MovementLoopAddLocation(NPC, 1054.77, -1.73, -775.14, 1, 0)
  101. MovementLoopAddLocation(NPC, 1051.98, -1.73, -776.93, 1, 0)
  102. MovementLoopAddLocation(NPC, 1046.77, -1.73, -775.09, 1, 0)
  103. MovementLoopAddLocation(NPC, 1050.2, -1.73, -771.72, 1, 0)
  104. MovementLoopAddLocation(NPC, 1052.96, -1.73, -776.56, 1, 0)
  105. MovementLoopAddLocation(NPC, 1050.2, -1.73, -771.72, 1, 0)
  106. MovementLoopAddLocation(NPC, 1046.77, -1.73, -775.09, 1, 0)
  107. MovementLoopAddLocation(NPC, 1051.98, -1.73, -776.93, 1, 0)
  108. MovementLoopAddLocation(NPC, 1054.77, -1.73, -775.14, 1, 0)
  109. MovementLoopAddLocation(NPC, 1052.43, -1.73, -772.43, 1, 0)
  110. MovementLoopAddLocation(NPC, 1050.63, -3.57, -771.62, 1, 0)
  111. MovementLoopAddLocation(NPC, 1048.55, -3.57, -775.93, 1, 0)
  112. MovementLoopAddLocation(NPC, 1052.3, -3.57, -776.64, 1, 0)
  113. MovementLoopAddLocation(NPC, 1053.24, -3.57, -772.93, 1, 0)
  114. MovementLoopAddLocation(NPC, 1052.02, -5.01, -772.27, 1, 0)
  115. MovementLoopAddLocation(NPC, 1048.96, -5.01, -772.52, 1, 0)
  116. MovementLoopAddLocation(NPC, 1049.35, -5.01, -776.63, 1, 0)
  117. MovementLoopAddLocation(NPC, 1051.4, -5.01, -777.35, 1, 0)
  118. MovementLoopAddLocation(NPC, 1052.63, -5, -773.45, 1, 0)
  119. MovementLoopAddLocation(NPC, 1049.92, -5, -771.68, 1, 0)
  120. elseif GetSpawnLocationID(NPC) == 133778319 then
  121. MovementLoopAddLocation(NPC, 1062.74, -6, -790.63, 1, 0)
  122. MovementLoopAddLocation(NPC, 1068.66, -6, -793.55, 1, 0)
  123. MovementLoopAddLocation(NPC, 1071.1, -5.69, -791.42, 1, 0)
  124. MovementLoopAddLocation(NPC, 1065.21, -5.69, -790.73, 1, 0)
  125. MovementLoopAddLocation(NPC, 1061.9, -5.69, -794.7, 1, 0)
  126. MovementLoopAddLocation(NPC, 1058.54, -5.69, -793.93, 1, 0)
  127. MovementLoopAddLocation(NPC, 1057.65, -5.69, -788.19, 1, 0)
  128. MovementLoopAddLocation(NPC, 1063.58, -5.69, -787.09, 1, 0)
  129. MovementLoopAddLocation(NPC, 1067.56, -5.69, -790.39, 1, 0)
  130. MovementLoopAddLocation(NPC, 1071.01, -5.69, -792.06, 1, 0)
  131. MovementLoopAddLocation(NPC, 1070.5, -5.65, -793.96, 1, 0)
  132. MovementLoopAddLocation(NPC, 1063.98, -5.53, -795.88, 1, 0)
  133. MovementLoopAddLocation(NPC, 1059.67, -5.53, -793.6, 1, 0)
  134. MovementLoopAddLocation(NPC, 1064.32, -5.53, -782.6, 1, 0)
  135. MovementLoopAddLocation(NPC, 1065.39, -5.53, -778.69, 1, 0)
  136. MovementLoopAddLocation(NPC, 1064.08, -5.55, -775.81, 1, 0)
  137. MovementLoopAddLocation(NPC, 1062.31, -5.55, -778.97, 1, 0)
  138. MovementLoopAddLocation(NPC, 1066.82, -5.55, -789.3, 1, 0)
  139. MovementLoopAddLocation(NPC, 1068.05, -5.55, -793.4, 1, 0)
  140. MovementLoopAddLocation(NPC, 1062.34, -5.55, -794.64, 1, 0)
  141. MovementLoopAddLocation(NPC, 1058.84, -5.55, -786.59, 1, 0)
  142. MovementLoopAddLocation(NPC, 1064.31, -5.55, -787.68, 1, 0)
  143. MovementLoopAddLocation(NPC, 1064.43, -5.55, -794.75, 1, 0)
  144. MovementLoopAddLocation(NPC, 1064.31, -5.55, -787.68, 1, 0)
  145. MovementLoopAddLocation(NPC, 1058.84, -5.55, -786.59, 1, 0)
  146. MovementLoopAddLocation(NPC, 1062.34, -5.55, -794.64, 1, 0)
  147. MovementLoopAddLocation(NPC, 1068.05, -5.55, -793.4, 1, 0)
  148. MovementLoopAddLocation(NPC, 1066.82, -5.55, -789.3, 1, 0)
  149. MovementLoopAddLocation(NPC, 1062.31, -5.55, -778.97, 1, 0)
  150. MovementLoopAddLocation(NPC, 1064.08, -5.55, -775.81, 1, 0)
  151. MovementLoopAddLocation(NPC, 1065.39, -5.53, -778.69, 1, 0)
  152. MovementLoopAddLocation(NPC, 1064.32, -5.53, -782.6, 1, 0)
  153. MovementLoopAddLocation(NPC, 1059.67, -5.53, -793.6, 1, 0)
  154. MovementLoopAddLocation(NPC, 1063.98, -5.53, -795.88, 1, 0)
  155. MovementLoopAddLocation(NPC, 1070.5, -5.65, -793.96, 1, 0)
  156. MovementLoopAddLocation(NPC, 1071.01, -5.69, -792.06, 1, 0)
  157. MovementLoopAddLocation(NPC, 1067.56, -5.69, -790.39, 1, 0)
  158. MovementLoopAddLocation(NPC, 1063.58, -5.69, -787.09, 1, 0)
  159. MovementLoopAddLocation(NPC, 1057.65, -5.69, -788.19, 1, 0)
  160. MovementLoopAddLocation(NPC, 1058.54, -5.69, -793.93, 1, 0)
  161. MovementLoopAddLocation(NPC, 1061.9, -5.69, -794.7, 1, 0)
  162. MovementLoopAddLocation(NPC, 1065.21, -5.69, -790.73, 1, 0)
  163. MovementLoopAddLocation(NPC, 1071.1, -5.69, -791.42, 1, 0)
  164. MovementLoopAddLocation(NPC, 1068.66, -6, -793.55, 1, 0)
  165. MovementLoopAddLocation(NPC, 1062.74, -6, -790.63, 1, 0)
  166. elseif GetSpawnLocationID(NPC) == 133778320 then
  167. MovementLoopAddLocation(NPC, 1032.69, -5.55, -778.74, 1, 0)
  168. MovementLoopAddLocation(NPC, 1029.78, -4.2, -773.47, 1, 0)
  169. MovementLoopAddLocation(NPC, 1025.39, -4.2, -765.55, 1, 0)
  170. MovementLoopAddLocation(NPC, 1027.29, -5, -769.95, 1, 0)
  171. MovementLoopAddLocation(NPC, 1032.73, -5, -777.95, 1, 0)
  172. MovementLoopAddLocation(NPC, 1029.8, -5, -776.66, 1, 0)
  173. MovementLoopAddLocation(NPC, 1030, -5, -772.14, 1, 0)
  174. MovementLoopAddLocation(NPC, 1025.67, -5, -767.1, 1, 0)
  175. MovementLoopAddLocation(NPC, 1026.58, -5, -769.05, 1, 0)
  176. MovementLoopAddLocation(NPC, 1028.93, -2.75, -775.56, 1, 0)
  177. MovementLoopAddLocation(NPC, 1032.09, -2.75, -777.51, 1, 0)
  178. MovementLoopAddLocation(NPC, 1032.24, -2.75, -772.95, 1, 0)
  179. MovementLoopAddLocation(NPC, 1026.5, -2.75, -768.77, 1, 0)
  180. MovementLoopAddLocation(NPC, 1025.6, -2.75, -764.98, 1, 0)
  181. MovementLoopAddLocation(NPC, 1028.64, -5, -774.53, 1, 0)
  182. MovementLoopAddLocation(NPC, 1032.31, -5, -777.28, 1, 0)
  183. MovementLoopAddLocation(NPC, 1031.78, -5, -773.68, 1, 0)
  184. MovementLoopAddLocation(NPC, 1032.31, -5, -777.28, 1, 0)
  185. MovementLoopAddLocation(NPC, 1028.64, -5, -774.53, 1, 0)
  186. MovementLoopAddLocation(NPC, 1025.6, -2.75, -764.98, 1, 0)
  187. MovementLoopAddLocation(NPC, 1026.5, -2.75, -768.77, 1, 0)
  188. MovementLoopAddLocation(NPC, 1032.24, -2.75, -772.95, 1, 0)
  189. MovementLoopAddLocation(NPC, 1032.09, -2.75, -777.51, 1, 0)
  190. MovementLoopAddLocation(NPC, 1028.93, -2.75, -775.56, 1, 0)
  191. MovementLoopAddLocation(NPC, 1026.58, -5, -769.05, 1, 0)
  192. MovementLoopAddLocation(NPC, 1025.67, -5, -767.1, 1, 0)
  193. MovementLoopAddLocation(NPC, 1030, -5, -772.14, 1, 0)
  194. MovementLoopAddLocation(NPC, 1029.8, -5, -776.66, 1, 0)
  195. MovementLoopAddLocation(NPC, 1032.73, -5, -777.95, 1, 0)
  196. MovementLoopAddLocation(NPC, 1027.29, -5, -769.95, 1, 0)
  197. MovementLoopAddLocation(NPC, 1025.39, -4.2, -765.55, 1, 0)
  198. MovementLoopAddLocation(NPC, 1029.78, -4.2, -773.47, 1, 0)
  199. MovementLoopAddLocation(NPC, 1032.69, -5.55, -778.74, 1, 0)
  200. end
  201. end