apatrollingSabertooth.lua 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. --[[
  2. Script Name : SpawnScripts/Blackburrow/apatrollingSabertooth.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.09 10:07:29
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. VoiceBox(NPC)
  11. end
  12. function VoiceBox(NPC)
  13. local choice = MakeRandomInt(1,2)
  14. if choice == 1 then
  15. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGnoll1.lua")
  16. elseif choice == 2 then
  17. dofile("SpawnScripts/Generic/MonsterCallouts/SabertoothGnoll2.lua")
  18. end
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end
  26. function waypoints(NPC)
  27. if GetSpawnLocationID(NPC)==413991 then
  28. MovementLoopAddLocation(NPC, 20.12, 0, 10.8, 2, 0)
  29. MovementLoopAddLocation(NPC, 26.61, 0, 8.12, 2, 0)
  30. MovementLoopAddLocation(NPC, 34.39, 0.16, 6.38, 2, 0)
  31. MovementLoopAddLocation(NPC, 35.13, 0.01, 9.7, 2, 0)
  32. MovementLoopAddLocation(NPC, 32.61, 0, 12.02, 2, 0)
  33. MovementLoopAddLocation(NPC, 23.72, 0, 14.58, 2, 0)
  34. MovementLoopAddLocation(NPC, 12.19, 0.08, 12.84, 2, 0)
  35. MovementLoopAddLocation(NPC, 8.34, 0.04, 11.33, 2, 0)
  36. MovementLoopAddLocation(NPC, -0.3, 0, 10.59, 2, 0)
  37. MovementLoopAddLocation(NPC, -12.51, 0, 8.42, 2, 0)
  38. MovementLoopAddLocation(NPC, -22.08, 0, 8.12, 2, 0)
  39. MovementLoopAddLocation(NPC, -22.16, 0, 10.57, 2, 0)
  40. MovementLoopAddLocation(NPC, -12.75, 0, 9.89, 2, 0)
  41. MovementLoopAddLocation(NPC, -8.48, 0, 10.23, 2, 0)
  42. MovementLoopAddLocation(NPC, -6.69, 0, 11.79, 2, 0)
  43. MovementLoopAddLocation(NPC, -0.93, 0, 12.31, 2, 0)
  44. MovementLoopAddLocation(NPC, 2.45, 0, 8.24, 2, 0)
  45. MovementLoopAddLocation(NPC, 3.85, 0, 5.62, 2, 0)
  46. MovementLoopAddLocation(NPC, 10.18, 0, 5.79, 2, 0)
  47. MovementLoopAddLocation(NPC, 17.36, 0, 6.24, 2, 0)
  48. MovementLoopAddLocation(NPC, 19.92, 0.66, 1.08, 2, 0)
  49. MovementLoopAddLocation(NPC, 16.13, 0.38, -6.98, 2, 0)
  50. MovementLoopAddLocation(NPC, 13.71, 0.55, -16.49, 2, 0)
  51. MovementLoopAddLocation(NPC, 14.55, 0.55, -17.13, 2, 0)
  52. MovementLoopAddLocation(NPC, 18.53, 0.9, -2.75, 2, 0)
  53. MovementLoopAddLocation(NPC, 19.82, 0.67, 1.14, 2, 0)
  54. MovementLoopAddLocation(NPC, 17.38, 0.03, 5.61, 2, 0)
  55. MovementLoopAddLocation(NPC, 15.25, 0, 7.27, 2, 0)
  56. MovementLoopAddLocation(NPC, 4.77, 0, 5.85, 2, 0)
  57. MovementLoopAddLocation(NPC, -2.55, 0, 12.93, 2, 0)
  58. MovementLoopAddLocation(NPC, -10.78, 0.17, 10.46, 2, 0)
  59. MovementLoopAddLocation(NPC, -21.19, 0.28, 10.59, 2, 0)
  60. MovementLoopAddLocation(NPC, -21.74, 0, 8.93, 2, 0)
  61. MovementLoopAddLocation(NPC, -9.9, 0, 8.97, 2, 0)
  62. MovementLoopAddLocation(NPC, -2.68, 0, 10.53, 2, 0)
  63. MovementLoopAddLocation(NPC, 9.42, 0, 11.13, 2, 0)
  64. MovementLoopAddLocation(NPC, 12.74, 0.12, 12.96, 2, 0)
  65. MovementLoopAddLocation(NPC, 23.37, 0, 14.55, 2, 0)
  66. MovementLoopAddLocation(NPC, 34.09, 0.03, 11.31, 2, 0)
  67. MovementLoopAddLocation(NPC, 35.18, 0.23, 7.37, 2, 0)
  68. MovementLoopAddLocation(NPC, 32.96, 0, 5.36, 2, 0)
  69. MovementLoopAddLocation(NPC, 18.69, 0, 9.45, 2, 0)
  70. MovementLoopAddLocation(NPC, 12.03, 0, 5.12, 2, 0)
  71. MovementLoopAddLocation(NPC, 12.36, 0.1, -0.96, 2, 0)
  72. MovementLoopAddLocation(NPC, 16.56, 0.39, -7.55, 2, 0)
  73. MovementLoopAddLocation(NPC, 8.51, 0.46, -18.08, 2, 0)
  74. MovementLoopAddLocation(NPC, -5.32, 0.54, -12.8, 2, 0)
  75. MovementLoopAddLocation(NPC, -4.12, 0.36, -3.47, 2, 0)
  76. MovementLoopAddLocation(NPC, 0.14, 0, 0.04, 2, 0)
  77. MovementLoopAddLocation(NPC, 5.96, 0, -6.56, 2, 0)
  78. MovementLoopAddLocation(NPC, 9.27, 0, -8.02, 2, 0)
  79. MovementLoopAddLocation(NPC, 12.09, 0, -4.22, 2, 0)
  80. MovementLoopAddLocation(NPC, 18.88, 0.45, -5.67, 2, 0)
  81. MovementLoopAddLocation(NPC, 19.62, 0.55, -11.38, 2, 0)
  82. MovementLoopAddLocation(NPC, 16.04, 0.55, -16.35, 2, 0)
  83. MovementLoopAddLocation(NPC, 19.58, 0.52, -8.57, 2, 0)
  84. MovementLoopAddLocation(NPC, 17.29, 0.61, -4.24, 2, 0)
  85. MovementLoopAddLocation(NPC, 13.15, 0, -4.32, 2, 0)
  86. MovementLoopAddLocation(NPC, 8.34, 0, -8.3, 2, 0)
  87. MovementLoopAddLocation(NPC, 0.8, 0, -1.57, 2, 0)
  88. MovementLoopAddLocation(NPC, -1.69, 0, 0.11, 2, 0)
  89. MovementLoopAddLocation(NPC, -4.07, 0.15, -1.67, 2, 0)
  90. MovementLoopAddLocation(NPC, -5.23, 0.46, -10.57, 2, 0)
  91. MovementLoopAddLocation(NPC, -3.11, 0.42, -14.94, 2, 0)
  92. MovementLoopAddLocation(NPC, 4.93, 0.57, -19.66, 2, 0)
  93. MovementLoopAddLocation(NPC, 10.42, 0.35, -15.81, 2, 0)
  94. MovementLoopAddLocation(NPC, 17.03, 0.41, -7.99, 2, 0)
  95. MovementLoopAddLocation(NPC, 13.49, 0.21, -2.44, 2, 0)
  96. MovementLoopAddLocation(NPC, 11.61, 0.01, 1.08, 2, 0)
  97. MovementLoopAddLocation(NPC, 12.37, 0, 6.74, 2, 0)
  98. MovementLoopAddLocation(NPC, 18.96, 0, 10.71, 2, 0)
  99. elseif GetSpawnLocationID(NPC)==133771525 then
  100. MovementLoopAddLocation(NPC, -6.42, 0.83, -19.5, 2, 0)
  101. MovementLoopAddLocation(NPC, -6.42, 0.83, -19.5, 2, 2)
  102. MovementLoopAddLocation(NPC, -4.47, 0.56, -18.88, 2, 0)
  103. MovementLoopAddLocation(NPC, -11.27, 0.88, -20.01, 2, 0)
  104. MovementLoopAddLocation(NPC, -10.92, 0.89, -21.78, 2, 0)
  105. MovementLoopAddLocation(NPC, -7.09, -1.49, -27.61, 2, 0)
  106. MovementLoopAddLocation(NPC, 0.84, -3.91, -31.74, 2, 0)
  107. MovementLoopAddLocation(NPC, 1.62, -4.59, -35.67, 2, 0)
  108. MovementLoopAddLocation(NPC, -1.06, -5.92, -40.25, 2, 0)
  109. MovementLoopAddLocation(NPC, -5.93, -7.53, -39.77, 2, 0)
  110. MovementLoopAddLocation(NPC, -8.27, -8.17, -38.92, 2, 0)
  111. MovementLoopAddLocation(NPC, -11.15, -9.66, -34.99, 2, 0)
  112. MovementLoopAddLocation(NPC, -14.48, -11.3, -28.86, 2, 2)
  113. MovementLoopAddLocation(NPC, -15.11, -11.61, -27.12, 2, 0)
  114. MovementLoopAddLocation(NPC, -13.5, -10.89, -30.32, 2, 0)
  115. MovementLoopAddLocation(NPC, -9.32, -8.46, -38.66, 2, 0)
  116. MovementLoopAddLocation(NPC, -4.7, -6.95, -40.14, 2, 0)
  117. MovementLoopAddLocation(NPC, -0.26, -5.55, -39.2, 2, 0)
  118. MovementLoopAddLocation(NPC, 1.62, -4.52, -35.35, 2, 0)
  119. MovementLoopAddLocation(NPC, 1.05, -3.9, -31.62, 2, 0)
  120. MovementLoopAddLocation(NPC, -4.65, -2.22, -28.45, 2, 0)
  121. MovementLoopAddLocation(NPC, -8.75, -0.7, -26.43, 2, 0)
  122. MovementLoopAddLocation(NPC, -10.83, 0.89, -21.5, 2, 0)
  123. MovementLoopAddLocation(NPC, -9.22, 0.9, -20.72, 2, 0)
  124. elseif GetSpawnLocationID(NPC)==413973 then
  125. MovementLoopAddLocation(NPC, -39.57, 3.28, -22.96, 2, 0)
  126. MovementLoopAddLocation(NPC, -35.21, 3.87, -24.93, 2, 0)
  127. MovementLoopAddLocation(NPC, -31.49, 4.82, -25.17, 2, 0)
  128. MovementLoopAddLocation(NPC, -24.63, 6.28, -24.68, 2, 0)
  129. MovementLoopAddLocation(NPC, -22.69, 6.74, -22.41, 2, 0)
  130. MovementLoopAddLocation(NPC, -20.07, 7.25, -18.51, 2, 2)
  131. MovementLoopAddLocation(NPC, -19.47, 7.32, -16.33, 2, 0)
  132. MovementLoopAddLocation(NPC, -21.69, 6.92, -21.03, 2, 0)
  133. MovementLoopAddLocation(NPC, -23.41, 6.58, -23.76, 2, 0)
  134. MovementLoopAddLocation(NPC, -25.7, 6, -24.59, 2, 0)
  135. MovementLoopAddLocation(NPC, -32.66, 4.56, -24.94, 2, 0)
  136. MovementLoopAddLocation(NPC, -37.9, 3.48, -23.71, 2, 0)
  137. MovementLoopAddLocation(NPC, -42.15, 2.95, -20.83, 2, 0)
  138. MovementLoopAddLocation(NPC, -43.78, 2.34, -18.28, 2, 0)
  139. MovementLoopAddLocation(NPC, -44.22, 0.57, -10.62, 2, 2)
  140. MovementLoopAddLocation(NPC, -42.9, 0.18, -8.78, 2, 0)
  141. MovementLoopAddLocation(NPC, -44.15, 0.71, -11.73, 2, 0)
  142. MovementLoopAddLocation(NPC, -44.37, 1.95, -16.68, 2, 0)
  143. MovementLoopAddLocation(NPC, -42.79, 2.85, -20.63, 2, 0)
  144. end
  145. end