9
3

Slaverjaw.lua 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. --[[
  2. Script Name : SpawnScripts/Caves/Slaverjaw.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.5.6
  5. :
  6. --]]
  7. function spawn(NPC)
  8. dmgMod = GetStr(NPC)/10
  9. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  10. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(30 + dmgMod))
  11. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(60 + dmgMod))
  12. waypoints(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function waypoints(NPC)
  18. MovementLoopAddLocation(NPC, 36.57, 37.21, -126.94, 1, 0)
  19. MovementLoopAddLocation(NPC, 41.11, 37.87, -97.86, 1, 0)
  20. MovementLoopAddLocation(NPC, 47.03, 38.03, -84.46, 1, 0)
  21. MovementLoopAddLocation(NPC, 43.58, 37.89, -75.54, 1, 0)
  22. MovementLoopAddLocation(NPC, 37.81, 37.87, -70.18, 1, 0)
  23. MovementLoopAddLocation(NPC, 26.93, 37.87, -68.61, 1, 0)
  24. MovementLoopAddLocation(NPC, 18.27, 37.87, -66.03, 1, 0)
  25. MovementLoopAddLocation(NPC, 8.86, 37.87, -57.67, 1, 0)
  26. MovementLoopAddLocation(NPC, 5.85, 37.2, -48.15, 1, 0)
  27. MovementLoopAddLocation(NPC, 8.11, 37.55, -40.98, 1, 0)
  28. MovementLoopAddLocation(NPC, 7.58, 37.87, -34.39, 1, 0)
  29. MovementLoopAddLocation(NPC, 1.81, 37.87, -26.32, 1, 0)
  30. MovementLoopAddLocation(NPC, -7, 37.87, -24.71, 1, 0)
  31. MovementLoopAddLocation(NPC, -6.91, 37.87, -34.57, 1, 0)
  32. MovementLoopAddLocation(NPC, -16.26, 37.87, -39.14, 1, 0)
  33. MovementLoopAddLocation(NPC, -8.51, 38.49, -74.12, 1, 0)
  34. MovementLoopAddLocation(NPC, -3.8, 37.87, -77.85, 1, 0)
  35. MovementLoopAddLocation(NPC, 0.02, 37.87, -78.75, 1, 0)
  36. MovementLoopAddLocation(NPC, 4.24, 37.87, -77.68, 1, 0)
  37. MovementLoopAddLocation(NPC, 26.4, 37.67, -102.15, 1, 0)
  38. MovementLoopAddLocation(NPC, 25.7, 38.44, -115.87, 1, 0)
  39. MovementLoopAddLocation(NPC, 22.86, 38.7, -121.11, 1, 0)
  40. MovementLoopAddLocation(NPC, 14.23, 37.21, -133.53, 1, 0)
  41. MovementLoopAddLocation(NPC, 2.24, 36.52, -133.07, 1, 0)
  42. MovementLoopAddLocation(NPC, -4.72, 32.68, -132.85, 1, 0)
  43. MovementLoopAddLocation(NPC, -8.65, 30.99, -129.37, 1, 0)
  44. MovementLoopAddLocation(NPC, -9.94, 29.6, -126.64, 1, 0)
  45. MovementLoopAddLocation(NPC, -9.91, 25.43, -120.51, 1, 0)
  46. MovementLoopAddLocation(NPC, -6.81, 20.35, -115.5, 1, 0)
  47. MovementLoopAddLocation(NPC, -8.79, 28.61, -124.67, 1, 0)
  48. MovementLoopAddLocation(NPC, -7.23, 31.7, -129.95, 1, 0)
  49. MovementLoopAddLocation(NPC, 0.71, 35.86, -133.05, 1, 0)
  50. MovementLoopAddLocation(NPC, 8.66, 37.01, -132.83, 1, 0)
  51. MovementLoopAddLocation(NPC, 11.89, 37.21, -132.74, 1, 0)
  52. MovementLoopAddLocation(NPC, 15.38, 37.64, -128.3, 1, 0)
  53. MovementLoopAddLocation(NPC, 15.05, 39.08, -121.91, 1, 0)
  54. MovementLoopAddLocation(NPC, 15, 39.1, -121.68, 1, 0)
  55. MovementLoopAddLocation(NPC, 22.08, 37.87, -112.78, 1, 0)
  56. MovementLoopAddLocation(NPC, 26.6, 37.87, -106, 1, 0)
  57. MovementLoopAddLocation(NPC, 26.64, 38.01, -91.84, 1, 0)
  58. MovementLoopAddLocation(NPC, 43.04, 37.89, -77.05, 1, 0)
  59. MovementLoopAddLocation(NPC, 43.33, 37.88, -70.29, 1, 0)
  60. MovementLoopAddLocation(NPC, 48.27, 37.96, -68.55, 1, 0)
  61. MovementLoopAddLocation(NPC, 55.59, 38.14, -71.23, 1, 0)
  62. MovementLoopAddLocation(NPC, 63.39, 37.66, -75.95, 1, 0)
  63. MovementLoopAddLocation(NPC, 66.83, 37.24, -76.77, 1, 0)
  64. MovementLoopAddLocation(NPC, 71.4, 36.43, -77.16, 1, 0)
  65. MovementLoopAddLocation(NPC, 76.41, 36.03, -74.39, 1, 0)
  66. MovementLoopAddLocation(NPC, 78.73, 35.42, -71.24, 1, 0)
  67. MovementLoopAddLocation(NPC, 79.97, 34.52, -66.01, 1, 0)
  68. MovementLoopAddLocation(NPC, 78.54, 31.35, -59.81, 1, 0)
  69. MovementLoopAddLocation(NPC, 75.16, 29.52, -56, 1, 0)
  70. MovementLoopAddLocation(NPC, 71.31, 28.38, -55.15, 1, 0)
  71. MovementLoopAddLocation(NPC, 67.78, 27.91, -55.53, 1, 0)
  72. MovementLoopAddLocation(NPC, 64.7, 26.89, -57.24, 1, 0)
  73. MovementLoopAddLocation(NPC, 58.91, 24.43, -67.18, 1, 0)
  74. MovementLoopAddLocation(NPC, 57.48, 24.25, -70.93, 1, 0)
  75. MovementLoopAddLocation(NPC, 61.59, 20.96, -78.33, 1, 0)
  76. MovementLoopAddLocation(NPC, 63.5, 18.3, -84.83, 1, 0)
  77. MovementLoopAddLocation(NPC, 58.25, 12.38, -89.27, 1, 0)
  78. MovementLoopAddLocation(NPC, 51.7, 12.38, -88.61, 1, 0)
  79. MovementLoopAddLocation(NPC, 18.36, 12.58, -102.12, 1, 0)
  80. MovementLoopAddLocation(NPC, 16.33, 12.87, -107.1, 1, 0)
  81. MovementLoopAddLocation(NPC, 13.94, 13.32, -109.99, 1, 0)
  82. MovementLoopAddLocation(NPC, 4.13, 12.14, -107.8, 1, 0)
  83. MovementLoopAddLocation(NPC, 4.34, 12.1, -101.98, 1, 0)
  84. MovementLoopAddLocation(NPC, 3.05, 12.15, -99.36, 1, 0)
  85. MovementLoopAddLocation(NPC, -0.13, 12.06, -97.85, 1, 0)
  86. MovementLoopAddLocation(NPC, -11.76, 12.03, -95.61, 1, 0)
  87. MovementLoopAddLocation(NPC, -14.92, 12.07, -92.46, 1, 0)
  88. MovementLoopAddLocation(NPC, -17.02, 12.01, -85.38, 1, 0)
  89. MovementLoopAddLocation(NPC, -15.74, 12.08, -74.93, 1, 0)
  90. MovementLoopAddLocation(NPC, -11.13, 13.03, -70.26, 1, 0)
  91. MovementLoopAddLocation(NPC, 5.41, 13.84, -67.08, 1, 0)
  92. MovementLoopAddLocation(NPC, 21.2, 12.36, -64.56, 1, 0)
  93. MovementLoopAddLocation(NPC, 24.67, 12.38, -65.91, 1, 0)
  94. MovementLoopAddLocation(NPC, 24.63, 12.38, -68.44, 1, 0)
  95. MovementLoopAddLocation(NPC, 15.54, 12.38, -77.61, 1, 0)
  96. MovementLoopAddLocation(NPC, 10.73, 14.04, -91.38, 1, 0)
  97. MovementLoopAddLocation(NPC, 13.14, 13.35, -96.48, 1, 0)
  98. MovementLoopAddLocation(NPC, 17.57, 12.69, -102.3, 1, 0)
  99. MovementLoopAddLocation(NPC, 18.5, 12.45, -109.05, 1, 0)
  100. MovementLoopAddLocation(NPC, 19.08, 12.38, -114.32, 1, 0)
  101. MovementLoopAddLocation(NPC, 21.1, 13.43, -116.34, 1, 0)
  102. MovementLoopAddLocation(NPC, 22.05, 14.77, -118.93, 1, 0)
  103. MovementLoopAddLocation(NPC, 24.57, 16.65, -118.85, 1, 0)
  104. MovementLoopAddLocation(NPC, 28.82, 16.14, -117.68, 1, 0)
  105. MovementLoopAddLocation(NPC, 32.8, 12.5, -115.71, 1, 0)
  106. MovementLoopAddLocation(NPC, 43.11, 12.38, -112.51, 1, 0)
  107. MovementLoopAddLocation(NPC, 55.32, 13, -113.34, 1, 0)
  108. MovementLoopAddLocation(NPC, 59.87, 12.31, -104.4, 1, 0)
  109. MovementLoopAddLocation(NPC, 64.04, 14.57, -96.08, 1, 0)
  110. MovementLoopAddLocation(NPC, 65.46, 16.51, -89.44, 1, 0)
  111. MovementLoopAddLocation(NPC, 64.38, 18.79, -83.37, 1, 0)
  112. MovementLoopAddLocation(NPC, 63.31, 20.2, -79.68, 1, 0)
  113. MovementLoopAddLocation(NPC, 57.53, 23.82, -72.41, 1, 0)
  114. MovementLoopAddLocation(NPC, 58.85, 24.43, -68.02, 1, 0)
  115. MovementLoopAddLocation(NPC, 62.05, 25.56, -61.39, 1, 0)
  116. MovementLoopAddLocation(NPC, 65.8, 27.32, -56.49, 1, 0)
  117. MovementLoopAddLocation(NPC, 70.08, 28.2, -54.7, 1, 0)
  118. MovementLoopAddLocation(NPC, 73.24, 28.8, -55.07, 1, 0)
  119. MovementLoopAddLocation(NPC, 76.34, 30.21, -57.41, 1, 0)
  120. MovementLoopAddLocation(NPC, 80.15, 33.7, -63.74, 1, 0)
  121. MovementLoopAddLocation(NPC, 78.98, 35.45, -71.46, 1, 0)
  122. MovementLoopAddLocation(NPC, 73.3, 36.21, -75.84, 1, 0)
  123. MovementLoopAddLocation(NPC, 68.61, 36.94, -77.36, 1, 0)
  124. MovementLoopAddLocation(NPC, 62.77, 37.75, -75.18, 1, 0)
  125. MovementLoopAddLocation(NPC, 53.27, 38.02, -69.93, 1, 0)
  126. MovementLoopAddLocation(NPC, 47.28, 37.89, -67.34, 1, 0)
  127. MovementLoopAddLocation(NPC, 42.73, 37.88, -68.44, 1, 0)
  128. MovementLoopAddLocation(NPC, 36.78, 38.38, -80.85, 1, 0)
  129. MovementLoopAddLocation(NPC, 36.52, 38.13, -99.37, 1, 0)
  130. MovementLoopAddLocation(NPC, 39.25, 38.04, -102.13, 1, 0)
  131. MovementLoopAddLocation(NPC, 46.91, 37.87, -87.93, 1, 0)
  132. MovementLoopAddLocation(NPC, 44.47, 37.91, -77.36, 1, 0)
  133. MovementLoopAddLocation(NPC, 37.02, 37.87, -69.1, 1, 0)
  134. MovementLoopAddLocation(NPC, 27.3, 37.87, -68.59, 1, 0)
  135. MovementLoopAddLocation(NPC, 17.78, 37.87, -65.07, 1, 0)
  136. MovementLoopAddLocation(NPC, 8.14, 37.87, -56.88, 1, 0)
  137. MovementLoopAddLocation(NPC, 6.24, 37.19, -45.11, 1, 0)
  138. MovementLoopAddLocation(NPC, 8.46, 37.48, -41.06, 1, 0)
  139. MovementLoopAddLocation(NPC, 7.6, 37.87, -33.86, 1, 0)
  140. MovementLoopAddLocation(NPC, -5.93, 37.87, -24.27, 1, 0)
  141. MovementLoopAddLocation(NPC, -6.75, 37.87, -24.94, 1, 0)
  142. MovementLoopAddLocation(NPC, -8.01, 37.88, -30.01, 1, 0)
  143. MovementLoopAddLocation(NPC, -7.06, 37.87, -33.12, 1, 0)
  144. MovementLoopAddLocation(NPC, -15.65, 37.87, -38.99, 1, 0)
  145. MovementLoopAddLocation(NPC, -16.91, 37.87, -44.35, 1, 0)
  146. MovementLoopAddLocation(NPC, -9.16, 38.46, -73.37, 1, 0)
  147. MovementLoopAddLocation(NPC, -4.32, 37.87, -77.37, 1, 0)
  148. MovementLoopAddLocation(NPC, 5.1, 37.87, -78.4, 1, 0)
  149. MovementLoopAddLocation(NPC, 13.73, 37.87, -84.36, 1, 0)
  150. MovementLoopAddLocation(NPC, 25.74, 37.61, -102.12, 1, 0)
  151. MovementLoopAddLocation(NPC, 26.36, 37.87, -109.41, 1, 0)
  152. MovementLoopAddLocation(NPC, 25.21, 38.53, -116.34, 1, 0)
  153. MovementLoopAddLocation(NPC, 21.49, 38.64, -122.25, 1, 0)
  154. MovementLoopAddLocation(NPC, 19.53, 37.21, -128.32, 1, 0)
  155. MovementLoopAddLocation(NPC, 10.06, 37.16, -133.28, 1, 0)
  156. MovementLoopAddLocation(NPC, 3.25, 36.58, -132.68, 1, 0, "Action")
  157. MovementLoopAddLocation(NPC, 3.25, 36.58, -132.68, 1, 20, "Action")
  158. end
  159. function Action(NPC)
  160. Despawn(NPC)
  161. end