aruinsskulkerSwimmer.lua 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/aruinsskulkerSwimmer.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.15 03:10:33
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/CatalogueQuestUpdates.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. AddTimer(NPC, 6000, "waypoints")
  13. end
  14. function hailed(NPC, Spawn)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function waypoints(NPC)
  20. if GetSpawnLocationID(NPC) ==133778313 then
  21. MovementLoopAddLocation(NPC, 1037.24, -24.83, -733.79, 2, 0)
  22. MovementLoopAddLocation(NPC, 1035.23, -25.26, -727.73, 2, 0)
  23. MovementLoopAddLocation(NPC, 1035.55, -25.47, -724.39, 2, 15)
  24. MovementLoopAddLocation(NPC, 1036.12, -25.52, -723.5, 2, 0)
  25. MovementLoopAddLocation(NPC, 1036.4, -25.46, -724.52, 2, 0)
  26. MovementLoopAddLocation(NPC, 1035.65, -25.01, -731.6, 2, 0)
  27. MovementLoopAddLocation(NPC, 1037.01, -24.77, -735.03, 2, 0)
  28. MovementLoopAddLocation(NPC, 1043.98, -24.6, -734.9, 2, 15)
  29. MovementLoopAddLocation(NPC, 1049.38, -24.62, -730.51, 2, 0)
  30. MovementLoopAddLocation(NPC, 1057.37, -24.84, -724.94, 2, 0)
  31. MovementLoopAddLocation(NPC, 1066.82, -25.08, -722.17, 2, 0)
  32. MovementLoopAddLocation(NPC, 1075.97, -25.11, -724.01, 2, 15)
  33. MovementLoopAddLocation(NPC, 1080.54, -24.88, -717.87, 2, 0)
  34. MovementLoopAddLocation(NPC, 1083.76, -24.83, -710.87, 2, 0)
  35. MovementLoopAddLocation(NPC, 1091.62, -24.51, -704.87, 2, 0)
  36. MovementLoopAddLocation(NPC, 1093.98, -24.07, -703.38, 2, 0)
  37. MovementLoopAddLocation(NPC, 1099.49, -22.64, -706.91, 2, 0)
  38. MovementLoopAddLocation(NPC, 1100.57, -21.48, -714.32, 2, 0)
  39. MovementLoopAddLocation(NPC, 1101.52, -20.9, -713.68, 2, 15)
  40. MovementLoopAddLocation(NPC, 1105.31, -18.83, -711.79, 2, 0)
  41. MovementLoopAddLocation(NPC, 1105.31, -18.83, -711.79, 2, 15)
  42. MovementLoopAddLocation(NPC, 1106.07, -18.64, -710.4, 2, 0)
  43. MovementLoopAddLocation(NPC, 1102.01, -21.49, -706.23, 2, 0)
  44. MovementLoopAddLocation(NPC, 1096.89, -23.73, -707.18, 2, 0)
  45. MovementLoopAddLocation(NPC, 1095.16, -24.03, -707.91, 2, 0)
  46. MovementLoopAddLocation(NPC, 1085.14, -24.7, -711.23, 2, 0)
  47. MovementLoopAddLocation(NPC, 1082.19, -24.77, -715.79, 2, 0)
  48. MovementLoopAddLocation(NPC, 1072.61, -25.28, -718.29, 2, 0)
  49. MovementLoopAddLocation(NPC, 1067.44, -25.26, -719.92, 2, 15)
  50. MovementLoopAddLocation(NPC, 1061.51, -24.85, -723.46, 2, 0)
  51. MovementLoopAddLocation(NPC, 1055.78, -25.4, -720.66, 2, 0)
  52. MovementLoopAddLocation(NPC, 1048.99, -25.43, -722.11, 2, 0)
  53. MovementLoopAddLocation(NPC, 1043.25, -25.36, -720.85, 2, 0)
  54. MovementLoopAddLocation(NPC, 1036.89, -25.23, -719.75, 2, 0)
  55. MovementLoopAddLocation(NPC, 1031.45, -25.23, -729.75, 2, 15)
  56. elseif GetSpawnLocationID(NPC) ==133778756 then
  57. MovementLoopAddLocation(NPC, 1004.47, -33.4, -937.5, 2, 0)
  58. MovementLoopAddLocation(NPC, 1012.81, -33.4, -935.75, 2, 0)
  59. MovementLoopAddLocation(NPC, 1023.98, -32.46, -935.99, 2, 0)
  60. MovementLoopAddLocation(NPC, 1032.3, -32.46, -937.58, 2, 0)
  61. MovementLoopAddLocation(NPC, 1037.3, -32.46, -948.44, 2, 15)
  62. MovementLoopAddLocation(NPC, 1033.47, -32.46, -947.37, 2, 0)
  63. MovementLoopAddLocation(NPC, 1026.37, -32.46, -944.33, 2, 0)
  64. MovementLoopAddLocation(NPC, 1017.17, -32.46, -940.32, 2, 0)
  65. MovementLoopAddLocation(NPC, 1007.79, -32.46, -936.25, 2, 0)
  66. MovementLoopAddLocation(NPC, 1000.24, -33.08, -929.93, 2, 0)
  67. MovementLoopAddLocation(NPC, 993.23, -33.08, -926.2, 2, 0)
  68. MovementLoopAddLocation(NPC, 986.15, -33.08, -924.57, 2, 0)
  69. MovementLoopAddLocation(NPC, 976.65, -33.52, -925.53, 2, 0)
  70. MovementLoopAddLocation(NPC, 965.94, -32.94, -927.03, 2, 0)
  71. MovementLoopAddLocation(NPC, 958.29, -33.26, -923.24, 2, 0)
  72. MovementLoopAddLocation(NPC, 955.75, -33.22, -913.98, 2, 15)
  73. MovementLoopAddLocation(NPC, 959.54, -34.05, -912.13, 2, 0)
  74. MovementLoopAddLocation(NPC, 966.26, -34.27, -916.26, 2, 0)
  75. MovementLoopAddLocation(NPC, 972.62, -33.14, -921.94, 2, 0)
  76. MovementLoopAddLocation(NPC, 983.31, -31.66, -932.71, 2, 0)
  77. MovementLoopAddLocation(NPC, 992.02, -33.97, -940.34, 2, 0)
  78. MovementLoopAddLocation(NPC, 1001.48, -32.75, -942.54, 2, 0)
  79. MovementLoopAddLocation(NPC, 992.02, -33.97, -940.34, 2, 0)
  80. MovementLoopAddLocation(NPC, 983.31, -31.66, -932.71, 2, 0)
  81. MovementLoopAddLocation(NPC, 972.62, -33.14, -921.94, 2, 0)
  82. MovementLoopAddLocation(NPC, 966.26, -34.27, -916.26, 2, 0)
  83. MovementLoopAddLocation(NPC, 959.54, -34.05, -912.13, 2, 0)
  84. MovementLoopAddLocation(NPC, 955.75, -33.22, -913.98, 2, 15)
  85. MovementLoopAddLocation(NPC, 958.29, -33.26, -923.24, 2, 0)
  86. MovementLoopAddLocation(NPC, 965.94, -32.94, -927.03, 2, 0)
  87. MovementLoopAddLocation(NPC, 976.65, -33.52, -925.53, 2, 0)
  88. MovementLoopAddLocation(NPC, 986.15, -33.08, -924.57, 2, 0)
  89. MovementLoopAddLocation(NPC, 993.23, -33.08, -926.2, 2, 0)
  90. MovementLoopAddLocation(NPC, 1000.24, -33.08, -929.93, 2, 0)
  91. MovementLoopAddLocation(NPC, 1007.79, -32.46, -936.25, 2, 0)
  92. MovementLoopAddLocation(NPC, 1017.17, -32.46, -940.32, 2, 0)
  93. MovementLoopAddLocation(NPC, 1026.37, -32.46, -944.33, 2, 0)
  94. MovementLoopAddLocation(NPC, 1033.47, -32.46, -947.37, 2, 0)
  95. MovementLoopAddLocation(NPC, 1037.3, -32.46, -948.44, 2, 15)
  96. MovementLoopAddLocation(NPC, 1032.3, -32.46, -937.58, 2, 0)
  97. MovementLoopAddLocation(NPC, 1023.98, -32.46, -935.99, 2, 0)
  98. MovementLoopAddLocation(NPC, 1012.81, -33.4, -935.75, 2, 0)
  99. MovementLoopAddLocation(NPC, 1004.47, -33.4, -937.5, 2, 0)
  100. elseif GetSpawnLocationID(NPC) ==133778753 then
  101. MovementLoopAddLocation(NPC, 936.78, -31.74, -902.6, 2, 15)
  102. MovementLoopAddLocation(NPC, 943.1, -33.83, -907.91, 2, 0)
  103. MovementLoopAddLocation(NPC, 950.79, -34.17, -913.26, 2, 15)
  104. MovementLoopAddLocation(NPC, 950.43, -36.08, -918.87, 2, 0)
  105. MovementLoopAddLocation(NPC, 956.78, -30.99, -921.94, 2, 0)
  106. MovementLoopAddLocation(NPC, 971.1, -33.94, -920.07, 2, 0)
  107. MovementLoopAddLocation(NPC, 974.73, -34.29, -920.03, 2, 15)
  108. MovementLoopAddLocation(NPC, 982.33, -30.74, -910.45, 2, 0)
  109. MovementLoopAddLocation(NPC, 987.22, -26.88, -902.88, 2, 0)
  110. MovementLoopAddLocation(NPC, 987.89, -25.96, -897.45, 2, 0)
  111. MovementLoopAddLocation(NPC, 985.4, -24.18, -878.68, 2, 15)
  112. MovementLoopAddLocation(NPC, 980.13, -24.66, -878.19, 2, 0)
  113. MovementLoopAddLocation(NPC, 964.83, -26.84, -886.18, 2, 0)
  114. MovementLoopAddLocation(NPC, 950.18, -31.29, -896.21, 2, 0)
  115. MovementLoopAddLocation(NPC, 937.38, -33.51, -904.17, 2, 15)
  116. MovementLoopAddLocation(NPC, 932.81, -32.32, -898.3, 2, 0)
  117. MovementLoopAddLocation(NPC, 930.09, -31.8, -893.23, 2, 0)
  118. MovementLoopAddLocation(NPC, 930.09, -31.8, -893.23, 2, 15)
  119. MovementLoopAddLocation(NPC, 956.36, -32.88, -916.91, 2, 0)
  120. MovementLoopAddLocation(NPC, 984.11, -38.21, -934.89, 2, 0)
  121. MovementLoopAddLocation(NPC, 1007.02, -33.72, -943.5, 2, 2)
  122. MovementLoopAddLocation(NPC, 1011.12, -33.38, -944.11, 2, 15)
  123. MovementLoopAddLocation(NPC, 1012.81, -33.25, -943.96, 2, 0)
  124. MovementLoopAddLocation(NPC, 1015.45, -32.73, -939.49, 2, 0)
  125. MovementLoopAddLocation(NPC, 1005.7, -34.54, -935.1, 2, 0)
  126. MovementLoopAddLocation(NPC, 998.38, -36.05, -932.48, 2, 0)
  127. MovementLoopAddLocation(NPC, 989.02, -37.24, -930.72, 2, 0)
  128. MovementLoopAddLocation(NPC, 982.51, -38.18, -931.22, 2, 0)
  129. MovementLoopAddLocation(NPC, 975.69, -36.08, -928.67, 2, 0)
  130. MovementLoopAddLocation(NPC, 968.35, -34.21, -920.71, 2, 0)
  131. MovementLoopAddLocation(NPC, 961.44, -31.79, -915.96, 2, 0)
  132. MovementLoopAddLocation(NPC, 945.07, -31.91, -908.23, 2, 0)
  133. MovementLoopAddLocation(NPC, 936.86, -32.63, -899.76, 2, 15)
  134. MovementLoopAddLocation(NPC, 945.07, -31.91, -908.23, 2, 0)
  135. MovementLoopAddLocation(NPC, 961.44, -31.79, -915.96, 2, 0)
  136. MovementLoopAddLocation(NPC, 968.35, -34.21, -920.71, 2, 0)
  137. MovementLoopAddLocation(NPC, 975.69, -36.08, -928.67, 2, 0)
  138. MovementLoopAddLocation(NPC, 982.51, -38.18, -931.22, 2, 0)
  139. MovementLoopAddLocation(NPC, 989.02, -37.24, -930.72, 2, 0)
  140. MovementLoopAddLocation(NPC, 998.38, -36.05, -932.48, 2, 0)
  141. MovementLoopAddLocation(NPC, 1005.7, -34.54, -935.1, 2, 0)
  142. MovementLoopAddLocation(NPC, 1015.45, -32.73, -939.49, 2, 0)
  143. MovementLoopAddLocation(NPC, 1012.81, -33.25, -943.96, 2, 0)
  144. MovementLoopAddLocation(NPC, 1011.12, -33.38, -944.11, 2, 15)
  145. MovementLoopAddLocation(NPC, 1007.02, -33.72, -943.5, 2, 2)
  146. MovementLoopAddLocation(NPC, 984.11, -38.21, -934.89, 2, 0)
  147. MovementLoopAddLocation(NPC, 956.36, -32.88, -916.91, 2, 0)
  148. MovementLoopAddLocation(NPC, 930.09, -31.8, -893.23, 2, 15)
  149. MovementLoopAddLocation(NPC, 930.09, -31.8, -893.23, 2, 0)
  150. MovementLoopAddLocation(NPC, 932.81, -32.32, -898.3, 2, 0)
  151. MovementLoopAddLocation(NPC, 937.38, -33.51, -904.17, 2, 15)
  152. MovementLoopAddLocation(NPC, 950.18, -31.29, -896.21, 2, 0)
  153. MovementLoopAddLocation(NPC, 964.83, -26.84, -886.18, 2, 0)
  154. MovementLoopAddLocation(NPC, 980.13, -24.66, -878.19, 2, 0)
  155. MovementLoopAddLocation(NPC, 985.4, -24.18, -878.68, 2, 15)
  156. MovementLoopAddLocation(NPC, 987.89, -25.96, -897.45, 2, 0)
  157. MovementLoopAddLocation(NPC, 987.22, -26.88, -902.88, 2, 0)
  158. MovementLoopAddLocation(NPC, 982.33, -30.74, -910.45, 2, 0)
  159. MovementLoopAddLocation(NPC, 974.73, -34.29, -920.03, 2, 15)
  160. MovementLoopAddLocation(NPC, 971.1, -33.94, -920.07, 2, 0)
  161. MovementLoopAddLocation(NPC, 956.78, -30.99, -921.94, 2, 0)
  162. MovementLoopAddLocation(NPC, 950.43, -36.08, -918.87, 2, 0)
  163. MovementLoopAddLocation(NPC, 950.79, -34.17, -913.26, 2, 15)
  164. MovementLoopAddLocation(NPC, 943.1, -33.83, -907.91, 2, 0)
  165. MovementLoopAddLocation(NPC, 936.78, -31.74, -902.6, 2, 15)
  166. end
  167. end