arat.lua 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/arat.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.28 02:11:12
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC,MakeRandomInt(3000,6000),"waypoints")
  10. AddTimer(NPC,MakeRandomInt(3000,6000),"CatCheck")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function CatCheck(NPC,Spawn)
  16. if IsAlive(NPC) then
  17. AddTimer(NPC,MakeRandomInt(2000,4000),"CatCheck")
  18. local zone = GetZone(NPC)
  19. local Cat = GetSpawnByLocationID(zone,402996)
  20. if not IsInCombat(NPC) and Cat~= nil and not IsInCombat(Cat)then
  21. local Distance = GetDistance(NPC,Cat,1)
  22. if Distance <=5 then
  23. Attack(Cat,NPC)
  24. Attack(NPC,Cat)
  25. local x = GetX(Cat)
  26. local y = GetY(Cat)
  27. local z = GetZ(Cat)
  28. SetFollowTarget(Cat,NPC)
  29. SetFollowTarget(NPC,Cat)
  30. ToggleFollow(Cat)
  31. ToggleFollow(NPC)
  32. SetTarget(Cat,NPC)
  33. FaceTarget(Cat,NPC)
  34. FaceTarget(NPC,Cat)
  35. PlayFlavor(NPC,"","","attack",0,0)
  36. AddTimer(NPC,MakeRandomInt(2500,4500),"kill",1,Spawn)
  37. end
  38. end
  39. end
  40. end
  41. function kill (NPC,Spawn)
  42. ApplySpellVisual(NPC,51)
  43. local zone = GetZone(NPC)
  44. local Cat = GetSpawnByLocationID(zone,402996)
  45. PlayFlavor(Cat,"","","attack",0,0)
  46. KillSpawn(NPC)
  47. AddTimer(Cat,2500,"scoop")
  48. AddTimer(NPC,3000,"Despawning")
  49. end
  50. function Despawning(NPC,Spawn)
  51. Despawn(NPC)
  52. end
  53. function waypoints(NPC)
  54. if GetSpawnLocationID(NPC) == 402872 then
  55. MovementLoopAddLocation(NPC, -25.69, 2, -4.01, 4, 0)
  56. MovementLoopAddLocation(NPC, -26.28, 2, -2.81, 4, MakeRandomInt(8,16))
  57. MovementLoopAddLocation(NPC, -25.13, 2, -5.04, 4, 0)
  58. MovementLoopAddLocation(NPC, -23.58, 2, -7.44, 4, 0)
  59. MovementLoopAddLocation(NPC, -18.5, 2, -6.74, 4, 0)
  60. MovementLoopAddLocation(NPC, -9.28, 2.25, -2.86, 4, 0)
  61. MovementLoopAddLocation(NPC, -3.85, 3, -2.24, 4, 0)
  62. MovementLoopAddLocation(NPC, -0.59, 3.3, -2.33, 4, 0)
  63. MovementLoopAddLocation(NPC, 1.6, 3.5, -5.91, 4, 0)
  64. MovementLoopAddLocation(NPC, 5.47, 3.5, -7.62, 4, MakeRandomInt(8,16))
  65. MovementLoopAddLocation(NPC, -0.8, 3.5, -3.7, 4, 0)
  66. MovementLoopAddLocation(NPC, -0.93, 3, 0.5, 4, 0)
  67. MovementLoopAddLocation(NPC, 2.17, 2.75, 3.58, 4, 0)
  68. MovementLoopAddLocation(NPC, 8.18, 2.75, 8.65, 4, 0)
  69. MovementLoopAddLocation(NPC, 9.65, 2.75, 10.63, 4, 0)
  70. MovementLoopAddLocation(NPC, 12.53, 2.75, 12.06, 4, 0)
  71. MovementLoopAddLocation(NPC, 14.54, 2.75, 13.5, 4, 0)
  72. MovementLoopAddLocation(NPC, 16.15, 2.75, 14.3, 4, 0)
  73. MovementLoopAddLocation(NPC, 18.62, 2.75, 14.22, 4, 0)
  74. MovementLoopAddLocation(NPC, 24.8, 2, 17.56, 4, 0)
  75. MovementLoopAddLocation(NPC, 28.59, 2, 19.06, 4, 0)
  76. MovementLoopAddLocation(NPC, 31.43, 2.19, 19.65, 4, 0)
  77. MovementLoopAddLocation(NPC, 32.09, 2, 19.88, 4, MakeRandomInt(8,16))
  78. MovementLoopAddLocation(NPC, 32.56, 2, 18.07, 4, 0)
  79. MovementLoopAddLocation(NPC, 34.7, 2, 14.49, 4, 0)
  80. MovementLoopAddLocation(NPC, 34.98, 2.73, 8.01, 4, 0)
  81. MovementLoopAddLocation(NPC, 32.44, 3.5, -0.11, 4, 0)
  82. MovementLoopAddLocation(NPC, 33.63, 3.5, -0.37, 4, MakeRandomInt(8,16))
  83. MovementLoopAddLocation(NPC, 32.14, 3.5, -1.36, 4, 0)
  84. MovementLoopAddLocation(NPC, 31.54, 3.54, -1.77, 4, 0)
  85. MovementLoopAddLocation(NPC, 27.66, 3.5, -1.36, 4, 0)
  86. MovementLoopAddLocation(NPC, 24.84, 3.5, -1.74, 4, 0)
  87. MovementLoopAddLocation(NPC, 19.16, 3.5, -3.61, 4, 0)
  88. MovementLoopAddLocation(NPC, 18.05, 3.5, -7.38, 4, 0)
  89. MovementLoopAddLocation(NPC, 14.1, 3.5, -10.08, 4, 0)
  90. MovementLoopAddLocation(NPC, 9.23, 3.5, -11.58, 4, 0)
  91. MovementLoopAddLocation(NPC, 5.38, 3.5, -12.38, 4, 0)
  92. MovementLoopAddLocation(NPC, -1.82, 3.5, -15.79, 4, MakeRandomInt(8,16))
  93. MovementLoopAddLocation(NPC, -1.72, 3.5, -18.77, 4, 0)
  94. MovementLoopAddLocation(NPC, -7.04, 3.25, -18.53, 4, 0)
  95. MovementLoopAddLocation(NPC, -8.52, 3, -18.53, 4, 0)
  96. MovementLoopAddLocation(NPC, -12.66, 3, -17.13, 4, MakeRandomInt(8,16))
  97. MovementLoopAddLocation(NPC, -11.97, 3, -18.45, 4, 0)
  98. MovementLoopAddLocation(NPC, -12.13, 3, -19.93, 4, 0)
  99. MovementLoopAddLocation(NPC, -15.16, 3.25, -25.85, 4, 0)
  100. MovementLoopAddLocation(NPC, -17.21, 3.25, -27.24, 4, 0)
  101. MovementLoopAddLocation(NPC, -20.47, 3.25, -31.18, 4, 0)
  102. MovementLoopAddLocation(NPC, -19.89, 3.58, -32.53, 4, 0)
  103. MovementLoopAddLocation(NPC, -19.28, 3.76, -33.44, 4, 0)
  104. MovementLoopAddLocation(NPC, -18.73, 4, -35.16, 4, 0)
  105. MovementLoopAddLocation(NPC, -20.38, 4, -38.86, 4, 0)
  106. MovementLoopAddLocation(NPC, -19.79, 4, -40.42, 4, 0)
  107. MovementLoopAddLocation(NPC, -16.27, 4, -41.12, 4, MakeRandomInt(8,16))
  108. MovementLoopAddLocation(NPC, -18.89, 4, -40.56, 4, 0)
  109. MovementLoopAddLocation(NPC, -20.06, 4, -40.31, 4, 0)
  110. MovementLoopAddLocation(NPC, -19.76, 4, -38.3, 4, 0)
  111. MovementLoopAddLocation(NPC, -19.04, 3.75, -33.3, 4, 0)
  112. MovementLoopAddLocation(NPC, -20.34, 3.45, -32.06, 4, 0)
  113. MovementLoopAddLocation(NPC, -21.3, 3, -29.21, 4, 0)
  114. MovementLoopAddLocation(NPC, -22.69, 2.75, -26.72, 4, 0)
  115. MovementLoopAddLocation(NPC, -20.99, 2.5, -15.38, 4, 0)
  116. elseif GetSpawnLocationID(NPC) == 402881 then
  117. MovementLoopAddLocation(NPC, -7.41, -0.62, 13.03, 4, 0)
  118. MovementLoopAddLocation(NPC, -3.56, 1.39, 14.13, 4, 0)
  119. MovementLoopAddLocation(NPC, -0.81, 1.97, 14.24, 4, 0)
  120. MovementLoopAddLocation(NPC, 0.26, 2.03, 12.72, 4, 0)
  121. MovementLoopAddLocation(NPC, 1.09, 2.01, 11.49, 4, 0)
  122. MovementLoopAddLocation(NPC, 5.55, 2, 13.7, 4, 0)
  123. MovementLoopAddLocation(NPC, 7.94, 2, 15.9, 4, 0)
  124. MovementLoopAddLocation(NPC, 10.23, 2, 18.74, 4, 0)
  125. MovementLoopAddLocation(NPC, 13.14, 2, 21.74, 4, MakeRandomInt(8,16))
  126. MovementLoopAddLocation(NPC, 13.29, 2, 20.26, 4, 0)
  127. MovementLoopAddLocation(NPC, 14.25, 2.25, 16.78, 4, 0)
  128. MovementLoopAddLocation(NPC, 7.53, 2.25, 12.67, 4, 0)
  129. MovementLoopAddLocation(NPC, 0.31, 2.02, 11.48, 4, 0)
  130. MovementLoopAddLocation(NPC, -3.82, 2.03, 9.96, 4, 0)
  131. MovementLoopAddLocation(NPC, -4.98, 2.03, 9.73, 4, 0)
  132. MovementLoopAddLocation(NPC, -6.95, 2.04, 8.96, 4, 0)
  133. MovementLoopAddLocation(NPC, -7.58, 2.04, 8.72, 4, MakeRandomInt(8,16))
  134. MovementLoopAddLocation(NPC, -8.8, 2.02, 5.74, 4, 0)
  135. MovementLoopAddLocation(NPC, -9.99, 2.01, 3.81, 4, 0)
  136. MovementLoopAddLocation(NPC, -11.52, 2, 1.88, 4, 0)
  137. MovementLoopAddLocation(NPC, -15.18, 2, -0.29, 4, 0)
  138. MovementLoopAddLocation(NPC, -18.83, 2, -1.06, 4, MakeRandomInt(8,16))
  139. MovementLoopAddLocation(NPC, -17.13, 2, -0.26, 4, 0)
  140. MovementLoopAddLocation(NPC, -11.03, 2, -0.81, 4, 0)
  141. MovementLoopAddLocation(NPC, -8.87, 2.02, 5.64, 4, 0)
  142. MovementLoopAddLocation(NPC, -7.91, 2.04, 8.58, 4, 0)
  143. MovementLoopAddLocation(NPC, -6.59, 2.03, 9.1, 4, 0)
  144. MovementLoopAddLocation(NPC, -3.03, 2.03, 10.48, 4, 0)
  145. MovementLoopAddLocation(NPC, -1.58, 2.03, 10.81, 4, 0)
  146. MovementLoopAddLocation(NPC, 0.42, 2.01, 13.5, 4, 0)
  147. MovementLoopAddLocation(NPC, -0.58, 1.91, 15.49, 4, 0)
  148. MovementLoopAddLocation(NPC, -5.57, 0.33, 13.46, 4, 0)
  149. MovementLoopAddLocation(NPC, -9.29, -1.69, 12.06, 4, 0)
  150. MovementLoopAddLocation(NPC, -11.14, -2.89, 10.41, 4, 0)
  151. MovementLoopAddLocation(NPC, -13.54, -4.48, 8.27, 4, 0)
  152. MovementLoopAddLocation(NPC, -15.59, -5, 7.97, 4, 0)
  153. MovementLoopAddLocation(NPC, -17.55, -5.01, 11.51, 4, 0)
  154. MovementLoopAddLocation(NPC, -21.29, -5, 13.25, 4, 0)
  155. MovementLoopAddLocation(NPC, -23.4, -5, 12.93, 4, 0)
  156. MovementLoopAddLocation(NPC, -24.16, -5, 14.44, 4, MakeRandomInt(8,16))
  157. MovementLoopAddLocation(NPC, -22.79, -5, 16.99, 4, 0)
  158. MovementLoopAddLocation(NPC, -19.48, -5, 17.28, 4, 0)
  159. MovementLoopAddLocation(NPC, -14.61, -5, 12.97, 4, 0)
  160. MovementLoopAddLocation(NPC, -12.89, -5, 12.66, 4, 0)
  161. MovementLoopAddLocation(NPC, -10.58, -5, 14.7, 4, 0)
  162. MovementLoopAddLocation(NPC, -5.14, -5, 16.86, 4, 0)
  163. MovementLoopAddLocation(NPC, -2.72, -5.29, 21.3, 4, 0)
  164. MovementLoopAddLocation(NPC, -0.08, -6, 25.79, 4, 0)
  165. MovementLoopAddLocation(NPC, 1.26, -6, 28.49, 4, 0)
  166. MovementLoopAddLocation(NPC, 1.76, -6, 32.41, 4, 0)
  167. MovementLoopAddLocation(NPC, -0.48, -6, 36.8, 4, 0)
  168. MovementLoopAddLocation(NPC, -3.53, -6, 36.71, 4, 0)
  169. MovementLoopAddLocation(NPC, -3.53, -6, 36.71, 4, 0)
  170. MovementLoopAddLocation(NPC, -4.53, -6, 35.22, 4, 0)
  171. MovementLoopAddLocation(NPC, -5.49, -6, 32.42, 4, 0)
  172. MovementLoopAddLocation(NPC, -3.19, -6, 31.36, 4, MakeRandomInt(8,16))
  173. MovementLoopAddLocation(NPC, -4.18, -6, 32.04, 4, 0)
  174. MovementLoopAddLocation(NPC, -5.43, -6, 34.08, 4, 0)
  175. MovementLoopAddLocation(NPC, -2.54, -6, 35.54, 4, 0)
  176. MovementLoopAddLocation(NPC, -0.86, -6, 33.74, 4, 0)
  177. MovementLoopAddLocation(NPC, 1.78, -6, 30.81, 4, 0)
  178. MovementLoopAddLocation(NPC, 5.82, -5, 23.62, 4, 0)
  179. MovementLoopAddLocation(NPC, 4.42, -5, 21, 4, 0)
  180. MovementLoopAddLocation(NPC, 4.42, -5, 21, 4, 0)
  181. MovementLoopAddLocation(NPC, 1.87, -5, 19.47, 4, 0)
  182. MovementLoopAddLocation(NPC, -2.26, -5, 18.32, 4, 0)
  183. MovementLoopAddLocation(NPC, -6.61, -5, 17.42, 4, 0)
  184. MovementLoopAddLocation(NPC, -11.49, -5, 15.1, 4, 0)
  185. MovementLoopAddLocation(NPC, -15.13, -5.01, 11.82, 4, 0)
  186. MovementLoopAddLocation(NPC, -16.04, -5.01, 9.14, 4, 0)
  187. MovementLoopAddLocation(NPC, -14.65, -4.98, 6.78, 4, 0)
  188. MovementLoopAddLocation(NPC, -12.04, -3.53, 9.3, 4, 0)
  189. MovementLoopAddLocation(NPC, -9.31, -1.64, 12.31, 4, 0)
  190. elseif GetSpawnLocationID(NPC) == 402904 then
  191. MovementLoopAddLocation(NPC, 27.52, 5.25, -13.3, 4, 0)
  192. MovementLoopAddLocation(NPC, 31.61, 5.25, -19.41, 4, MakeRandomInt(8,16))
  193. MovementLoopAddLocation(NPC, 29.66, 5.25, -15.7, 4, 0)
  194. MovementLoopAddLocation(NPC, 29.79, 5.25, -14.52, 4, 0)
  195. MovementLoopAddLocation(NPC, 31.84, 5.25, -14.15, 4, 0)
  196. MovementLoopAddLocation(NPC, 34.73, 5.25, -15.65, 4, 0)
  197. MovementLoopAddLocation(NPC, 40.91, 5.25, -19.78, 4, 0)
  198. MovementLoopAddLocation(NPC, 41.22, 5.25, -21.76, 4, 0)
  199. MovementLoopAddLocation(NPC, 40.33, 5.25, -24.46, 4, MakeRandomInt(8,16))
  200. MovementLoopAddLocation(NPC, 42.19, 5.25, -23.02, 4, 0)
  201. MovementLoopAddLocation(NPC, 42.4, 5.25, -21.17, 4, 0)
  202. MovementLoopAddLocation(NPC, 43.61, 5.25, -19.87, 4, 0)
  203. MovementLoopAddLocation(NPC, 45.41, 5.25, -19.91, 4, 0)
  204. MovementLoopAddLocation(NPC, 46.96, 5.25, -20.79, 4, 0)
  205. MovementLoopAddLocation(NPC, 48.86, 5.12, -23.18, 4, 0)
  206. MovementLoopAddLocation(NPC, 52.82, 5, -26.39, 4, 0)
  207. MovementLoopAddLocation(NPC, 55.44, 5, -27.45, 4, 0)
  208. MovementLoopAddLocation(NPC, 57.94, 5, -27.89, 4, 0)
  209. MovementLoopAddLocation(NPC, 60.45, 5, -27.32, 4, MakeRandomInt(8,16))
  210. MovementLoopAddLocation(NPC, 62.86, 5, -27.74, 4, 0)
  211. MovementLoopAddLocation(NPC, 63.6, 5, -26.44, 4, 0)
  212. MovementLoopAddLocation(NPC, 64.01, 5, -23.14, 4, 0)
  213. MovementLoopAddLocation(NPC, 63.85, 5, -18.76, 4, 0)
  214. MovementLoopAddLocation(NPC, 63.37, 5, -14.91, 4, 0)
  215. MovementLoopAddLocation(NPC, 60.45, 4.75, -10.55, 4, 0)
  216. MovementLoopAddLocation(NPC, 58.84, 4.29, -7.75, 4, 0)
  217. MovementLoopAddLocation(NPC, 57.53, 4, -5.45, 4, 0)
  218. MovementLoopAddLocation(NPC, 58.15, 4, -1.86, 4, MakeRandomInt(8,16))
  219. MovementLoopAddLocation(NPC, 57.37, 4, -0.8, 4, 0)
  220. MovementLoopAddLocation(NPC, 56.78, 3.98, 0.92, 4, 0)
  221. MovementLoopAddLocation(NPC, 55.01, 3.66, 2.04, 4, 0)
  222. MovementLoopAddLocation(NPC, 52.6, 3.25, 4.66, 4, 0)
  223. MovementLoopAddLocation(NPC, 47.22, 2.75, 8.99, 4, 0)
  224. MovementLoopAddLocation(NPC, 42.5, 2.75, 7.02, 4, 0)
  225. MovementLoopAddLocation(NPC, 39.61, 2.75, 5.61, 4, 0)
  226. MovementLoopAddLocation(NPC, 35.6, 2.75, 7.12, 4, 0)
  227. MovementLoopAddLocation(NPC, 31.22, 2.75, 9.87, 4, 0)
  228. MovementLoopAddLocation(NPC, 26.61, 2.75, 10.55, 4, 0)
  229. MovementLoopAddLocation(NPC, 22.79, 2.75, 12.47, 4, 0)
  230. MovementLoopAddLocation(NPC, 17.12, 3.5, 9.38, 4, 0)
  231. MovementLoopAddLocation(NPC, 16, 3.5, 5.79, 4, 0)
  232. MovementLoopAddLocation(NPC, 13.65, 3.5, -0.37, 4, MakeRandomInt(8,16))
  233. MovementLoopAddLocation(NPC, 12.52, 3.5, -1.34, 4, 0)
  234. MovementLoopAddLocation(NPC, 12.68, 3.5, -2.86, 4, 0)
  235. MovementLoopAddLocation(NPC, 13.18, 3.5, -10.14, 4, 0)
  236. MovementLoopAddLocation(NPC, 12.71, 4, -15.12, 4, 0)
  237. MovementLoopAddLocation(NPC, 13.34, 4.5, -18.38, 4, 0)
  238. MovementLoopAddLocation(NPC, 14.5, 4.75, -21.21, 4, 0)
  239. MovementLoopAddLocation(NPC, 15.93, 5, -27.42, 4, 0)
  240. MovementLoopAddLocation(NPC, 16.6, 5, -31.99, 4, 0)
  241. MovementLoopAddLocation(NPC, 19.55, 5, -38.53, 4, 0)
  242. MovementLoopAddLocation(NPC, 22.28, 5.25, -42.47, 4, MakeRandomInt(8,16))
  243. MovementLoopAddLocation(NPC, 22.31, 5.25, -40.68, 4, 0)
  244. MovementLoopAddLocation(NPC, 23.51, 5.25, -38.49, 4, 0)
  245. MovementLoopAddLocation(NPC, 26.04, 5.25, -33.64, 4, 0)
  246. MovementLoopAddLocation(NPC, 24.22, 5.25, -28.13, 4, 0)
  247. MovementLoopAddLocation(NPC, 23.02, 5.25, -26.12, 4, MakeRandomInt(8,16))
  248. MovementLoopAddLocation(NPC, 22.68, 5.25, -23.52, 4, 0)
  249. MovementLoopAddLocation(NPC, 22.68, 5.25, -23.52, 4, 0)
  250. MovementLoopAddLocation(NPC, 23.02, 5.25, -26.12, 4, 0)
  251. MovementLoopAddLocation(NPC, 24.22, 5.25, -28.13, 4, MakeRandomInt(8,16))
  252. MovementLoopAddLocation(NPC, 26.04, 5.25, -33.64, 4, 0)
  253. MovementLoopAddLocation(NPC, 23.51, 5.25, -38.49, 4, 0)
  254. MovementLoopAddLocation(NPC, 22.31, 5.25, -40.68, 4, 0)
  255. MovementLoopAddLocation(NPC, 22.28, 5.25, -42.47, 4, MakeRandomInt(8,16))
  256. MovementLoopAddLocation(NPC, 19.55, 5, -38.53, 4, 0)
  257. MovementLoopAddLocation(NPC, 16.6, 5, -31.99, 4, 0)
  258. MovementLoopAddLocation(NPC, 15.93, 5, -27.42, 4, 0)
  259. MovementLoopAddLocation(NPC, 14.5, 4.75, -21.21, 4, 0)
  260. MovementLoopAddLocation(NPC, 13.34, 4.5, -18.38, 4, 0)
  261. MovementLoopAddLocation(NPC, 12.71, 4, -15.12, 4, 0)
  262. MovementLoopAddLocation(NPC, 13.18, 3.5, -10.14, 4, 0)
  263. MovementLoopAddLocation(NPC, 12.68, 3.5, -2.86, 4, 0)
  264. MovementLoopAddLocation(NPC, 12.52, 3.5, -1.34, 4, 0)
  265. MovementLoopAddLocation(NPC, 13.65, 3.5, -0.37, 4, MakeRandomInt(8,16))
  266. MovementLoopAddLocation(NPC, 16, 3.5, 5.79, 4, 0)
  267. MovementLoopAddLocation(NPC, 17.12, 3.5, 9.38, 4, 0)
  268. MovementLoopAddLocation(NPC, 22.79, 2.75, 12.47, 4, 0)
  269. MovementLoopAddLocation(NPC, 26.61, 2.75, 10.55, 4, 0)
  270. MovementLoopAddLocation(NPC, 31.22, 2.75, 9.87, 4, 0)
  271. MovementLoopAddLocation(NPC, 35.6, 2.75, 7.12, 4, 0)
  272. MovementLoopAddLocation(NPC, 39.61, 2.75, 5.61, 4, 0)
  273. MovementLoopAddLocation(NPC, 42.5, 2.75, 7.02, 4, 0)
  274. MovementLoopAddLocation(NPC, 47.22, 2.75, 8.99, 4, 0)
  275. MovementLoopAddLocation(NPC, 52.6, 3.25, 4.66, 4, 0)
  276. MovementLoopAddLocation(NPC, 55.01, 3.66, 2.04, 4, 0)
  277. MovementLoopAddLocation(NPC, 56.78, 3.98, 0.92, 4, 0)
  278. MovementLoopAddLocation(NPC, 57.37, 4, -0.8, 4, 0)
  279. MovementLoopAddLocation(NPC, 58.15, 4, -1.86, 4, MakeRandomInt(8,16))
  280. MovementLoopAddLocation(NPC, 57.53, 4, -5.45, 4, 0)
  281. MovementLoopAddLocation(NPC, 58.84, 4.29, -7.75, 4, 0)
  282. MovementLoopAddLocation(NPC, 60.45, 4.75, -10.55, 4, 0)
  283. MovementLoopAddLocation(NPC, 63.37, 5, -14.91, 4, 0)
  284. MovementLoopAddLocation(NPC, 63.85, 5, -18.76, 4, 0)
  285. MovementLoopAddLocation(NPC, 64.01, 5, -23.14, 4, 0)
  286. MovementLoopAddLocation(NPC, 63.6, 5, -26.44, 4, 0)
  287. MovementLoopAddLocation(NPC, 62.86, 5, -27.74, 4, 0)
  288. MovementLoopAddLocation(NPC, 60.45, 5, -27.32, 4, MakeRandomInt(8,16))
  289. MovementLoopAddLocation(NPC, 57.94, 5, -27.89, 4, 0)
  290. MovementLoopAddLocation(NPC, 55.44, 5, -27.45, 4, 0)
  291. MovementLoopAddLocation(NPC, 52.82, 5, -26.39, 4, 0)
  292. MovementLoopAddLocation(NPC, 48.86, 5.12, -23.18, 4, 0)
  293. MovementLoopAddLocation(NPC, 46.96, 5.25, -20.79, 4, 0)
  294. MovementLoopAddLocation(NPC, 45.41, 5.25, -19.91, 4, 0)
  295. MovementLoopAddLocation(NPC, 43.61, 5.25, -19.87, 4, 0)
  296. MovementLoopAddLocation(NPC, 42.4, 5.25, -21.17, 4, 0)
  297. MovementLoopAddLocation(NPC, 42.19, 5.25, -23.02, 4, 0)
  298. MovementLoopAddLocation(NPC, 40.33, 5.25, -24.46, 4, MakeRandomInt(8,16))
  299. MovementLoopAddLocation(NPC, 41.22, 5.25, -21.76, 4, 0)
  300. MovementLoopAddLocation(NPC, 40.91, 5.25, -19.78, 4, 0)
  301. MovementLoopAddLocation(NPC, 34.73, 5.25, -15.65, 4, 0)
  302. MovementLoopAddLocation(NPC, 31.84, 5.25, -14.15, 4, 0)
  303. MovementLoopAddLocation(NPC, 29.79, 5.25, -14.52, 4, 0)
  304. MovementLoopAddLocation(NPC, 29.66, 5.25, -15.7, 4, 0)
  305. MovementLoopAddLocation(NPC, 31.61, 5.25, -19.41, 4, MakeRandomInt(8,16))
  306. MovementLoopAddLocation(NPC, 27.52, 5.25, -13.3, 4, 0)
  307. elseif GetSpawnLocationID(NPC) == 402914 then
  308. MovementLoopAddLocation(NPC, 41.87, 2.25, 12.16, 4, 0)
  309. MovementLoopAddLocation(NPC, 40.39, 2, 14.41, 4, 0)
  310. MovementLoopAddLocation(NPC, 40.76, 2, 17.09, 4, MakeRandomInt(8,16))
  311. MovementLoopAddLocation(NPC, 39.53, 2, 14.96, 4, 0)
  312. MovementLoopAddLocation(NPC, 40.19, 2, 13.32, 4, 0)
  313. MovementLoopAddLocation(NPC, 45.26, 2.48, 10.97, 4, 0)
  314. MovementLoopAddLocation(NPC, 48.44, 2.75, 8.76, 4, 0)
  315. MovementLoopAddLocation(NPC, 49.84, 3, 6.7, 4, 0)
  316. MovementLoopAddLocation(NPC, 54.17, 3.47, 5.8, 4, 0)
  317. MovementLoopAddLocation(NPC, 56.49, 3.75, 4.46, 4, 0)
  318. MovementLoopAddLocation(NPC, 59.8, 3.75, 1.95, 4, 0)
  319. MovementLoopAddLocation(NPC, 61.49, 4, -0.34, 4, 0)
  320. MovementLoopAddLocation(NPC, 61.93, 4, -1.14, 4, 0)
  321. MovementLoopAddLocation(NPC, 61.02, 4, -4.05, 4, MakeRandomInt(8,16))
  322. MovementLoopAddLocation(NPC, 61.19, 4, -5.62, 4, 0)
  323. MovementLoopAddLocation(NPC, 59.83, 4.25, -7.14, 4, 0)
  324. MovementLoopAddLocation(NPC, 56.37, 4.25, -7.18, 4, 0)
  325. MovementLoopAddLocation(NPC, 51.21, 4.25, -8.17, 4, 0)
  326. MovementLoopAddLocation(NPC, 48.95, 4.25, -9.49, 4, 0)
  327. MovementLoopAddLocation(NPC, 46.77, 3.75, -9.82, 4, 0)
  328. MovementLoopAddLocation(NPC, 45.9, 3.75, -9.5, 4, 0)
  329. MovementLoopAddLocation(NPC, 42.29, 3.75, -8.03, 4, 0)
  330. MovementLoopAddLocation(NPC, 41.36, 3.5, -5.14, 4, 0)
  331. MovementLoopAddLocation(NPC, 43.99, 3.5, -3.29, 4, MakeRandomInt(8,16))
  332. MovementLoopAddLocation(NPC, 41.5, 3.5, -3.25, 4, 0)
  333. MovementLoopAddLocation(NPC, 40.15, 3.5, -1.19, 4, 0)
  334. MovementLoopAddLocation(NPC, 39.23, 3.5, 2.15, 4, 0)
  335. MovementLoopAddLocation(NPC, 35.86, 3.25, 4.68, 4, 0)
  336. MovementLoopAddLocation(NPC, 33.9, 3, 6.49, 4, 0)
  337. MovementLoopAddLocation(NPC, 29.32, 3.5, 4.54, 4, 0)
  338. MovementLoopAddLocation(NPC, 25.19, 3.5, -0.95, 4, 0)
  339. MovementLoopAddLocation(NPC, 25.19, 3.5, -0.95, 4, 0)
  340. MovementLoopAddLocation(NPC, 21.35, 3.62, -3.56, 4, 0)
  341. MovementLoopAddLocation(NPC, 14.37, 3.5, -4.68, 4, 0)
  342. MovementLoopAddLocation(NPC, 9.88, 3.5, -7.86, 4, 0)
  343. MovementLoopAddLocation(NPC, 5.79, 3.5, -11.23, 4, 0)
  344. MovementLoopAddLocation(NPC, 3.51, 3.5, -14.44, 4, 0)
  345. MovementLoopAddLocation(NPC, 1.75, 3.5, -18.22, 4, 0)
  346. MovementLoopAddLocation(NPC, 0.62, 3.5, -20.15, 4, 0)
  347. MovementLoopAddLocation(NPC, -1.29, 3.5, -17.96, 4, 0)
  348. MovementLoopAddLocation(NPC, -1.63, 3.5, -17.03, 4, 0)
  349. MovementLoopAddLocation(NPC, -1.53, 3.5, -15.82, 4, 0)
  350. MovementLoopAddLocation(NPC, -0.84, 3.5, -13.74, 4, MakeRandomInt(8,16))
  351. MovementLoopAddLocation(NPC, 1.16, 3.5, -12.4, 4, 0)
  352. MovementLoopAddLocation(NPC, 3.17, 3.5, -12.37, 4, 0)
  353. MovementLoopAddLocation(NPC, 4.21, 3.5, -14.89, 4, 0)
  354. MovementLoopAddLocation(NPC, 4.21, 3.94, -19.6, 4, 0)
  355. MovementLoopAddLocation(NPC, 1.78, 4, -22.92, 4, 0)
  356. MovementLoopAddLocation(NPC, 0.72, 4, -24.87, 4, 0)
  357. MovementLoopAddLocation(NPC, -2.81, 4, -28.53, 4, 0)
  358. MovementLoopAddLocation(NPC, -4.26, 3.75, -33.4, 4, 0)
  359. MovementLoopAddLocation(NPC, -4.69, 3.75, -35.5, 4, 0)
  360. MovementLoopAddLocation(NPC, -5.86, 3.82, -38.58, 4, 0)
  361. MovementLoopAddLocation(NPC, -6.21, 4, -41.03, 4, 0)
  362. MovementLoopAddLocation(NPC, -6.15, 4, -44.25, 4, 0)
  363. MovementLoopAddLocation(NPC, -8.86, 4, -49, 4, 0)
  364. MovementLoopAddLocation(NPC, -12.89, 4.35, -56.23, 4, 0)
  365. MovementLoopAddLocation(NPC, -16.55, 4.18, -63.29, 4, 0)
  366. MovementLoopAddLocation(NPC, -22.07, 4.18, -61.86, 4, MakeRandomInt(8,16))
  367. MovementLoopAddLocation(NPC, -20.24, 4.18, -61.94, 4, 0)
  368. MovementLoopAddLocation(NPC, -13.37, 4.18, -65.29, 4, 0)
  369. MovementLoopAddLocation(NPC, -9.04, 4.18, -68.32, 4, 0)
  370. MovementLoopAddLocation(NPC, -6.44, 4.18, -70.71, 4, MakeRandomInt(8,16))
  371. MovementLoopAddLocation(NPC, -11.68, 4.18, -66.85, 4, 0)
  372. MovementLoopAddLocation(NPC, -14.87, 4.18, -65.11, 4, 0)
  373. MovementLoopAddLocation(NPC, -19.16, 4.18, -67.27, 4, 0)
  374. MovementLoopAddLocation(NPC, -21.02, 4.18, -70.34, 4, 0)
  375. MovementLoopAddLocation(NPC, -22.16, 4.18, -73.77, 4, 0)
  376. MovementLoopAddLocation(NPC, -28.92, 4.17, -81.67, 4, MakeRandomInt(8,16))
  377. MovementLoopAddLocation(NPC, -28.92, 4.17, -81.67, 4, 0)
  378. MovementLoopAddLocation(NPC, -24.23, 4.18, -76.5, 4, 0)
  379. MovementLoopAddLocation(NPC, -20.26, 4.18, -72.13, 4, 0)
  380. MovementLoopAddLocation(NPC, -14.33, 4.18, -59.88, 4, 0)
  381. MovementLoopAddLocation(NPC, -10.02, 4.14, -52.5, 4, 0)
  382. MovementLoopAddLocation(NPC, -7.9, 4, -48.62, 4, 0)
  383. MovementLoopAddLocation(NPC, -2.37, 4.75, -45.25, 4, 0)
  384. MovementLoopAddLocation(NPC, 1.31, 5, -43.12, 4, 0)
  385. MovementLoopAddLocation(NPC, 2.74, 5, -41.35, 4, 0)
  386. MovementLoopAddLocation(NPC, 3.5, 5, -38.83, 4, MakeRandomInt(8,16))
  387. MovementLoopAddLocation(NPC, 3.95, 5, -42.98, 4, 0)
  388. MovementLoopAddLocation(NPC, 3.85, 4.75, -47.63, 4, 0)
  389. MovementLoopAddLocation(NPC, 3.63, 4.75, -49.72, 4, 0)
  390. MovementLoopAddLocation(NPC, 4.39, 4.99, -52.12, 4, 2)
  391. MovementLoopAddLocation(NPC, 3.63, 4.75, -49.72, 4, 0)
  392. MovementLoopAddLocation(NPC, 3.85, 4.75, -47.63, 4, 0)
  393. MovementLoopAddLocation(NPC, 3.95, 5, -42.98, 4, 0)
  394. MovementLoopAddLocation(NPC, 3.5, 5, -38.83, 4, MakeRandomInt(8,16))
  395. MovementLoopAddLocation(NPC, 2.74, 5, -41.35, 4, 0)
  396. MovementLoopAddLocation(NPC, 1.31, 5, -43.12, 4, 0)
  397. MovementLoopAddLocation(NPC, -2.37, 4.75, -45.25, 4, 0)
  398. MovementLoopAddLocation(NPC, -7.9, 4, -48.62, 4, 0)
  399. MovementLoopAddLocation(NPC, -10.02, 4.14, -52.5, 4, 0)
  400. MovementLoopAddLocation(NPC, -14.33, 4.18, -59.88, 4, 0)
  401. MovementLoopAddLocation(NPC, -20.26, 4.18, -72.13, 4, 0)
  402. MovementLoopAddLocation(NPC, -24.23, 4.18, -76.5, 4, 0)
  403. MovementLoopAddLocation(NPC, -28.92, 4.17, -81.67, 4, 0)
  404. MovementLoopAddLocation(NPC, -28.92, 4.17, -81.67, 4, MakeRandomInt(8,16))
  405. MovementLoopAddLocation(NPC, -22.16, 4.18, -73.77, 4, 0)
  406. MovementLoopAddLocation(NPC, -21.02, 4.18, -70.34, 4, 0)
  407. MovementLoopAddLocation(NPC, -19.16, 4.18, -67.27, 4, 0)
  408. MovementLoopAddLocation(NPC, -14.87, 4.18, -65.11, 4, 0)
  409. MovementLoopAddLocation(NPC, -11.68, 4.18, -66.85, 4, 0)
  410. MovementLoopAddLocation(NPC, -6.44, 4.18, -70.71, 4, MakeRandomInt(8,16))
  411. MovementLoopAddLocation(NPC, -9.04, 4.18, -68.32, 4, 0)
  412. MovementLoopAddLocation(NPC, -13.37, 4.18, -65.29, 4, 0)
  413. MovementLoopAddLocation(NPC, -20.24, 4.18, -61.94, 4, 0)
  414. MovementLoopAddLocation(NPC, -22.07, 4.18, -61.86, 4, MakeRandomInt(8,16))
  415. MovementLoopAddLocation(NPC, -16.55, 4.18, -63.29, 4, 0)
  416. MovementLoopAddLocation(NPC, -12.89, 4.35, -56.23, 4, 0)
  417. MovementLoopAddLocation(NPC, -8.86, 4, -49, 4, 0)
  418. MovementLoopAddLocation(NPC, -6.15, 4, -44.25, 4, 0)
  419. MovementLoopAddLocation(NPC, -6.21, 4, -41.03, 4, 0)
  420. MovementLoopAddLocation(NPC, -5.86, 3.82, -38.58, 4, 0)
  421. MovementLoopAddLocation(NPC, -4.69, 3.75, -35.5, 4, 0)
  422. MovementLoopAddLocation(NPC, -4.26, 3.75, -33.4, 4, 0)
  423. MovementLoopAddLocation(NPC, -2.81, 4, -28.53, 4, 0)
  424. MovementLoopAddLocation(NPC, 0.72, 4, -24.87, 4, 0)
  425. MovementLoopAddLocation(NPC, 1.78, 4, -22.92, 4, 0)
  426. MovementLoopAddLocation(NPC, 4.21, 3.94, -19.6, 4, 0)
  427. MovementLoopAddLocation(NPC, 4.21, 3.5, -14.89, 4, 0)
  428. MovementLoopAddLocation(NPC, 3.17, 3.5, -12.37, 4, 0)
  429. MovementLoopAddLocation(NPC, 1.16, 3.5, -12.4, 4, 0)
  430. MovementLoopAddLocation(NPC, -0.84, 3.5, -13.74, 4, MakeRandomInt(8,16))
  431. MovementLoopAddLocation(NPC, -1.53, 3.5, -15.82, 4, 0)
  432. MovementLoopAddLocation(NPC, -1.63, 3.5, -17.03, 4, 0)
  433. MovementLoopAddLocation(NPC, -1.29, 3.5, -17.96, 4, 0)
  434. MovementLoopAddLocation(NPC, 0.62, 3.5, -20.15, 4, 0)
  435. MovementLoopAddLocation(NPC, 1.75, 3.5, -18.22, 4, 0)
  436. MovementLoopAddLocation(NPC, 3.51, 3.5, -14.44, 4, 0)
  437. MovementLoopAddLocation(NPC, 5.79, 3.5, -11.23, 4, 0)
  438. MovementLoopAddLocation(NPC, 9.88, 3.5, -7.86, 4, 0)
  439. MovementLoopAddLocation(NPC, 14.37, 3.5, -4.68, 4, 0)
  440. MovementLoopAddLocation(NPC, 21.35, 3.62, -3.56, 4, 0)
  441. MovementLoopAddLocation(NPC, 25.19, 3.5, -0.95, 4, 0)
  442. MovementLoopAddLocation(NPC, 25.19, 3.5, -0.95, 4, 0)
  443. MovementLoopAddLocation(NPC, 29.32, 3.5, 4.54, 4, 0)
  444. MovementLoopAddLocation(NPC, 33.9, 3, 6.49, 4, 0)
  445. MovementLoopAddLocation(NPC, 35.86, 3.25, 4.68, 4, 0)
  446. MovementLoopAddLocation(NPC, 39.23, 3.5, 2.15, 4, 0)
  447. MovementLoopAddLocation(NPC, 40.15, 3.5, -1.19, 4, 0)
  448. MovementLoopAddLocation(NPC, 41.5, 3.5, -3.25, 4, 0)
  449. MovementLoopAddLocation(NPC, 43.99, 3.5, -3.29, 4, MakeRandomInt(8,16))
  450. MovementLoopAddLocation(NPC, 41.36, 3.5, -5.14, 4, 0)
  451. MovementLoopAddLocation(NPC, 42.29, 3.75, -8.03, 4, 0)
  452. MovementLoopAddLocation(NPC, 45.9, 3.75, -9.5, 4, 0)
  453. MovementLoopAddLocation(NPC, 46.77, 3.75, -9.82, 4, 0)
  454. MovementLoopAddLocation(NPC, 48.95, 4.25, -9.49, 4, 0)
  455. MovementLoopAddLocation(NPC, 51.21, 4.25, -8.17, 4, 0)
  456. MovementLoopAddLocation(NPC, 56.37, 4.25, -7.18, 4, 0)
  457. MovementLoopAddLocation(NPC, 59.83, 4.25, -7.14, 4, 0)
  458. MovementLoopAddLocation(NPC, 61.19, 4, -5.62, 4, 0)
  459. MovementLoopAddLocation(NPC, 61.02, 4, -4.05, 4, MakeRandomInt(8,16))
  460. MovementLoopAddLocation(NPC, 61.93, 4, -1.14, 4, 0)
  461. MovementLoopAddLocation(NPC, 61.49, 4, -0.34, 4, 0)
  462. MovementLoopAddLocation(NPC, 59.8, 3.75, 1.95, 4, 0)
  463. MovementLoopAddLocation(NPC, 56.49, 3.75, 4.46, 4, 0)
  464. MovementLoopAddLocation(NPC, 54.17, 3.47, 5.8, 4, 0)
  465. MovementLoopAddLocation(NPC, 49.84, 3, 6.7, 4, 0)
  466. MovementLoopAddLocation(NPC, 48.44, 2.75, 8.76, 4, 0)
  467. MovementLoopAddLocation(NPC, 45.26, 2.48, 10.97, 4, 0)
  468. MovementLoopAddLocation(NPC, 40.19, 2, 13.32, 4, 0)
  469. MovementLoopAddLocation(NPC, 39.53, 2, 14.96, 4, 0)
  470. MovementLoopAddLocation(NPC, 40.76, 2, 17.09, 4, MakeRandomInt(8,16))
  471. MovementLoopAddLocation(NPC, 40.39, 2, 14.41, 4, 0)
  472. MovementLoopAddLocation(NPC, 41.87, 2.25, 12.16, 4, 0)
  473. elseif GetSpawnLocationID(NPC) == 402893 then
  474. MovementLoopAddLocation(NPC, 17.74, -6.5, 47.03, 4, 0)
  475. MovementLoopAddLocation(NPC, 19.56, -6.5, 47.35, 4, 0)
  476. MovementLoopAddLocation(NPC, 23.82, -6.5, 47.57, 4, 0)
  477. MovementLoopAddLocation(NPC, 27.69, -6.5, 48.42, 4, 0)
  478. MovementLoopAddLocation(NPC, 31.37, -6.5, 48.73, 4, 0)
  479. MovementLoopAddLocation(NPC, 35.84, -6.5, 47.63, 4, 0)
  480. MovementLoopAddLocation(NPC, 36.97, -6.5, 47.32, 4, 0)
  481. MovementLoopAddLocation(NPC, 41.95, -6.5, 47.98, 4, 0)
  482. MovementLoopAddLocation(NPC, 46, -7, 50.83, 4, 0)
  483. MovementLoopAddLocation(NPC, 52.15, -7, 55.55, 4, 0)
  484. MovementLoopAddLocation(NPC, 57.63, -7, 59.75, 4, MakeRandomInt(8,16))
  485. MovementLoopAddLocation(NPC, 56.11, -6.99, 61.26, 4, 0)
  486. MovementLoopAddLocation(NPC, 53.39, -6.96, 62.03, 4, 0)
  487. MovementLoopAddLocation(NPC, 49.46, -6.99, 59.01, 4, 0)
  488. MovementLoopAddLocation(NPC, 47.74, -7, 54.95, 4, 0)
  489. MovementLoopAddLocation(NPC, 49.67, -6, 47.72, 4, 0)
  490. MovementLoopAddLocation(NPC, 51, -5.5, 44.37, 4, 0)
  491. MovementLoopAddLocation(NPC, 52.35, -5, 39.12, 4, 0)
  492. MovementLoopAddLocation(NPC, 50.72, -5, 36.77, 4, 0)
  493. MovementLoopAddLocation(NPC, 48.66, -5, 36.54, 4, 0)
  494. MovementLoopAddLocation(NPC, 46.04, -5, 37.16, 4, MakeRandomInt(8,16))
  495. MovementLoopAddLocation(NPC, 43.96, -5, 35.1, 4, 0)
  496. MovementLoopAddLocation(NPC, 37.8, -5, 33.31, 4, 0)
  497. MovementLoopAddLocation(NPC, 32.66, -5.05, 32.26, 4, 0)
  498. MovementLoopAddLocation(NPC, 28.17, -6, 32.67, 4, 0)
  499. MovementLoopAddLocation(NPC, 24.57, -6, 34.2, 4, 0)
  500. MovementLoopAddLocation(NPC, 20.83, -6, 35.36, 4, 0)
  501. MovementLoopAddLocation(NPC, 18.78, -6, 35.39, 4, 0)
  502. MovementLoopAddLocation(NPC, 18.69, -6, 36.07, 4, MakeRandomInt(8,16))
  503. MovementLoopAddLocation(NPC, 17.69, -6, 36.99, 4, 0)
  504. MovementLoopAddLocation(NPC, 17.58, -6, 39.94, 4, 0)
  505. MovementLoopAddLocation(NPC, 18.29, -5.97, 40.75, 4, MakeRandomInt(8,16))
  506. MovementLoopAddLocation(NPC, 18.29, -5.97, 40.75, 4, 0)
  507. MovementLoopAddLocation(NPC, 17.52, -6, 41.9, 4, 0)
  508. MovementLoopAddLocation(NPC, 12.32, -6.25, 43.54, 4, 0)
  509. MovementLoopAddLocation(NPC, 8.07, -6.25, 41.48, 4, 0)
  510. MovementLoopAddLocation(NPC, 1.85, -6.25, 39.71, 4, 0)
  511. MovementLoopAddLocation(NPC, -3.41, -6.25, 39.37, 4, 0)
  512. MovementLoopAddLocation(NPC, -6.94, -6.5, 40.07, 4, 0)
  513. MovementLoopAddLocation(NPC, -12.98, -7, 40.86, 4, MakeRandomInt(8,16))
  514. MovementLoopAddLocation(NPC, -12.98, -7, 40.86, 4, 0)
  515. MovementLoopAddLocation(NPC, -11.03, -7, 42.96, 4, 0)
  516. MovementLoopAddLocation(NPC, -9, -7, 48.27, 4, 0)
  517. MovementLoopAddLocation(NPC, -5.82, -7, 54.34, 4, 0)
  518. MovementLoopAddLocation(NPC, -4.59, -7, 62.37, 4, 0)
  519. MovementLoopAddLocation(NPC, -3, -7, 69.92, 4, 0)
  520. MovementLoopAddLocation(NPC, 0.22, -6.49, 79.37, 4, MakeRandomInt(8,16))
  521. MovementLoopAddLocation(NPC, -0.09, -7, 78.81, 4, 0)
  522. MovementLoopAddLocation(NPC, -1.14, -7, 75.7, 4, 0)
  523. MovementLoopAddLocation(NPC, -4.57, -7, 62.61, 4, 0)
  524. MovementLoopAddLocation(NPC, -6.45, -7, 58.98, 4, 0)
  525. MovementLoopAddLocation(NPC, -12.92, -7, 57.33, 4, 0)
  526. MovementLoopAddLocation(NPC, -14.39, -7, 53.7, 4, 0)
  527. MovementLoopAddLocation(NPC, -15.76, -7, 49.89, 4, MakeRandomInt(8,16))
  528. MovementLoopAddLocation(NPC, -14.63, -7, 51.33, 4, 0)
  529. MovementLoopAddLocation(NPC, -13.83, -7, 53.33, 4, 0)
  530. MovementLoopAddLocation(NPC, -11.43, -7, 52.64, 4, 0)
  531. MovementLoopAddLocation(NPC, -1.99, -7, 46.07, 4, 0)
  532. MovementLoopAddLocation(NPC, 1.72, -6.75, 43.49, 4, 0)
  533. MovementLoopAddLocation(NPC, 2.49, -6.75, 42.96, 4, 0)
  534. MovementLoopAddLocation(NPC, 7.7, -6.75, 44.8, 4, 0)
  535. MovementLoopAddLocation(NPC, 13.37, -6.75, 47.94, 4, 0)
  536. MovementLoopAddLocation(NPC, 19.02, -6.75, 48.94, 4, 0)
  537. MovementLoopAddLocation(NPC, 23.2, -7, 56.42, 4, 0)
  538. MovementLoopAddLocation(NPC, 25.93, -7.25, 63.48, 4, 0)
  539. MovementLoopAddLocation(NPC, 26.56, -7.36, 67.57, 4, 0)
  540. MovementLoopAddLocation(NPC, 23.7, -7.17, 69.78, 4, 0)
  541. MovementLoopAddLocation(NPC, 21.52, -7, 69.1, 4, MakeRandomInt(8,16))
  542. MovementLoopAddLocation(NPC, 23.88, -7.19, 68.66, 4, 0)
  543. MovementLoopAddLocation(NPC, 22.2, -7.05, 60.89, 4, 0)
  544. MovementLoopAddLocation(NPC, 17.94, -7, 54.02, 4, 0)
  545. MovementLoopAddLocation(NPC, 15.38, -6.75, 48.89, 4, 0)
  546. MovementLoopAddLocation(NPC, 14.81, -6, 42.72, 4, 0)
  547. MovementLoopAddLocation(NPC, 14.26, -6, 37.09, 4, 0)
  548. MovementLoopAddLocation(NPC, 13.17, -5.75, 34.5, 4, 0)
  549. MovementLoopAddLocation(NPC, 9.96, -5.75, 34, 4, 0)
  550. MovementLoopAddLocation(NPC, 9.36, -6, 35.07, 4, MakeRandomInt(8,16))
  551. MovementLoopAddLocation(NPC, 9.96, -5.75, 34, 4, 0)
  552. MovementLoopAddLocation(NPC, 13.17, -5.75, 34.5, 4, 0)
  553. MovementLoopAddLocation(NPC, 14.26, -6, 37.09, 4, 0)
  554. MovementLoopAddLocation(NPC, 14.81, -6, 42.72, 4, 0)
  555. MovementLoopAddLocation(NPC, 15.38, -6.75, 48.89, 4, 0)
  556. MovementLoopAddLocation(NPC, 17.94, -7, 54.02, 4, 0)
  557. MovementLoopAddLocation(NPC, 22.2, -7.05, 60.89, 4, 0)
  558. MovementLoopAddLocation(NPC, 23.88, -7.19, 68.66, 4, 0)
  559. MovementLoopAddLocation(NPC, 21.52, -7, 69.1, 4, MakeRandomInt(8,16))
  560. MovementLoopAddLocation(NPC, 23.7, -7.17, 69.78, 4, 0)
  561. MovementLoopAddLocation(NPC, 26.56, -7.36, 67.57, 4, 0)
  562. MovementLoopAddLocation(NPC, 25.93, -7.25, 63.48, 4, 0)
  563. MovementLoopAddLocation(NPC, 23.2, -7, 56.42, 4, 0)
  564. MovementLoopAddLocation(NPC, 19.02, -6.75, 48.94, 4, 0)
  565. MovementLoopAddLocation(NPC, 13.37, -6.75, 47.94, 4, 0)
  566. MovementLoopAddLocation(NPC, 7.7, -6.75, 44.8, 4, 0)
  567. MovementLoopAddLocation(NPC, 2.49, -6.75, 42.96, 4, 0)
  568. MovementLoopAddLocation(NPC, 1.72, -6.75, 43.49, 4, 0)
  569. MovementLoopAddLocation(NPC, -1.99, -7, 46.07, 4, 0)
  570. MovementLoopAddLocation(NPC, -11.43, -7, 52.64, 4, 0)
  571. MovementLoopAddLocation(NPC, -13.83, -7, 53.33, 4, 0)
  572. MovementLoopAddLocation(NPC, -14.63, -7, 51.33, 4, 0)
  573. MovementLoopAddLocation(NPC, -15.76, -7, 49.89, 4, MakeRandomInt(8,16))
  574. MovementLoopAddLocation(NPC, -14.39, -7, 53.7, 4, 0)
  575. MovementLoopAddLocation(NPC, -12.92, -7, 57.33, 4, 0)
  576. MovementLoopAddLocation(NPC, -6.45, -7, 58.98, 4, 0)
  577. MovementLoopAddLocation(NPC, -4.57, -7, 62.61, 4, 0)
  578. MovementLoopAddLocation(NPC, -1.14, -7, 75.7, 4, 0)
  579. MovementLoopAddLocation(NPC, -0.09, -7, 78.81, 4, 0)
  580. MovementLoopAddLocation(NPC, 0.22, -6.49, 79.37, 4, MakeRandomInt(8,16))
  581. MovementLoopAddLocation(NPC, -3, -7, 69.92, 4, 0)
  582. MovementLoopAddLocation(NPC, -4.59, -7, 62.37, 4, 0)
  583. MovementLoopAddLocation(NPC, -5.82, -7, 54.34, 4, 0)
  584. MovementLoopAddLocation(NPC, -9, -7, 48.27, 4, 0)
  585. MovementLoopAddLocation(NPC, -11.03, -7, 42.96, 4, 0)
  586. MovementLoopAddLocation(NPC, -12.98, -7, 40.86, 4, 0)
  587. MovementLoopAddLocation(NPC, -12.98, -7, 40.86, 4, MakeRandomInt(8,16))
  588. MovementLoopAddLocation(NPC, -6.94, -6.5, 40.07, 4, 0)
  589. MovementLoopAddLocation(NPC, -3.41, -6.25, 39.37, 4, 0)
  590. MovementLoopAddLocation(NPC, 1.85, -6.25, 39.71, 4, 0)
  591. MovementLoopAddLocation(NPC, 8.07, -6.25, 41.48, 4, 0)
  592. MovementLoopAddLocation(NPC, 12.32, -6.25, 43.54, 4, 0)
  593. MovementLoopAddLocation(NPC, 17.52, -6, 41.9, 4, 0)
  594. MovementLoopAddLocation(NPC, 18.29, -5.97, 40.75, 4, 0)
  595. MovementLoopAddLocation(NPC, 18.29, -5.97, 40.75, 4, MakeRandomInt(8,16))
  596. MovementLoopAddLocation(NPC, 17.58, -6, 39.94, 4, 0)
  597. MovementLoopAddLocation(NPC, 17.69, -6, 36.99, 4, 0)
  598. MovementLoopAddLocation(NPC, 18.69, -6, 36.07, 4, 15)
  599. MovementLoopAddLocation(NPC, 18.78, -6, 35.39, 4, 0)
  600. MovementLoopAddLocation(NPC, 20.83, -6, 35.36, 4, 0)
  601. MovementLoopAddLocation(NPC, 24.57, -6, 34.2, 4, 0)
  602. MovementLoopAddLocation(NPC, 28.17, -6, 32.67, 4, 0)
  603. MovementLoopAddLocation(NPC, 32.66, -5.05, 32.26, 4, 0)
  604. MovementLoopAddLocation(NPC, 37.8, -5, 33.31, 4, 0)
  605. MovementLoopAddLocation(NPC, 43.96, -5, 35.1, 4, 0)
  606. MovementLoopAddLocation(NPC, 46.04, -5, 37.16, 4, MakeRandomInt(8,16))
  607. MovementLoopAddLocation(NPC, 48.66, -5, 36.54, 4, 0)
  608. MovementLoopAddLocation(NPC, 50.72, -5, 36.77, 4, 0)
  609. MovementLoopAddLocation(NPC, 52.35, -5, 39.12, 4, 0)
  610. MovementLoopAddLocation(NPC, 51, -5.5, 44.37, 4, 0)
  611. MovementLoopAddLocation(NPC, 49.67, -6, 47.72, 4, 0)
  612. MovementLoopAddLocation(NPC, 47.74, -7, 54.95, 4, 0)
  613. MovementLoopAddLocation(NPC, 49.46, -6.99, 59.01, 4, 0)
  614. MovementLoopAddLocation(NPC, 53.39, -6.96, 62.03, 4, 0)
  615. MovementLoopAddLocation(NPC, 56.11, -6.99, 61.26, 4, 0)
  616. MovementLoopAddLocation(NPC, 57.63, -7, 59.75, 4, MakeRandomInt(8,16))
  617. MovementLoopAddLocation(NPC, 52.15, -7, 55.55, 4, 0)
  618. MovementLoopAddLocation(NPC, 46, -7, 50.83, 4, 0)
  619. MovementLoopAddLocation(NPC, 41.95, -6.5, 47.98, 4, 0)
  620. MovementLoopAddLocation(NPC, 36.97, -6.5, 47.32, 4, 0)
  621. MovementLoopAddLocation(NPC, 35.84, -6.5, 47.63, 4, 0)
  622. MovementLoopAddLocation(NPC, 31.37, -6.5, 48.73, 4, 0)
  623. MovementLoopAddLocation(NPC, 27.69, -6.5, 48.42, 4, 0)
  624. MovementLoopAddLocation(NPC, 23.82, -6.5, 47.57, 4, 0)
  625. MovementLoopAddLocation(NPC, 19.56, -6.5, 47.35, 4, 0)
  626. MovementLoopAddLocation(NPC, 17.74, -6.5, 47.03, 4, 0)
  627. elseif GetSpawnLocationID(NPC) == 402869 then
  628. MovementLoopAddLocation(NPC, -30.78, -5.75, 22.15, 4, 0)
  629. MovementLoopAddLocation(NPC, -30.67, -5.25, 17.51, 4, 0)
  630. MovementLoopAddLocation(NPC, -31, -5.2, 14.66, 4, 0)
  631. MovementLoopAddLocation(NPC, -32.15, -5, 10.84, 4, MakeRandomInt(8,16))
  632. MovementLoopAddLocation(NPC, -30.29, -5, 14.11, 4, 0)
  633. MovementLoopAddLocation(NPC, -28.71, -5, 15.16, 4, 0)
  634. MovementLoopAddLocation(NPC, -25.94, -5, 15.84, 4, MakeRandomInt(8,16))
  635. MovementLoopAddLocation(NPC, -28.86, -5.25, 19.07, 4, 0)
  636. MovementLoopAddLocation(NPC, -29.86, -5.5, 21.13, 4, 0)
  637. MovementLoopAddLocation(NPC, -27.67, -5.75, 23.64, 4, 0)
  638. MovementLoopAddLocation(NPC, -18.78, -7, 30.85, 4, 0)
  639. MovementLoopAddLocation(NPC, -13.54, -6.75, 34.55, 4, 0)
  640. MovementLoopAddLocation(NPC, -9.13, -6.75, 39.29, 4, 0)
  641. MovementLoopAddLocation(NPC, -8.21, -7, 48.96, 4, 0)
  642. MovementLoopAddLocation(NPC, -9.84, -7, 54.89, 4, 0)
  643. MovementLoopAddLocation(NPC, -17.46, -7, 59.88, 4, 0)
  644. MovementLoopAddLocation(NPC, -17.3, -7, 64.56, 4, 0)
  645. MovementLoopAddLocation(NPC, -17.91, -6.93, 72.4, 4, MakeRandomInt(8,16))
  646. MovementLoopAddLocation(NPC, -18.08, -7, 69.15, 4, 0)
  647. MovementLoopAddLocation(NPC, -17.59, -7, 65.26, 4, 0)
  648. MovementLoopAddLocation(NPC, -20.34, -7, 64.88, 4, 0)
  649. MovementLoopAddLocation(NPC, -29.55, -7, 61.91, 4, 0)
  650. MovementLoopAddLocation(NPC, -30.35, -7, 59.91, 4, MakeRandomInt(8,16))
  651. MovementLoopAddLocation(NPC, -30.35, -7, 59.91, 4, 0)
  652. MovementLoopAddLocation(NPC, -28.38, -7, 57.87, 4, MakeRandomInt(8,16))
  653. MovementLoopAddLocation(NPC, -29.38, -7, 59.79, 4, 0)
  654. MovementLoopAddLocation(NPC, -29.06, -7, 61.56, 4, 0)
  655. MovementLoopAddLocation(NPC, -28.18, -7, 62.75, 4, 0)
  656. MovementLoopAddLocation(NPC, -24.02, -7, 61.12, 4, 0)
  657. MovementLoopAddLocation(NPC, -22.88, -7, 58.92, 4, 0)
  658. MovementLoopAddLocation(NPC, -16.97, -7, 56.33, 4, 0)
  659. MovementLoopAddLocation(NPC, -12.76, -7, 55.73, 4, 0)
  660. MovementLoopAddLocation(NPC, -9.91, -7, 51.69, 4, 0)
  661. MovementLoopAddLocation(NPC, -11.58, -7, 48.2, 4, 0)
  662. MovementLoopAddLocation(NPC, -14.76, -7, 45.45, 4, MakeRandomInt(8,16))
  663. MovementLoopAddLocation(NPC, -13.63, -7, 47.25, 4, 0)
  664. MovementLoopAddLocation(NPC, -10.71, -7, 45.21, 4, 0)
  665. MovementLoopAddLocation(NPC, -11.27, -7, 41.4, 4, 0)
  666. MovementLoopAddLocation(NPC, -13.64, -7, 39.39, 4, 0)
  667. MovementLoopAddLocation(NPC, -18.41, -7, 38.09, 4, 0)
  668. MovementLoopAddLocation(NPC, -24.03, -7, 35.43, 4, 0)
  669. MovementLoopAddLocation(NPC, -33.63, -6.85, 34.05, 4, MakeRandomInt(8,16))
  670. MovementLoopAddLocation(NPC, -30.91, -5.75, 25.88, 4, 0)
  671. MovementLoopAddLocation(NPC, -30.65, -5.5, 21.06, 4, 0)
  672. MovementLoopAddLocation(NPC, -33.71, -5.5, 19.09, 4, MakeRandomInt(8,16))
  673. MovementLoopAddLocation(NPC, -30.65, -5.5, 21.06, 4, 0)
  674. MovementLoopAddLocation(NPC, -30.91, -5.75, 25.88, 4, 0)
  675. MovementLoopAddLocation(NPC, -33.63, -6.85, 34.05, 4, MakeRandomInt(8,16))
  676. MovementLoopAddLocation(NPC, -24.03, -7, 35.43, 4, 0)
  677. MovementLoopAddLocation(NPC, -18.41, -7, 38.09, 4, 0)
  678. MovementLoopAddLocation(NPC, -13.64, -7, 39.39, 4, 0)
  679. MovementLoopAddLocation(NPC, -11.27, -7, 41.4, 4, 0)
  680. MovementLoopAddLocation(NPC, -10.71, -7, 45.21, 4, 0)
  681. MovementLoopAddLocation(NPC, -13.63, -7, 47.25, 4, 0)
  682. MovementLoopAddLocation(NPC, -14.76, -7, 45.45, 4, MakeRandomInt(8,16))
  683. MovementLoopAddLocation(NPC, -11.58, -7, 48.2, 4, 0)
  684. MovementLoopAddLocation(NPC, -9.91, -7, 51.69, 4, 0)
  685. MovementLoopAddLocation(NPC, -12.76, -7, 55.73, 4, 0)
  686. MovementLoopAddLocation(NPC, -16.97, -7, 56.33, 4, 0)
  687. MovementLoopAddLocation(NPC, -22.88, -7, 58.92, 4, 0)
  688. MovementLoopAddLocation(NPC, -24.02, -7, 61.12, 4, 0)
  689. MovementLoopAddLocation(NPC, -28.18, -7, 62.75, 4, 0)
  690. MovementLoopAddLocation(NPC, -29.06, -7, 61.56, 4, 0)
  691. MovementLoopAddLocation(NPC, -29.38, -7, 59.79, 4, 0)
  692. MovementLoopAddLocation(NPC, -28.38, -7, 57.87, 4, MakeRandomInt(8,16))
  693. MovementLoopAddLocation(NPC, -30.35, -7, 59.91, 4, 0)
  694. MovementLoopAddLocation(NPC, -30.35, -7, 59.91, 4, MakeRandomInt(8,16))
  695. MovementLoopAddLocation(NPC, -29.55, -7, 61.91, 4, 0)
  696. MovementLoopAddLocation(NPC, -20.34, -7, 64.88, 4, 0)
  697. MovementLoopAddLocation(NPC, -17.59, -7, 65.26, 4, 0)
  698. MovementLoopAddLocation(NPC, -18.08, -7, 69.15, 4, 0)
  699. MovementLoopAddLocation(NPC, -17.91, -6.93, 72.4, 4, MakeRandomInt(8,16))
  700. MovementLoopAddLocation(NPC, -17.3, -7, 64.56, 4, 0)
  701. MovementLoopAddLocation(NPC, -17.46, -7, 59.88, 4, 0)
  702. MovementLoopAddLocation(NPC, -9.84, -7, 54.89, 4, 0)
  703. MovementLoopAddLocation(NPC, -8.21, -7, 48.96, 4, 0)
  704. MovementLoopAddLocation(NPC, -9.13, -6.75, 39.29, 4, 0)
  705. MovementLoopAddLocation(NPC, -13.54, -6.75, 34.55, 4, 0)
  706. MovementLoopAddLocation(NPC, -18.78, -7, 30.85, 4, 0)
  707. MovementLoopAddLocation(NPC, -27.67, -5.75, 23.64, 4, 0)
  708. MovementLoopAddLocation(NPC, -29.86, -5.5, 21.13, 4, 0)
  709. MovementLoopAddLocation(NPC, -28.86, -5.25, 19.07, 4, 0)
  710. MovementLoopAddLocation(NPC, -25.94, -5, 15.84, 4, MakeRandomInt(8,16))
  711. MovementLoopAddLocation(NPC, -28.71, -5, 15.16, 4, 0)
  712. MovementLoopAddLocation(NPC, -30.29, -5, 14.11, 4, 0)
  713. MovementLoopAddLocation(NPC, -32.15, -5, 10.84, 4, MakeRandomInt(8,16))
  714. MovementLoopAddLocation(NPC, -31, -5.2, 14.66, 4, 0)
  715. MovementLoopAddLocation(NPC, -30.67, -5.25, 17.51, 4, 0)
  716. MovementLoopAddLocation(NPC, -30.78, -5.75, 22.15, 4, 0)
  717. elseif GetSpawnLocationID(NPC) == 133788262 then
  718. MovementLoopAddLocation(NPC, 77.61, 5.02, -34.97, 2, MakeRandomInt(8,12))
  719. MovementLoopAddLocation(NPC, 77.61, 5.02, -34.97, 2, 0)
  720. MovementLoopAddLocation(NPC, 75.62, 5.02, -33.15, 2, 0)
  721. MovementLoopAddLocation(NPC, 73.74, 5.02, -31.86, 2, 0)
  722. MovementLoopAddLocation(NPC, 73.24, 5.02, -29.53, 2, 0)
  723. MovementLoopAddLocation(NPC, 76.61, 5.02, -23.29, 2, 0)
  724. MovementLoopAddLocation(NPC, 76.05, 5.02, -17.99, 2, 0)
  725. MovementLoopAddLocation(NPC, 75.48, 5.02, -14.69, 2, 0)
  726. MovementLoopAddLocation(NPC, 71.61, 5.02, -8.12, 2, MakeRandomInt(8,12))
  727. MovementLoopAddLocation(NPC, 71.61, 5.02, -8.12, 2, 0)
  728. MovementLoopAddLocation(NPC, 73.15, 5.02, -9.02, 2, 0)
  729. MovementLoopAddLocation(NPC, 75.78, 5.02, -10.55, 2, 0)
  730. MovementLoopAddLocation(NPC, 77.07, 5.02, -11.3, 2, 0)
  731. MovementLoopAddLocation(NPC, 85.03, 5.02, -8.05, 2, MakeRandomInt(8,12))
  732. MovementLoopAddLocation(NPC, 85.03, 5.02, -8.05, 2, 0)
  733. MovementLoopAddLocation(NPC, 82.12, 5.02, -7.35, 2, 0)
  734. MovementLoopAddLocation(NPC, 79.81, 5.02, -6.79, 2, 0)
  735. MovementLoopAddLocation(NPC, 77.59, 5.02, -7.67, 2, 0)
  736. MovementLoopAddLocation(NPC, 77.1, 5.02, -9.06, 2, 0)
  737. MovementLoopAddLocation(NPC, 76.29, 5.02, -10.25, 2, 0)
  738. MovementLoopAddLocation(NPC, 75.49, 5.02, -10.73, 2, 0)
  739. MovementLoopAddLocation(NPC, 74.51, 5.02, -13.86, 2, 0)
  740. MovementLoopAddLocation(NPC, 75.64, 5.02, -18.09, 2, 0)
  741. MovementLoopAddLocation(NPC, 79.27, 5.02, -20.23, 2, 0)
  742. MovementLoopAddLocation(NPC, 80.78, 5.02, -17.85, 2, MakeRandomInt(8,12))
  743. MovementLoopAddLocation(NPC, 80.78, 5.02, -17.85, 2, 0)
  744. MovementLoopAddLocation(NPC, 83.36, 5.02, -15.76, 2, 0)
  745. MovementLoopAddLocation(NPC, 86.51, 5.02, -13.89, 2, MakeRandomInt(8,12))
  746. MovementLoopAddLocation(NPC, 86.51, 5.02, -13.89, 2, 0)
  747. MovementLoopAddLocation(NPC, 82.21, 5.02, -15.64, 2, 0)
  748. MovementLoopAddLocation(NPC, 79.55, 5.02, -15.74, 2, 0)
  749. MovementLoopAddLocation(NPC, 78.12, 5.02, -18.21, 2, 0)
  750. MovementLoopAddLocation(NPC, 75.03, 5.02, -21.79, 2, 0)
  751. MovementLoopAddLocation(NPC, 73.58, 5.02, -27.67, 2, 0)
  752. MovementLoopAddLocation(NPC, 73.78, 5.03, -34.47, 2, MakeRandomInt(8,12))
  753. MovementLoopAddLocation(NPC, 73.78, 5.03, -34.47, 2, 0)
  754. MovementLoopAddLocation(NPC, 87.81, 5.02, -30.69, 2, MakeRandomInt(8,12))
  755. MovementLoopAddLocation(NPC, 87.81, 5.02, -30.69, 2, 0)
  756. MovementLoopAddLocation(NPC, 77.15, 5.02, -32.83, 2, 0)
  757. end
  758. end