Scruffy.lua 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/Scruffy.lua
  3. Script Purpose : Waypoint Path for Scruffy.lua
  4. Script Author : Rylec
  5. Script Date : 10-04-2021 10:27:40
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. SetPlayerProximityFunction(NPC, 5, "InRange")
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function InRange(NPC, Spawn)
  19. Emote(NPC, "scowls at you.")
  20. end
  21. function waypoints(NPC)
  22. MovementLoopAddLocation(NPC, 610.82, -35.23, -228.88, 2, MakeRandomInt(12, 18))
  23. MovementLoopAddLocation(NPC, 607.13, -32.98, -235.4, 2, 0)
  24. MovementLoopAddLocation(NPC, 604.89, -31.24, -238.38, 2, 0)
  25. MovementLoopAddLocation(NPC, 603.96, -31.23, -240.08, 2, 0)
  26. MovementLoopAddLocation(NPC, 603.41, -31.11, -241.46, 2, 0)
  27. MovementLoopAddLocation(NPC, 603.05, -31.08, -242.02, 2, 2)
  28. MovementLoopAddLocation(NPC, 599.37, -31.26, -238.85, 2, 0, "changegrid_Going_Up")
  29. MovementLoopAddLocation(NPC, 596.13, -30.9, -237.2, 2, 0)
  30. MovementLoopAddLocation(NPC, 593.96, -29.41, -235.12, 2, 0)
  31. MovementLoopAddLocation(NPC, 592.34, -28.51, -234.16, 2, 0)
  32. MovementLoopAddLocation(NPC, 591.19, -28, -233.21, 2, 0)
  33. MovementLoopAddLocation(NPC, 587.16, -27.95, -231.85, 2, MakeRandomInt(2, 6))
  34. MovementLoopAddLocation(NPC, 590.55, -27.55, -228.59, 2, 0)
  35. MovementLoopAddLocation(NPC, 594.98, -24.84, -221.01, 2, MakeRandomInt(2, 6))
  36. MovementLoopAddLocation(NPC, 591.34, -27.99, -230.71, 2, 0)
  37. MovementLoopAddLocation(NPC, 592.78, -28.43, -233.29, 2, 0)
  38. MovementLoopAddLocation(NPC, 598.34, -31.25, -237.67, 2, 0)
  39. MovementLoopAddLocation(NPC, 599.13, -31.25, -238.13, 2, 0)
  40. MovementLoopAddLocation(NPC, 600.56, -31.26, -239.35, 2, 0)
  41. MovementLoopAddLocation(NPC, 602.14, -31.23, -240.28, 2, 0, "changegrid_Going_Down")
  42. MovementLoopAddLocation(NPC, 603.91, -31.24, -239.62, 2, 0)
  43. MovementLoopAddLocation(NPC, 608.18, -34.05, -233.73, 2, 0)
  44. MovementLoopAddLocation(NPC, 610.71, -35.23, -228.99, 2, MakeRandomInt(2, 6))
  45. MovementLoopAddLocation(NPC, 609.49, -35.26, -230.68, 2, 0)
  46. MovementLoopAddLocation(NPC, 607.88, -34.57, -232.09, 2, 0)
  47. MovementLoopAddLocation(NPC, 606.12, -32.69, -235.47, 2, 0)
  48. MovementLoopAddLocation(NPC, 603.16, -31.24, -238.83, 2, 0)
  49. MovementLoopAddLocation(NPC, 601.82, -31.23, -241.1, 2, 0)
  50. MovementLoopAddLocation(NPC, 601.45, -31.22, -241.44, 2, 1)
  51. MovementLoopAddLocation(NPC, 597.9, -31.24, -237.19, 2, 0, "changegrid_Going_Up")
  52. MovementLoopAddLocation(NPC, 594.38, -29.53, -234.85, 2, 0)
  53. MovementLoopAddLocation(NPC, 592.71, -28.46, -233.45, 2, 0)
  54. MovementLoopAddLocation(NPC, 591.66, -28.01, -232.77, 2, 0)
  55. MovementLoopAddLocation(NPC, 590.84, -28, -230.82, 2, 0)
  56. MovementLoopAddLocation(NPC, 591.46, -27.26, -228.63, 2, 0)
  57. MovementLoopAddLocation(NPC, 592.69, -25.77, -225.78, 2, 0)
  58. MovementLoopAddLocation(NPC, 594.36, -24.76, -223.47, 2, 0)
  59. MovementLoopAddLocation(NPC, 594.89, -24.84, -222.03, 2, MakeRandomInt(2, 6))
  60. MovementLoopAddLocation(NPC, 591.39, -27.23, -228.39, 2, 0)
  61. MovementLoopAddLocation(NPC, 590.04, -28.01, -230.06, 2, 0)
  62. MovementLoopAddLocation(NPC, 589.35, -28.06, -231.66, 2, 0)
  63. MovementLoopAddLocation(NPC, 592.82, -28.61, -233.97, 2, 0)
  64. MovementLoopAddLocation(NPC, 594.07, -29.18, -234.15, 2, 0)
  65. MovementLoopAddLocation(NPC, 596.41, -30.78, -236.18, 2, 0)
  66. MovementLoopAddLocation(NPC, 601.24, -31.25, -238.72, 2, MakeRandomInt(2, 6), "changegrid_Going_Down")
  67. MovementLoopAddLocation(NPC, 598.74, -31.24, -237.33, 2, 0, "changegrid_Going_Up")
  68. MovementLoopAddLocation(NPC, 596.17, -30.63, -236.18, 2, 0)
  69. MovementLoopAddLocation(NPC, 592.46, -28.28, -233.09, 2, 0)
  70. MovementLoopAddLocation(NPC, 591.52, -28, -232.66, 2, 0)
  71. MovementLoopAddLocation(NPC, 590.52, -28.02, -231.28, 2, 0)
  72. MovementLoopAddLocation(NPC, 589.79, -27.98, -229.12, 2, 0)
  73. MovementLoopAddLocation(NPC, 591.64, -26.27, -226.3, 2, 0)
  74. MovementLoopAddLocation(NPC, 593.38, -24.78, -224.03, 2, 0)
  75. MovementLoopAddLocation(NPC, 594.36, -24.78, -220.83, 2, MakeRandomInt(2, 6))
  76. MovementLoopAddLocation(NPC, 593.82, -24.75, -222.38, 2, 0)
  77. MovementLoopAddLocation(NPC, 593.79, -24.73, -223.41, 2, 0)
  78. MovementLoopAddLocation(NPC, 591.35, -26.98, -227.75, 2, 0)
  79. MovementLoopAddLocation(NPC, 590.9, -27.64, -229.06, 2, 0)
  80. MovementLoopAddLocation(NPC, 589.93, -28.02, -230.3, 2, 0)
  81. MovementLoopAddLocation(NPC, 588.72, -28.02, -232.47, 2, 1)
  82. MovementLoopAddLocation(NPC, 591.22, -28, -233.11, 2, 0)
  83. MovementLoopAddLocation(NPC, 592.3, -28.4, -233.9, 2, 0)
  84. MovementLoopAddLocation(NPC, 594.16, -29.35, -234.69, 2, 0)
  85. MovementLoopAddLocation(NPC, 594.8, -29.82, -235.49, 2, 0)
  86. MovementLoopAddLocation(NPC, 596.27, -30.66, -236.13, 2, 0)
  87. MovementLoopAddLocation(NPC, 598.87, -31.26, -238.51, 2, 0)
  88. MovementLoopAddLocation(NPC, 601.67, -31.25, -240.13, 2, MakeRandomInt(2, 6), "changegrid_Going_Down")
  89. MovementLoopAddLocation(NPC, 604.8, -31.64, -237.08, 2, 0)
  90. MovementLoopAddLocation(NPC, 605.68, -32.48, -235.71, 2, 0)
  91. MovementLoopAddLocation(NPC, 608.02, -34.13, -233.25, 2, 0)
  92. MovementLoopAddLocation(NPC, 609.64, -35.02, -232.17, 2, 0)
  93. MovementLoopAddLocation(NPC, 609.66, -35.26, -229.86, 2, MakeRandomInt(2, 6))
  94. MovementLoopAddLocation(NPC, 609.52, -34.89, -232.41, 2, 0)
  95. MovementLoopAddLocation(NPC, 604.97, -31.69, -237.1, 2, 0)
  96. MovementLoopAddLocation(NPC, 603.81, -31.24, -239.63, 2, 0)
  97. MovementLoopAddLocation(NPC, 602.36, -31.23, -239.81, 2, 2)
  98. MovementLoopAddLocation(NPC, 597.82, -31.25, -237.28, 2, 0, "changegrid_Going_Up")
  99. MovementLoopAddLocation(NPC, 596.09, -30.55, -236, 2, 0)
  100. MovementLoopAddLocation(NPC, 592.85, -28.79, -234.66, 2, 0)
  101. MovementLoopAddLocation(NPC, 592.03, -28.31, -233.87, 2, 0)
  102. MovementLoopAddLocation(NPC, 591.46, -28.01, -232.47, 2, 0)
  103. MovementLoopAddLocation(NPC, 590.77, -28.02, -231.65, 2, 0)
  104. MovementLoopAddLocation(NPC, 591.24, -26.76, -227.15, 2, 0)
  105. MovementLoopAddLocation(NPC, 591.9, -26.26, -226.36, 2, 0)
  106. MovementLoopAddLocation(NPC, 594.89, -24.77, -223.63, 2, MakeRandomInt(12, 18))
  107. MovementLoopAddLocation(NPC, 589.81, -28.02, -230.18, 2, 0)
  108. MovementLoopAddLocation(NPC, 591.05, -28.01, -232.79, 2, 0)
  109. MovementLoopAddLocation(NPC, 592.76, -28.44, -233.34, 2, 0)
  110. MovementLoopAddLocation(NPC, 599.03, -31.26, -238.91, 2, 0)
  111. MovementLoopAddLocation(NPC, 600.44, -31.26, -239.73, 2, 0)
  112. MovementLoopAddLocation(NPC, 601.39, -31.25, -240.11, 2, 0, "changegrid_Going_Down")
  113. MovementLoopAddLocation(NPC, 602.67, -31.21, -241.51, 2, MakeRandomInt(2, 6))
  114. MovementLoopAddLocation(NPC, 604.59, -31.06, -239.86, 2, 0)
  115. MovementLoopAddLocation(NPC, 606.62, -32.23, -236.85, 2, 0)
  116. MovementLoopAddLocation(NPC, 607.83, -33.58, -234.43, 2, 0)
  117. MovementLoopAddLocation(NPC, 609.55, -34.91, -232.38, 2, 0)
  118. MovementLoopAddLocation(NPC, 610.72, -35.22, -230.03, 2, MakeRandomInt(2, 6))
  119. MovementLoopAddLocation(NPC, 609.83, -35.07, -232.11, 2, 0)
  120. MovementLoopAddLocation(NPC, 607.92, -33.81, -234.09, 2, 0)
  121. MovementLoopAddLocation(NPC, 606, -32.77, -235.04, 2, 0)
  122. MovementLoopAddLocation(NPC, 605.17, -32.12, -236.14, 2, 0)
  123. MovementLoopAddLocation(NPC, 604.73, -31.55, -237.33, 2, 0)
  124. MovementLoopAddLocation(NPC, 603.42, -31.25, -238.5, 2, 0)
  125. MovementLoopAddLocation(NPC, 598.23, -31.26, -238.86, 2, 0, "changegrid_Going_Up")
  126. MovementLoopAddLocation(NPC, 594.8, -30.02, -236.02, 2, 0)
  127. MovementLoopAddLocation(NPC, 593.71, -29.41, -235.48, 2, 0)
  128. MovementLoopAddLocation(NPC, 590.8, -28.01, -232.97, 2, 0)
  129. MovementLoopAddLocation(NPC, 589.54, -28.02, -232.69, 2, 1)
  130. MovementLoopAddLocation(NPC, 590.74, -27.53, -228.65, 2, 0)
  131. MovementLoopAddLocation(NPC, 592.61, -25.83, -225.94, 2, 0)
  132. MovementLoopAddLocation(NPC, 593.4, -25.06, -224.58, 2, 0)
  133. MovementLoopAddLocation(NPC, 594.24, -24.75, -223.46, 2, 0)
  134. MovementLoopAddLocation(NPC, 594.72, -24.83, -222.31, 2, MakeRandomInt(2, 6))
  135. MovementLoopAddLocation(NPC, 593.3, -25.35, -225.27, 2, 0)
  136. MovementLoopAddLocation(NPC, 591.13, -26.93, -227.55, 2, 0)
  137. MovementLoopAddLocation(NPC, 590.21, -28.01, -230.5, 2, 0)
  138. MovementLoopAddLocation(NPC, 591.94, -28.16, -233.58, 2, 0)
  139. MovementLoopAddLocation(NPC, 593.29, -28.83, -234.2, 2, 0)
  140. MovementLoopAddLocation(NPC, 594.17, -29.52, -235.08, 2, 0)
  141. MovementLoopAddLocation(NPC, 595.55, -30.28, -235.67, 2, 0)
  142. MovementLoopAddLocation(NPC, 599.03, -31.26, -238.81, 2, 0)
  143. MovementLoopAddLocation(NPC, 602.79, -31.22, -239.87, 2, 0, "changegrid_Going_Down")
  144. MovementLoopAddLocation(NPC, 604.23, -31.27, -238.53, 2, 0)
  145. MovementLoopAddLocation(NPC, 604.77, -31.42, -237.5, 2, 0)
  146. MovementLoopAddLocation(NPC, 606.04, -32.35, -236.19, 2, 0)
  147. MovementLoopAddLocation(NPC, 606.3, -32.72, -235.54, 2, 0)
  148. MovementLoopAddLocation(NPC, 608.24, -34.12, -233.42, 2, 0)
  149. MovementLoopAddLocation(NPC, 610.82, -35.23, -228.88, 2, MakeRandomInt(2, 6))
  150. MovementLoopAddLocation(NPC, 607.13, -32.98, -235.4, 7, 0)
  151. MovementLoopAddLocation(NPC, 604.89, -31.24, -238.38, 7, 0)
  152. MovementLoopAddLocation(NPC, 603.96, -31.23, -240.08, 7, 0)
  153. MovementLoopAddLocation(NPC, 603.41, -31.11, -241.46, 7, 0)
  154. MovementLoopAddLocation(NPC, 603.05, -31.08, -242.02, 7, 0)
  155. MovementLoopAddLocation(NPC, 599.37, -31.26, -238.85, 7, 0, "changegrid_Going_Up")
  156. MovementLoopAddLocation(NPC, 596.13, -30.9, -237.2, 7, 0)
  157. MovementLoopAddLocation(NPC, 593.96, -29.41, -235.12, 7, 0)
  158. MovementLoopAddLocation(NPC, 592.34, -28.51, -234.16, 7, 0)
  159. MovementLoopAddLocation(NPC, 591.19, -28, -233.21, 7, 0)
  160. MovementLoopAddLocation(NPC, 587.16, -27.95, -231.85, 7, MakeRandomInt(1, 3))
  161. MovementLoopAddLocation(NPC, 590.55, -27.55, -228.59, 7, 0)
  162. MovementLoopAddLocation(NPC, 594.98, -24.84, -221.01, 7, 4)
  163. MovementLoopAddLocation(NPC, 591.34, -27.99, -230.71, 7, 0)
  164. MovementLoopAddLocation(NPC, 592.78, -28.43, -233.29, 7, 0)
  165. MovementLoopAddLocation(NPC, 598.34, -31.25, -237.67, 7, 0)
  166. MovementLoopAddLocation(NPC, 599.13, -31.25, -238.13, 7, 0)
  167. MovementLoopAddLocation(NPC, 600.56, -31.26, -239.35, 7, 0)
  168. MovementLoopAddLocation(NPC, 602.14, -31.23, -240.28, 7, 0, "changegrid_Going_Down")
  169. MovementLoopAddLocation(NPC, 603.91, -31.24, -239.62, 7, 0)
  170. MovementLoopAddLocation(NPC, 608.18, -34.05, -233.73, 7, 0)
  171. MovementLoopAddLocation(NPC, 610.71, -35.23, -228.99, 7, MakeRandomInt(1, 3))
  172. MovementLoopAddLocation(NPC, 609.49, -35.26, -230.68, 7, 0)
  173. MovementLoopAddLocation(NPC, 607.88, -34.57, -232.09, 7, 0)
  174. MovementLoopAddLocation(NPC, 606.12, -32.69, -235.47, 7, 0)
  175. MovementLoopAddLocation(NPC, 603.16, -31.24, -238.83, 7, 0)
  176. MovementLoopAddLocation(NPC, 601.82, -31.23, -241.1, 7, 0)
  177. MovementLoopAddLocation(NPC, 601.45, -31.22, -241.44, 7, 0)
  178. MovementLoopAddLocation(NPC, 597.9, -31.24, -237.19, 7, 0, "changegrid_Going_Up")
  179. MovementLoopAddLocation(NPC, 594.38, -29.53, -234.85, 7, 0)
  180. MovementLoopAddLocation(NPC, 592.71, -28.46, -233.45, 7, 0)
  181. MovementLoopAddLocation(NPC, 591.66, -28.01, -232.77, 7, 0)
  182. MovementLoopAddLocation(NPC, 590.84, -28, -230.82, 7, 0)
  183. MovementLoopAddLocation(NPC, 591.46, -27.26, -228.63, 7, 0)
  184. MovementLoopAddLocation(NPC, 592.69, -25.77, -225.78, 7, 0)
  185. MovementLoopAddLocation(NPC, 594.36, -24.76, -223.47, 7, 0)
  186. MovementLoopAddLocation(NPC, 594.89, -24.84, -222.03, 7, MakeRandomInt(1, 3))
  187. MovementLoopAddLocation(NPC, 591.39, -27.23, -228.39, 7, 0)
  188. MovementLoopAddLocation(NPC, 590.04, -28.01, -230.06, 7, 0)
  189. MovementLoopAddLocation(NPC, 589.35, -28.06, -231.66, 7, 0)
  190. MovementLoopAddLocation(NPC, 592.82, -28.61, -233.97, 7, 0)
  191. MovementLoopAddLocation(NPC, 594.07, -29.18, -234.15, 7, 0)
  192. MovementLoopAddLocation(NPC, 596.41, -30.78, -236.18, 7, 0)
  193. MovementLoopAddLocation(NPC, 601.24, -31.25, -238.72, 7, MakeRandomInt(1, 3), "changegrid_Going_Down")
  194. MovementLoopAddLocation(NPC, 598.74, -31.24, -237.33, 7, 0, "changegrid_Going_Up")
  195. MovementLoopAddLocation(NPC, 596.17, -30.63, -236.18, 7, 0)
  196. MovementLoopAddLocation(NPC, 592.46, -28.28, -233.09, 7, 0)
  197. MovementLoopAddLocation(NPC, 591.52, -28, -232.66, 7, 0)
  198. MovementLoopAddLocation(NPC, 590.52, -28.02, -231.28, 7, 0)
  199. MovementLoopAddLocation(NPC, 589.79, -27.98, -229.12, 7, 0)
  200. MovementLoopAddLocation(NPC, 591.64, -26.27, -226.3, 7, 0)
  201. MovementLoopAddLocation(NPC, 593.38, -24.78, -224.03, 7, 0)
  202. MovementLoopAddLocation(NPC, 594.36, -24.78, -220.83, 7, MakeRandomInt(1, 3))
  203. MovementLoopAddLocation(NPC, 593.82, -24.75, -222.38, 7, 0)
  204. MovementLoopAddLocation(NPC, 593.79, -24.73, -223.41, 7, 0)
  205. MovementLoopAddLocation(NPC, 591.35, -26.98, -227.75, 7, 0)
  206. MovementLoopAddLocation(NPC, 590.9, -27.64, -229.06, 7, 0)
  207. MovementLoopAddLocation(NPC, 589.93, -28.02, -230.3, 7, 0)
  208. MovementLoopAddLocation(NPC, 588.72, -28.02, -232.47, 7, 0)
  209. MovementLoopAddLocation(NPC, 591.22, -28, -233.11, 7, 0)
  210. MovementLoopAddLocation(NPC, 592.3, -28.4, -233.9, 7, 0)
  211. MovementLoopAddLocation(NPC, 594.16, -29.35, -234.69, 7, 0)
  212. MovementLoopAddLocation(NPC, 594.8, -29.82, -235.49, 7, 0)
  213. MovementLoopAddLocation(NPC, 596.27, -30.66, -236.13, 7, 0)
  214. MovementLoopAddLocation(NPC, 598.87, -31.26, -238.51, 7, 0)
  215. MovementLoopAddLocation(NPC, 601.67, -31.25, -240.13, 7, MakeRandomInt(1, 3), "changegrid_Going_Down")
  216. MovementLoopAddLocation(NPC, 604.8, -31.64, -237.08, 7, 0)
  217. MovementLoopAddLocation(NPC, 605.68, -32.48, -235.71, 7, 0)
  218. MovementLoopAddLocation(NPC, 608.02, -34.13, -233.25, 7, 0)
  219. MovementLoopAddLocation(NPC, 609.64, -35.02, -232.17, 7, 0)
  220. MovementLoopAddLocation(NPC, 609.66, -35.26, -229.86, 7, MakeRandomInt(1, 3))
  221. MovementLoopAddLocation(NPC, 609.52, -34.89, -232.41, 7, 0)
  222. MovementLoopAddLocation(NPC, 604.97, -31.69, -237.1, 7, 0)
  223. MovementLoopAddLocation(NPC, 603.81, -31.24, -239.63, 7, 0)
  224. MovementLoopAddLocation(NPC, 602.36, -31.23, -239.81, 7, MakeRandomInt(1, 3))
  225. MovementLoopAddLocation(NPC, 597.82, -31.25, -237.28, 7, 0, "changegrid_Going_Up")
  226. MovementLoopAddLocation(NPC, 596.09, -30.55, -236, 7, 0)
  227. MovementLoopAddLocation(NPC, 592.85, -28.79, -234.66, 7, 0)
  228. MovementLoopAddLocation(NPC, 592.03, -28.31, -233.87, 7, 0)
  229. MovementLoopAddLocation(NPC, 591.46, -28.01, -232.47, 7, 0)
  230. MovementLoopAddLocation(NPC, 590.77, -28.02, -231.65, 7, 0)
  231. MovementLoopAddLocation(NPC, 591.24, -26.76, -227.15, 7, 0)
  232. MovementLoopAddLocation(NPC, 591.9, -26.26, -226.36, 7, 0)
  233. MovementLoopAddLocation(NPC, 594.89, -24.77, -223.63, 7, MakeRandomInt(1, 3))
  234. MovementLoopAddLocation(NPC, 589.81, -28.02, -230.18, 7, 0)
  235. MovementLoopAddLocation(NPC, 591.05, -28.01, -232.79, 7, 0)
  236. MovementLoopAddLocation(NPC, 592.76, -28.44, -233.34, 7, 0)
  237. MovementLoopAddLocation(NPC, 599.03, -31.26, -238.91, 7, 0)
  238. MovementLoopAddLocation(NPC, 600.44, -31.26, -239.73, 7, 0)
  239. MovementLoopAddLocation(NPC, 601.39, -31.25, -240.11, 7, 0, "changegrid_Going_Down")
  240. MovementLoopAddLocation(NPC, 602.67, -31.21, -241.51, 7, MakeRandomInt(1, 3))
  241. MovementLoopAddLocation(NPC, 604.59, -31.06, -239.86, 7, 0)
  242. MovementLoopAddLocation(NPC, 606.62, -32.23, -236.85, 7, 0)
  243. MovementLoopAddLocation(NPC, 607.83, -33.58, -234.43, 7, 0)
  244. MovementLoopAddLocation(NPC, 609.55, -34.91, -232.38, 7, 0)
  245. MovementLoopAddLocation(NPC, 610.72, -35.22, -230.03, 7, MakeRandomInt(1, 3))
  246. MovementLoopAddLocation(NPC, 609.83, -35.07, -232.11, 7, 0)
  247. MovementLoopAddLocation(NPC, 607.92, -33.81, -234.09, 7, 0)
  248. MovementLoopAddLocation(NPC, 606, -32.77, -235.04, 7, 0)
  249. MovementLoopAddLocation(NPC, 605.17, -32.12, -236.14, 7, 0)
  250. MovementLoopAddLocation(NPC, 604.73, -31.55, -237.33, 7, 0)
  251. MovementLoopAddLocation(NPC, 603.42, -31.25, -238.5, 7, 0)
  252. MovementLoopAddLocation(NPC, 598.23, -31.26, -238.86, 7, 0, "changegrid_Going_Up")
  253. MovementLoopAddLocation(NPC, 594.8, -30.02, -236.02, 7, 0)
  254. MovementLoopAddLocation(NPC, 593.71, -29.41, -235.48, 7, 0)
  255. MovementLoopAddLocation(NPC, 590.8, -28.01, -232.97, 7, 0)
  256. MovementLoopAddLocation(NPC, 589.54, -28.02, -232.69, 7, 0)
  257. MovementLoopAddLocation(NPC, 590.74, -27.53, -228.65, 7, 0)
  258. MovementLoopAddLocation(NPC, 592.61, -25.83, -225.94, 7, 0)
  259. MovementLoopAddLocation(NPC, 593.4, -25.06, -224.58, 7, 0)
  260. MovementLoopAddLocation(NPC, 594.24, -24.75, -223.46, 7, 0)
  261. MovementLoopAddLocation(NPC, 594.72, -24.83, -222.31, 7, MakeRandomInt(1, 3))
  262. MovementLoopAddLocation(NPC, 593.3, -25.35, -225.27, 7, 0)
  263. MovementLoopAddLocation(NPC, 591.13, -26.93, -227.55, 7, 0)
  264. MovementLoopAddLocation(NPC, 590.21, -28.01, -230.5, 7, 0)
  265. MovementLoopAddLocation(NPC, 591.94, -28.16, -233.58, 7, 0)
  266. MovementLoopAddLocation(NPC, 593.29, -28.83, -234.2, 7, 0)
  267. MovementLoopAddLocation(NPC, 594.17, -29.52, -235.08, 7, 0)
  268. MovementLoopAddLocation(NPC, 595.55, -30.28, -235.67, 7, 0)
  269. MovementLoopAddLocation(NPC, 599.03, -31.26, -238.81, 7, 0)
  270. MovementLoopAddLocation(NPC, 602.79, -31.22, -239.87, 7, 0, "changegrid_Going_Down")
  271. MovementLoopAddLocation(NPC, 604.23, -31.27, -238.53, 7, 0)
  272. MovementLoopAddLocation(NPC, 604.77, -31.42, -237.5, 7, 0)
  273. MovementLoopAddLocation(NPC, 606.04, -32.35, -236.19, 7, 0)
  274. MovementLoopAddLocation(NPC, 606.3, -32.72, -235.54, 7, 0)
  275. MovementLoopAddLocation(NPC, 608.24, -34.12, -233.42, 7, 0)
  276. end
  277. --------------------------------------------------------------------------------------
  278. -- NPC Change Grid
  279. --------------------------------------------------------------------------------------
  280. function changegrid_Going_Up(NPC)
  281. SetGridID(NPC, 677951544)
  282. end
  283. function changegrid_Going_Down(NPC)
  284. SetGridID(NPC, 1548185851)
  285. end