arat.lua 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. --[[
  2. Script Name : SpawnScripts/TempleSt/arat.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.23 11:10:34
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. waypoints1(NPC)
  10. DespawnCheck(NPC)
  11. if GetSpawnLocationID(NPC) ==420362 or
  12. GetSpawnLocationID(NPC) ==420349 or
  13. GetSpawnLocationID(NPC) ==420316 then
  14. else
  15. AddTimer(NPC,MakeRandomInt(3000,6000),"ChefCheck")
  16. end
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function DespawnCheck(NPC)
  22. if GetSpawnLocationID(NPC) ==420362 then
  23. AddTimer(NPC,184000,"Despawning")
  24. elseif GetSpawnLocationID(NPC) ==420349 then
  25. AddTimer(NPC,123000,"Despawning")
  26. elseif GetSpawnLocationID(NPC) ==420316 then
  27. AddTimer(NPC,123000,"Despawning")
  28. end
  29. end
  30. function ChefCheck(NPC,Spawn)
  31. if IsAlive(NPC) then
  32. AddTimer(NPC,MakeRandomInt(4000,7000),"ChefCheck")
  33. local zone = GetZone(NPC)
  34. local Chef = GetSpawnByLocationID(zone,420550)
  35. if not IsInCombat(NPC) and Chef~= nil and not IsInCombat(Chef)then
  36. local Distance = GetDistance(NPC,Chef,1)
  37. if Distance <=4 then
  38. Attack(Chef,NPC)
  39. Attack(NPC,Chef)
  40. local x = GetX(Chef)
  41. local y = GetY(Chef)
  42. local z = GetZ(Chef)
  43. SetFollowTarget(Chef,NPC)
  44. SetFollowTarget(NPC,Chef)
  45. ToggleFollow(Chef)
  46. ToggleFollow(NPC)
  47. SetTarget(Chef,NPC)
  48. FaceTarget(Chef,NPC)
  49. FaceTarget(NPC,Chef)
  50. PlayFlavor(NPC,"","","attack",0,0)
  51. AddTimer(NPC,MakeRandomInt(2500,4500),"kill",1,Spawn)
  52. end
  53. end
  54. end
  55. end
  56. function kill (NPC,Spawn)
  57. ApplySpellVisual(NPC,51)
  58. local zone = GetZone(NPC)
  59. local Chef = GetSpawnByLocationID(zone,420550)
  60. PlayFlavor(Chef,"","","1h_sword_attack",0,0)
  61. KillSpawn(NPC)
  62. AddTimer(Chef,2500,"scoop")
  63. AddTimer(NPC,3000,"Despawning")
  64. end
  65. function Despawning(NPC,Spawn)
  66. Despawn(NPC)
  67. end
  68. function scoop(NPC,Spawn)
  69. local zone = GetZone(NPC)
  70. local Chef = GetSpawnByLocationID(zone,420550)
  71. PlayFlavor(Chef,"","","gathering_success",0,0)
  72. Despawn(NPC)
  73. end
  74. function waypoints1(NPC)
  75. if GetSpawnLocationID(NPC) ==420362 then--Methos1
  76. MoveToLocation(NPC,28.6, 3, 61.12, 1)
  77. elseif GetSpawnLocationID(NPC) ==420349 then--Methos2
  78. MoveToLocation(NPC,33.31, 3.00, 71.43, 4)
  79. elseif GetSpawnLocationID(NPC) ==420316 then--Skitter
  80. MoveToLocation(NPC,-22.84, 3.00, 84.05, 4)
  81. elseif GetSpawnLocationID(NPC) ==420418 then --roamer1
  82. MovementLoopAddLocation(NPC, 50.22, 3, 60.54, 2, 0)
  83. MovementLoopAddLocation(NPC, 46.6, 3, 54.03, 2, 0)
  84. MovementLoopAddLocation(NPC, 50.28, 3, 42.38, 2, 18)
  85. MovementLoopAddLocation(NPC, 48.27, 3, 48.06, 4, 0)
  86. MovementLoopAddLocation(NPC, 47.57, 3, 51.15, 4, 0)
  87. MovementLoopAddLocation(NPC, 50.07, 3, 59.61, 4, 0)
  88. MovementLoopAddLocation(NPC, 53.1, 3, 63.73, 4, 0)
  89. MovementLoopAddLocation(NPC, 53.17, 3, 68.48, 4, 0)
  90. MovementLoopAddLocation(NPC, 47.78, 3, 72.85, 4, 6)
  91. MovementLoopAddLocation(NPC, 42.18, 3.00, 75.57, 2, 0)
  92. MovementLoopAddLocation(NPC, 46.98, 3.00, 80.83, 2, 18)
  93. MovementLoopAddLocation(NPC, 43.67, 3, 80.19, 2, 0)
  94. MovementLoopAddLocation(NPC, 45.03, 3, 71.96, 4, 0)
  95. MovementLoopAddLocation(NPC, 53.2, 3, 66.09, 4, 0)
  96. MovementLoopAddLocation(NPC, 58.40, 3.00, 61.48, 4, 0)
  97. MovementLoopAddLocation(NPC, 65.21, 3, 60, 2, 0)
  98. MovementLoopAddLocation(NPC, 65.21, 3, 60, 2, 18)
  99. MovementLoopAddLocation(NPC, 59.17, 3, 60.8, 2, 0)
  100. MovementLoopAddLocation(NPC, 54.7, 3, 63.07, 2, 0)
  101. MovementLoopAddLocation(NPC, 51.18, 3, 62.03, 4, 0)
  102. MovementLoopAddLocation(NPC, 48.25, 3, 55.38, 4, 0)
  103. MovementLoopAddLocation(NPC, 42.85, 3, 49.97, 4, 0)
  104. MovementLoopAddLocation(NPC, 37.28, 3, 50.96, 4, 0)
  105. MovementLoopAddLocation(NPC, 29.87, 2.99, 48.11, 2, 0)
  106. MovementLoopAddLocation(NPC, 23.79, 2.92, 39.37, 2, 0)
  107. MovementLoopAddLocation(NPC, 20.73, 2.92, 39.49, 2, 18)
  108. MovementLoopAddLocation(NPC, 18.33, 2.92, 36.27, 4, 0)
  109. MovementLoopAddLocation(NPC, 4.64, 2.92, 28.45, 4, 0)
  110. MovementLoopAddLocation(NPC, 4.79, 2.92, 27.57, 2, 18)
  111. MovementLoopAddLocation(NPC, 7.39, 2.92, 30.12, 2, 0)
  112. MovementLoopAddLocation(NPC, 19.62, 2.92, 34.94, 2, 0)
  113. MovementLoopAddLocation(NPC, 34.67, 2.92, 28.9, 2, 18)
  114. MovementLoopAddLocation(NPC, 30.63, 2.92, 31.15, 4, 0)
  115. MovementLoopAddLocation(NPC, 29.61, 2.92, 35.36, 4, 0)
  116. MovementLoopAddLocation(NPC, 33.03, 2.95, 45.05, 4, 0)
  117. MovementLoopAddLocation(NPC, 38.31, 3, 49.99, 4, 0)
  118. MovementLoopAddLocation(NPC, 42.27, 3.00, 49.37, 4, 0)
  119. MovementLoopAddLocation(NPC, 50.8, 3, 58.39, 2, 18)
  120. elseif GetSpawnLocationID(NPC) ==420319 then --roamer2
  121. MovementLoopAddLocation(NPC, 3.31, 3, 52.7, 4, MakeRandomInt(10,20))
  122. MovementLoopAddLocation(NPC, 1.61, 3, 56.29, 4, 0)
  123. MovementLoopAddLocation(NPC, -0.33, 3, 63.8, 4, 0)
  124. MovementLoopAddLocation(NPC, 1.79, 3, 70.83, 4, 0)
  125. MovementLoopAddLocation(NPC, -3.19, 3, 75.71, 4, 0)
  126. MovementLoopAddLocation(NPC, -8.54, 3, 79.15, 4, 0)
  127. MovementLoopAddLocation(NPC, -13.67, 3, 79.65, 4, 0)
  128. MovementLoopAddLocation(NPC, -23.53, 3, 83.75, 4, 0)
  129. MovementLoopAddLocation(NPC, -30.23, 3, 79.81, 4, 0)
  130. MovementLoopAddLocation(NPC, -31.27, 3, 77.92, 4, 0)
  131. MovementLoopAddLocation(NPC, -27.5, 3, 71.29, 4, 0)
  132. MovementLoopAddLocation(NPC, -24.61, 3, 67.05, 4, MakeRandomInt(10,20))
  133. MovementLoopAddLocation(NPC, -27.47, 3, 74.66, 4, 0)
  134. MovementLoopAddLocation(NPC, -28.88, 3, 76.96, 4, 0)
  135. MovementLoopAddLocation(NPC, -26.4, 3, 82.04, 4, 0)
  136. MovementLoopAddLocation(NPC, -21.04, 3, 84.58, 4, 0)
  137. MovementLoopAddLocation(NPC, -13.17, 3, 79.84, 4, 0)
  138. MovementLoopAddLocation(NPC, -9.42, 3, 77.55, 4, 0)
  139. MovementLoopAddLocation(NPC, -6.94, 3, 88.58, 4, 0)
  140. MovementLoopAddLocation(NPC, 4.62, 3, 86.19, 4, 0)
  141. MovementLoopAddLocation(NPC, 15.72, 3, 83.36, 4, 0)
  142. MovementLoopAddLocation(NPC, 20.94, 3.01, 86.49, 4, 0)
  143. MovementLoopAddLocation(NPC, 29.33, 3, 85.66, 4, 0)
  144. MovementLoopAddLocation(NPC, 32.1, 3, 84.54, 4, 0)
  145. MovementLoopAddLocation(NPC, 32.27, 3, 79.66, 4, 0)
  146. MovementLoopAddLocation(NPC, 36.16, 3, 64.43, 4, MakeRandomInt(10,20))
  147. MovementLoopAddLocation(NPC, 32.66, 3, 59.03, 4, 0)
  148. MovementLoopAddLocation(NPC, 31.89, 3, 55.81, 4, 0)
  149. MovementLoopAddLocation(NPC, 35.17, 3, 46.31, 4, MakeRandomInt(10,20))
  150. MovementLoopAddLocation(NPC, 29.3, 3, 57.84, 4, 0)
  151. MovementLoopAddLocation(NPC, 20.79, 2.95, 70.82, 4, 0)
  152. MovementLoopAddLocation(NPC, 14.68, 3, 73.55, 4, 0)
  153. MovementLoopAddLocation(NPC, 0.87, 3, 66.21, 4, 0)
  154. MovementLoopAddLocation(NPC, -1.66, 3, 59.99, 4, 0)
  155. elseif GetSpawnLocationID(NPC) ==420307 then --roamer3
  156. MovementLoopAddLocation(NPC, -34.04, 2.86, 122.62, 4, MakeRandomInt(8,14))
  157. MovementLoopAddLocation(NPC, -38.34, 2.85, 118.87, 4, 0)
  158. MovementLoopAddLocation(NPC, -33.16, 3.03, 112.12, 4, 0)
  159. MovementLoopAddLocation(NPC, -26.17, 2.75, 107.21, 4, 0)
  160. MovementLoopAddLocation(NPC, -18.56, 3, 102.99, 4, 0)
  161. MovementLoopAddLocation(NPC, -19.36, 3, 97.14, 4, 10)
  162. MovementLoopAddLocation(NPC, -19.36, 3, 97.14, 4, 0)
  163. MovementLoopAddLocation(NPC, -13.79, 3, 104.47, 4, 0)
  164. MovementLoopAddLocation(NPC, -6.69, 3, 101.42, 4, 0)
  165. MovementLoopAddLocation(NPC, -1.94, 3, 102.93, 4, 0)
  166. MovementLoopAddLocation(NPC, 0.35, 3, 110.97, 4, 0)
  167. MovementLoopAddLocation(NPC, -2.57, 3, 113.71, 4, 0)
  168. MovementLoopAddLocation(NPC, -9.48, 3, 116.75, 4, MakeRandomInt(8,14))
  169. MovementLoopAddLocation(NPC, -0.24, 3, 112.11, 4, 0)
  170. MovementLoopAddLocation(NPC, 0.37, 3, 109.8, 4, 0)
  171. MovementLoopAddLocation(NPC, -4.65, 3, 98.85, 4, 0)
  172. MovementLoopAddLocation(NPC, -6.95, 3, 92.88, 4, 0)
  173. MovementLoopAddLocation(NPC, -4.88, 3, 90.4, 4, 0)
  174. MovementLoopAddLocation(NPC, 2.35, 3, 86.32, 4, 0)
  175. MovementLoopAddLocation(NPC, 11.51, 3, 83.06, 4, 0)
  176. MovementLoopAddLocation(NPC, 12.79, 3, 81.17, 4, MakeRandomInt(8,14))
  177. MovementLoopAddLocation(NPC, 18.86, 3, 84.01, 4, 0)
  178. MovementLoopAddLocation(NPC, 29.86, 3, 102.37, 4, 0)
  179. MovementLoopAddLocation(NPC, 34.26, 3, 108.75, 4, 0)
  180. MovementLoopAddLocation(NPC, 44.05, 3.1, 103.55, 4, 0)
  181. MovementLoopAddLocation(NPC, 51.2, 3, 99.48, 4, 0)
  182. MovementLoopAddLocation(NPC, 46.04, 3, 89.15, 4, 0)
  183. MovementLoopAddLocation(NPC, 45.64, 3, 83.43, 4, 0)
  184. MovementLoopAddLocation(NPC, 42.66, 3, 79.1, 4, 0)
  185. MovementLoopAddLocation(NPC, 34.79, 3, 75.25, 4, 0)
  186. MovementLoopAddLocation(NPC, 31.02, 3, 67.66, 4, 0)
  187. MovementLoopAddLocation(NPC, 29.34, 3, 60.05, 4, 0)
  188. MovementLoopAddLocation(NPC, 35.42, 3, 46.23, 4, MakeRandomInt(8,14))
  189. MovementLoopAddLocation(NPC, 34.57, 3, 51.93, 4, 0)
  190. MovementLoopAddLocation(NPC, 31.61, 3, 57.1, 4, 0)
  191. MovementLoopAddLocation(NPC, 36.27, 3, 64.26, 4, MakeRandomInt(8,14))
  192. MovementLoopAddLocation(NPC, 34.19, 3, 71.14, 4, 0)
  193. MovementLoopAddLocation(NPC, 33.26, 3, 74.34, 4, 0)
  194. MovementLoopAddLocation(NPC, 27.07, 3, 76.92, 4, 0)
  195. MovementLoopAddLocation(NPC, 11.65, 3, 70.79, 4, 0)
  196. MovementLoopAddLocation(NPC, 7.1, 3, 68.84, 4, 0)
  197. MovementLoopAddLocation(NPC, -1.14, 3, 70.64, 4, 0)
  198. MovementLoopAddLocation(NPC, -4.93, 3, 75.08, 4, 0)
  199. MovementLoopAddLocation(NPC, -25.79, 3, 84.46, 4, 0)
  200. MovementLoopAddLocation(NPC, -28.99, 3, 81.59, 4, 0)
  201. MovementLoopAddLocation(NPC, -28.53, 3, 76.05, 4, 0)
  202. MovementLoopAddLocation(NPC, -25.03, 3, 71.16, 4, 0)
  203. MovementLoopAddLocation(NPC, -20.24, 3, 69.95, 4, 0)
  204. MovementLoopAddLocation(NPC, -19.01, 3, 70.96, 4, MakeRandomInt(8,14))
  205. MovementLoopAddLocation(NPC, -22.9, 3, 69.39, 4, 0)
  206. MovementLoopAddLocation(NPC, -27.43, 3, 73.35, 4, 0)
  207. MovementLoopAddLocation(NPC, -29.36, 3, 76.45, 4, 0)
  208. MovementLoopAddLocation(NPC, -27.29, 3, 83.2, 4, 0)
  209. MovementLoopAddLocation(NPC, -24.71, 3, 84, 4, 0)
  210. MovementLoopAddLocation(NPC, -12.64, 3, 78.39, 4, 0)
  211. MovementLoopAddLocation(NPC, -5.14, 3, 88.64, 4, 0)
  212. MovementLoopAddLocation(NPC, -6.25, 3, 92.46, 4, 0)
  213. MovementLoopAddLocation(NPC, -4.26, 3.27, 99.63, 4, 0)
  214. MovementLoopAddLocation(NPC, -3.23, 3, 104.85, 4, 0)
  215. MovementLoopAddLocation(NPC, -3.23, 3, 104.85, 4, MakeRandomInt(8,14))
  216. MovementLoopAddLocation(NPC, -4.53, 3, 101.11, 4, 0)
  217. MovementLoopAddLocation(NPC, -14.43, 3, 104.5, 4, 0)
  218. MovementLoopAddLocation(NPC, -32.17, 3.18, 108, 4, MakeRandomInt(8,14))
  219. MovementLoopAddLocation(NPC, -31.54, 2.84, 109.77, 4, 0)
  220. MovementLoopAddLocation(NPC, -33.48, 2.87, 113.22, 4, 0)
  221. MovementLoopAddLocation(NPC, -47.3, 2.84, 122.62, 4, 0)
  222. MovementLoopAddLocation(NPC, -63.57, 2.84, 126.96, 4, 0)
  223. MovementLoopAddLocation(NPC, -49.6, 2.83, 120.21, 4, 0)
  224. MovementLoopAddLocation(NPC, -19.08, 2.65, 105.32, 4, 0)
  225. MovementLoopAddLocation(NPC, -9.01, 3, 102.93, 4, 0)
  226. MovementLoopAddLocation(NPC, -5.34, 3, 98.16, 4, 0)
  227. MovementLoopAddLocation(NPC, -7.39, 3, 89.53, 4, 0)
  228. MovementLoopAddLocation(NPC, -10.11, 3, 78.03, 4, 0)
  229. MovementLoopAddLocation(NPC, 4.34, 3, 71.36, 4, 0)
  230. MovementLoopAddLocation(NPC, 1.48, 3, 65.69, 4, 0)
  231. MovementLoopAddLocation(NPC, -4.74, 3, 58.51, 4, 0)
  232. MovementLoopAddLocation(NPC, -11.18, 3, 62.23, 4, 0)
  233. MovementLoopAddLocation(NPC, -11.14, 3, 63.36, 4, MakeRandomInt(8,14))
  234. MovementLoopAddLocation(NPC, -11.18, 3, 62.23, 4, 0)
  235. MovementLoopAddLocation(NPC, -4.74, 3, 58.51, 4, 0)
  236. MovementLoopAddLocation(NPC, 1.48, 3, 65.69, 4, 0)
  237. MovementLoopAddLocation(NPC, 4.34, 3, 71.36, 4, 0)
  238. MovementLoopAddLocation(NPC, -10.11, 3, 78.03, 4, 0)
  239. MovementLoopAddLocation(NPC, -7.39, 3, 89.53, 4, 0)
  240. MovementLoopAddLocation(NPC, -5.34, 3, 98.16, 4, 0)
  241. MovementLoopAddLocation(NPC, -9.01, 3, 102.93, 4, 0)
  242. MovementLoopAddLocation(NPC, -19.08, 2.65, 105.32, 4, 0)
  243. MovementLoopAddLocation(NPC, -49.6, 2.83, 120.21, 4, 0)
  244. MovementLoopAddLocation(NPC, -63.57, 2.84, 126.96, 4, 0)
  245. MovementLoopAddLocation(NPC, -47.3, 2.84, 122.62, 4, 0)
  246. MovementLoopAddLocation(NPC, -33.48, 2.87, 113.22, 4, 0)
  247. MovementLoopAddLocation(NPC, -31.54, 2.84, 109.77, 4, 0)
  248. MovementLoopAddLocation(NPC, -32.17, 3.18, 108, 4, 10)
  249. MovementLoopAddLocation(NPC, -14.43, 3, 104.5, 4, 0)
  250. MovementLoopAddLocation(NPC, -4.53, 3, 101.11, 4, 0)
  251. MovementLoopAddLocation(NPC, -3.23, 3, 104.85, 4, MakeRandomInt(8,14))
  252. MovementLoopAddLocation(NPC, -3.23, 3, 104.85, 4, 0)
  253. MovementLoopAddLocation(NPC, -4.26, 3.27, 99.63, 4, 0)
  254. MovementLoopAddLocation(NPC, -6.25, 3, 92.46, 4, 0)
  255. MovementLoopAddLocation(NPC, -5.14, 3, 88.64, 4, 0)
  256. MovementLoopAddLocation(NPC, -12.64, 3, 78.39, 4, 0)
  257. MovementLoopAddLocation(NPC, -24.71, 3, 84, 4, 0)
  258. MovementLoopAddLocation(NPC, -27.29, 3, 83.2, 4, 0)
  259. MovementLoopAddLocation(NPC, -29.36, 3, 76.45, 4, 0)
  260. MovementLoopAddLocation(NPC, -27.43, 3, 73.35, 4, 0)
  261. MovementLoopAddLocation(NPC, -22.9, 3, 69.39, 4, 0)
  262. MovementLoopAddLocation(NPC, -19.01, 3, 70.96, 4, MakeRandomInt(8,14))
  263. MovementLoopAddLocation(NPC, -20.24, 3, 69.95, 4, 0)
  264. MovementLoopAddLocation(NPC, -25.03, 3, 71.16, 4, 0)
  265. MovementLoopAddLocation(NPC, -28.53, 3, 76.05, 4, 0)
  266. MovementLoopAddLocation(NPC, -28.99, 3, 81.59, 4, 0)
  267. MovementLoopAddLocation(NPC, -25.79, 3, 84.46, 4, 0)
  268. MovementLoopAddLocation(NPC, -4.93, 3, 75.08, 4, 0)
  269. MovementLoopAddLocation(NPC, -1.14, 3, 70.64, 4, 0)
  270. MovementLoopAddLocation(NPC, 7.1, 3, 68.84, 4, 0)
  271. MovementLoopAddLocation(NPC, 11.65, 3, 70.79, 4, 0)
  272. MovementLoopAddLocation(NPC, 27.07, 3, 76.92, 4, 0)
  273. MovementLoopAddLocation(NPC, 33.26, 3, 74.34, 4, 0)
  274. MovementLoopAddLocation(NPC, 34.19, 3, 71.14, 4, 0)
  275. MovementLoopAddLocation(NPC, 36.27, 3, 64.26, 4, MakeRandomInt(8,14))
  276. MovementLoopAddLocation(NPC, 31.61, 3, 57.1, 4, 0)
  277. MovementLoopAddLocation(NPC, 34.57, 3, 51.93, 4, 0)
  278. MovementLoopAddLocation(NPC, 35.42, 3, 46.23, 4, MakeRandomInt(8,14))
  279. MovementLoopAddLocation(NPC, 29.34, 3, 60.05, 4, 0)
  280. MovementLoopAddLocation(NPC, 31.02, 3, 67.66, 4, 0)
  281. MovementLoopAddLocation(NPC, 34.79, 3, 75.25, 4, 0)
  282. MovementLoopAddLocation(NPC, 42.66, 3, 79.1, 4, 0)
  283. MovementLoopAddLocation(NPC, 45.64, 3, 83.43, 4, 0)
  284. MovementLoopAddLocation(NPC, 46.04, 3, 89.15, 4, 0)
  285. MovementLoopAddLocation(NPC, 51.2, 3, 99.48, 4, 0)
  286. MovementLoopAddLocation(NPC, 44.05, 3.1, 103.55, 4, 0)
  287. MovementLoopAddLocation(NPC, 34.26, 3, 108.75, 4, 0)
  288. MovementLoopAddLocation(NPC, 29.86, 3, 102.37, 4, 0)
  289. MovementLoopAddLocation(NPC, 18.86, 3, 84.01, 4, 0)
  290. MovementLoopAddLocation(NPC, 12.79, 3, 81.17, 4, MakeRandomInt(8,14))
  291. MovementLoopAddLocation(NPC, 11.51, 3, 83.06, 4, 0)
  292. MovementLoopAddLocation(NPC, 2.35, 3, 86.32, 4, 0)
  293. MovementLoopAddLocation(NPC, -4.88, 3, 90.4, 4, 0)
  294. MovementLoopAddLocation(NPC, -6.95, 3, 92.88, 4, 0)
  295. MovementLoopAddLocation(NPC, -4.65, 3, 98.85, 4, 0)
  296. MovementLoopAddLocation(NPC, 0.37, 3, 109.8, 4, 0)
  297. MovementLoopAddLocation(NPC, -0.24, 3, 112.11, 4, 0)
  298. MovementLoopAddLocation(NPC, -9.48, 3, 116.75, 4, MakeRandomInt(8,14))
  299. MovementLoopAddLocation(NPC, -2.57, 3, 113.71, 4, 0)
  300. MovementLoopAddLocation(NPC, 0.35, 3, 110.97, 4, 0)
  301. MovementLoopAddLocation(NPC, -1.94, 3, 102.93, 4, 0)
  302. MovementLoopAddLocation(NPC, -6.69, 3, 101.42, 4, 0)
  303. MovementLoopAddLocation(NPC, -13.79, 3, 104.47, 4, 0)
  304. MovementLoopAddLocation(NPC, -19.36, 3, 97.14, 4, 0)
  305. MovementLoopAddLocation(NPC, -19.36, 3, 97.14, 4, MakeRandomInt(8,14))
  306. MovementLoopAddLocation(NPC, -18.56, 3, 102.99, 4, 0)
  307. MovementLoopAddLocation(NPC, -26.17, 2.75, 107.21, 4, 0)
  308. MovementLoopAddLocation(NPC, -33.16, 3.03, 112.12, 4, 0)
  309. MovementLoopAddLocation(NPC, -38.34, 2.85, 118.87, 4, 0)
  310. end
  311. end
  312. function waypoints2(NPC)
  313. if GetSpawnLocationID(NPC) ==420362 then
  314. MovementLoopAddLocation(NPC, 31.95, 3, 55.2, 6, 2)
  315. MovementLoopAddLocation(NPC, 39.86, 3, 50.85, 6, 0)
  316. MovementLoopAddLocation(NPC, 44.76, 3, 52.29, 6, 0)
  317. MovementLoopAddLocation(NPC, 50.85, 3, 60.83, 6, 0)
  318. MovementLoopAddLocation(NPC, 54.89, 3, 64.29, 6, 0)
  319. MovementLoopAddLocation(NPC, 63.8, 2.77, 67.88, 6, 0)
  320. MovementLoopAddLocation(NPC, 70.13, 1.63, 70.44, 6, 0)
  321. MovementLoopAddLocation(NPC, 72.76, 0.37, 74.76, 4, 0)
  322. MovementLoopAddLocation(NPC, 75.94, -2.87, 84.52, 4, 0)
  323. MovementLoopAddLocation(NPC, 81.62, -4.57, 92.12, 4, 0)
  324. MovementLoopAddLocation(NPC, 81.83, -4.57, 101.89, 4, 0)
  325. MovementLoopAddLocation(NPC, 76.4, -4.57, 109.38, 4, 0)
  326. MovementLoopAddLocation(NPC, 74.74, -4.57, 119.51, 4, 0)
  327. MovementLoopAddLocation(NPC, 79.26, -4.57, 129.48, 4, 0)
  328. MovementLoopAddLocation(NPC, 81.52, -4.57, 129.65, 4, 0)
  329. MovementLoopAddLocation(NPC, 80.34, -4.57, 127.54, 4, 30)
  330. MovementLoopAddLocation(NPC, 76.3, -4.57, 119.97, 1, 0)
  331. MovementLoopAddLocation(NPC, 75.12, -4.57, 112.32, 1, 0)
  332. MovementLoopAddLocation(NPC, 75.38, -4.57, 108.35, 1, 10)
  333. MovementLoopAddLocation(NPC, 79.18, -4.57, 103.91, 1, 0)
  334. MovementLoopAddLocation(NPC, 80.15, -4.57, 100.38, 1, 0)
  335. MovementLoopAddLocation(NPC, 77.45, -4.56, 94.18, 1, 0)
  336. MovementLoopAddLocation(NPC, 73.76, -3.52, 87.56, 1, 0)
  337. MovementLoopAddLocation(NPC, 73.33, -3.11, 86.74, 1, 5)
  338. MovementLoopAddLocation(NPC, 71.66, -0.27, 77.96, 1, 0)
  339. MovementLoopAddLocation(NPC, 71.52, 0.81, 73.98, 1, 0)
  340. MovementLoopAddLocation(NPC, 70.47, 1.33, 72.3, 1, 0)
  341. MovementLoopAddLocation(NPC, 64.81, 2.71, 69.86, 1, 0)
  342. MovementLoopAddLocation(NPC, 63.46, 3, 61.49, 1, 10)
  343. MovementLoopAddLocation(NPC, 59.5, 3, 60.81, 1, 0)
  344. MovementLoopAddLocation(NPC, 53, 3, 66.82, 1, 0)
  345. MovementLoopAddLocation(NPC, 47.39, 3, 72.82, 1, 0)
  346. MovementLoopAddLocation(NPC, 38.52, 3, 76.35, 1, 0)
  347. MovementLoopAddLocation(NPC, 34.5, 3, 68.86, 1, 0)
  348. MovementLoopAddLocation(NPC, 36.18, 3, 64.02, 1, 0)
  349. MovementLoopAddLocation(NPC, 36.18, 3, 64.02, 1, 4)
  350. elseif GetSpawnLocationID(NPC) ==420349 then
  351. MovementLoopAddLocation(NPC, 30.93, 3, 69.23, 6, 0)
  352. MovementLoopAddLocation(NPC, 28.76, 3, 61.79, 6, 0)
  353. MovementLoopAddLocation(NPC, 24.7, 3, 61.78, 6, 0)
  354. MovementLoopAddLocation(NPC, 21.63, 2.93, 66.95, 6, 0)
  355. MovementLoopAddLocation(NPC, 17.96, 3.01, 72.13, 6, 0)
  356. MovementLoopAddLocation(NPC, 5.76, 3, 67.83, 6, 0)
  357. MovementLoopAddLocation(NPC, -2.09, 3, 61.88, 6, 0)
  358. MovementLoopAddLocation(NPC, -1.3, 3, 57.67, 6, 0)
  359. MovementLoopAddLocation(NPC, -5.37, 3, 56.58, 6, 0)
  360. MovementLoopAddLocation(NPC, -6.35, 3, 58.17, 6, 0)
  361. MovementLoopAddLocation(NPC, -6.35, 3, 58.17, 6, 10)
  362. MovementLoopAddLocation(NPC, -0.77, 3.00, 57.48, 1, 0)
  363. MovementLoopAddLocation(NPC, 4.15, 3.00, 52.91, 6, 999)
  364. elseif GetSpawnLocationID(NPC) ==420349 then
  365. MovementLoopAddLocation(NPC, -22.81, 3, 83.91, 6, 0)
  366. MovementLoopAddLocation(NPC, -12.18, 3, 79.22, 6, 0)
  367. MovementLoopAddLocation(NPC, -6.65, 3, 89.24, 6, 0)
  368. MovementLoopAddLocation(NPC, -4.77, 3, 99.87, 6, 0)
  369. MovementLoopAddLocation(NPC, -12.57, 3, 104.86, 6, 0)
  370. MovementLoopAddLocation(NPC, -17.18, 2.97, 105.37, 6, 0)
  371. MovementLoopAddLocation(NPC, -32.7, 3, 112.34, 6, 0)
  372. MovementLoopAddLocation(NPC, -35.23, 2.84, 114.18, 6, 0)
  373. MovementLoopAddLocation(NPC, -60.02, 2.84, 128.2, 6, 0)
  374. MovementLoopAddLocation(NPC, -47.68, 2.84, 120.5, 6, 0)
  375. MovementLoopAddLocation(NPC, -39.01, 2.83, 116.71, 6, 0)
  376. MovementLoopAddLocation(NPC, -34.13, 2.84, 121.18, 6, 0)
  377. MovementLoopAddLocation(NPC, -36.74, 2.83, 119.12, 6, 0)
  378. MovementLoopAddLocation(NPC, -44.02, 2.83, 105.2, 6, 0)
  379. MovementLoopAddLocation(NPC, -44.02, 2.83, 105.2, 6, 1)
  380. MovementLoopAddLocation(NPC, -44.02, 2.83, 105.2, 6, 1)
  381. MovementLoopAddLocation(NPC, -44.02, 2.83, 105.2, 6, 12)
  382. MovementLoopAddLocation(NPC, -39.18, 2.81, 112.46, 4, 0)
  383. MovementLoopAddLocation(NPC, -39.18, 2.81, 112.46, 4, 0)
  384. MovementLoopAddLocation(NPC, -33.88, 2.93, 112.57, 4, 0)
  385. MovementLoopAddLocation(NPC, -23.41, 2.81, 103.94, 4, 0)
  386. MovementLoopAddLocation(NPC, -18.63, 3, 101.25, 4, 0)
  387. MovementLoopAddLocation(NPC, -17.31, 3, 99.16, 4, 900)
  388. end
  389. end