Gloomstalker.lua 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. --[[
  2. Script Name : SpawnScripts/TheSprawl_Classic/Gloomstalker.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.11.30 09:11:25
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. dmgMod = GetStr(NPC)/10
  10. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  11. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(30 + dmgMod))
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(60 + dmgMod))
  13. AddTimer(NPC, 6000, "waypoints")
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function waypoints(NPC)
  19. if MakeRandomInt(1,2)==1 then
  20. MovementLoopAddLocation(NPC, -38.74, -2.52, 87.67, 2, 0)
  21. MovementLoopAddLocation(NPC, -33.54, -2.52, 88.5, 2, 0)
  22. MovementLoopAddLocation(NPC, -29.62, -2.47, 87.76, 2, 0)
  23. MovementLoopAddLocation(NPC, -11.59, -1.49, 79.68, 2, 0)
  24. MovementLoopAddLocation(NPC, -8.34, -1.64, 76.63, 2, 0)
  25. MovementLoopAddLocation(NPC, -7.96, -1.64, 72.26, 2, 0)
  26. MovementLoopAddLocation(NPC, -7.96, -2.66, 59.22, 2, 0)
  27. MovementLoopAddLocation(NPC, -9.61, -2.52, 55.96, 2, 0)
  28. MovementLoopAddLocation(NPC, -18.14, -2.52, 47.07, 2, 0)
  29. MovementLoopAddLocation(NPC, -19.12, -2.52, 41.57, 2, 0)
  30. MovementLoopAddLocation(NPC, -22.28, -2.58, 35.49, 2, 0)
  31. MovementLoopAddLocation(NPC, -23.19, -2.53, 25.09, 2, 0)
  32. MovementLoopAddLocation(NPC, -13.72, -2.53, 14.36, 2, 0)
  33. MovementLoopAddLocation(NPC, -13.21, -2.53, 5.4, 2, 0)
  34. MovementLoopAddLocation(NPC, -14.49, -2.53, -4.58, 2, 0)
  35. MovementLoopAddLocation(NPC, -8.36, -2.64, -18.18, 2, 0)
  36. MovementLoopAddLocation(NPC, -0.92, -2.64, -18.87, 2, 0)
  37. MovementLoopAddLocation(NPC, 3.23, -2.67, -18.1, 2, 0)
  38. MovementLoopAddLocation(NPC, 9.54, -2.67, -14.86, 2, 0)
  39. MovementLoopAddLocation(NPC, 14.38, -2.63, -13.34, 2, 0)
  40. MovementLoopAddLocation(NPC, 20.95, -2.57, -12.16, 2, 0)
  41. MovementLoopAddLocation(NPC, 28.1, -2.55, -15.4, 2, 0)
  42. MovementLoopAddLocation(NPC, 33.25, -2.55, -20.54, 2, 0)
  43. MovementLoopAddLocation(NPC, 40.08, -2.6, -21.65, 2, 0)
  44. MovementLoopAddLocation(NPC, 46.24, -2.67, -28.85, 2, 0)
  45. MovementLoopAddLocation(NPC, 45.55, -2.56, -37.45, 2, 0)
  46. MovementLoopAddLocation(NPC, 40.62, -2.56, -46.65, 2, 0)
  47. MovementLoopAddLocation(NPC, 35, -2.5, -50.42, 2, 0)
  48. MovementLoopAddLocation(NPC, 27.65, -2.54, -53.08, 2, 0)
  49. MovementLoopAddLocation(NPC, -0.13, -2.51, -55.4, 2, 0)
  50. MovementLoopAddLocation(NPC, -22.74, -2.65, -51.22, 2, 0)
  51. MovementLoopAddLocation(NPC, -29.11, -2.92, -48.05, 2, 0)
  52. MovementLoopAddLocation(NPC, -34.19, -4.16, -45.42, 2, 0)
  53. MovementLoopAddLocation(NPC, -39.88, -4.28, -43.55, 2, 0)
  54. MovementLoopAddLocation(NPC, -45.09, -4.28, -41.2, 2, 0)
  55. MovementLoopAddLocation(NPC, -50.57, -4.28, -34.93, 2, 0)
  56. MovementLoopAddLocation(NPC, -54.45, -4.28, -33.27, 2, 0)
  57. MovementLoopAddLocation(NPC, -57.37, -4.43, -27.77, 2, 0)
  58. MovementLoopAddLocation(NPC, -56.61, -4.42, -17.45, 2, 0)
  59. MovementLoopAddLocation(NPC, -56.58, -4.52, -11.6, 2, 0)
  60. MovementLoopAddLocation(NPC, -57.12, -4.52, -7.96, 2, 0)
  61. MovementLoopAddLocation(NPC, -56.85, -4.05, -4.71, 2, 0)
  62. MovementLoopAddLocation(NPC, -55.79, -3.25, -1.92, 2, 0)
  63. MovementLoopAddLocation(NPC, -56.88, -2.55, 2.9, 2, 0)
  64. MovementLoopAddLocation(NPC, -56.25, -2.57, 5.83, 2, 0)
  65. MovementLoopAddLocation(NPC, -55.21, -2.63, 8.8, 2, 0)
  66. MovementLoopAddLocation(NPC, -51.92, -2.55, 12.92, 2, 0)
  67. MovementLoopAddLocation(NPC, -46.23, -2.52, 17.98, 2, 0)
  68. MovementLoopAddLocation(NPC, -41.65, -2.62, 20.59, 2, 0)
  69. MovementLoopAddLocation(NPC, -37.27, -2.67, 22.45, 2, 0)
  70. MovementLoopAddLocation(NPC, -25.22, -2.53, 27.58, 2, 0)
  71. MovementLoopAddLocation(NPC, -21.52, -2.56, 36.1, 2, 0)
  72. MovementLoopAddLocation(NPC, -19.85, -2.52, 43.56, 2, 0)
  73. MovementLoopAddLocation(NPC, -22.64, -2.67, 46.07, 2, 0)
  74. MovementLoopAddLocation(NPC, -29.66, -2.67, 51.07, 2, 0)
  75. MovementLoopAddLocation(NPC, -38.15, -2.67, 59.82, 2, 0)
  76. MovementLoopAddLocation(NPC, -43.08, -2.67, 69.95, 2, 0)
  77. MovementLoopAddLocation(NPC, -44.43, -2.55, 79.9, 2, 0)
  78. MovementLoopAddLocation(NPC, -38.74, -2.52, 87.67, 2, 0, "Action")
  79. else
  80. MovementLoopAddLocation(NPC, -38.74, -2.52, 87.67, 2, 0)
  81. MovementLoopAddLocation(NPC, -44.43, -2.55, 79.9, 2, 0)
  82. MovementLoopAddLocation(NPC, -43.08, -2.67, 69.95, 2, 0)
  83. MovementLoopAddLocation(NPC, -38.15, -2.67, 59.82, 2, 0)
  84. MovementLoopAddLocation(NPC, -29.66, -2.67, 51.07, 2, 0)
  85. MovementLoopAddLocation(NPC, -22.64, -2.67, 46.07, 2, 0)
  86. MovementLoopAddLocation(NPC, -19.85, -2.52, 43.56, 2, 0)
  87. MovementLoopAddLocation(NPC, -21.52, -2.56, 36.1, 2, 0)
  88. MovementLoopAddLocation(NPC, -25.22, -2.53, 27.58, 2, 0)
  89. MovementLoopAddLocation(NPC, -37.27, -2.67, 22.45, 2, 0)
  90. MovementLoopAddLocation(NPC, -41.65, -2.62, 20.59, 2, 0)
  91. MovementLoopAddLocation(NPC, -46.23, -2.52, 17.98, 2, 0)
  92. MovementLoopAddLocation(NPC, -51.92, -2.55, 12.92, 2, 0)
  93. MovementLoopAddLocation(NPC, -55.21, -2.63, 8.8, 2, 0)
  94. MovementLoopAddLocation(NPC, -56.25, -2.57, 5.83, 2, 0)
  95. MovementLoopAddLocation(NPC, -56.88, -2.55, 2.9, 2, 0)
  96. MovementLoopAddLocation(NPC, -55.79, -3.25, -1.92, 2, 0)
  97. MovementLoopAddLocation(NPC, -56.85, -4.05, -4.71, 2, 0)
  98. MovementLoopAddLocation(NPC, -57.12, -4.52, -7.96, 2, 0)
  99. MovementLoopAddLocation(NPC, -56.58, -4.52, -11.6, 2, 0)
  100. MovementLoopAddLocation(NPC, -56.61, -4.42, -17.45, 2, 0)
  101. MovementLoopAddLocation(NPC, -57.37, -4.43, -27.77, 2, 0)
  102. MovementLoopAddLocation(NPC, -54.45, -4.28, -33.27, 2, 0)
  103. MovementLoopAddLocation(NPC, -50.57, -4.28, -34.93, 2, 0)
  104. MovementLoopAddLocation(NPC, -45.09, -4.28, -41.2, 2, 0)
  105. MovementLoopAddLocation(NPC, -39.88, -4.28, -43.55, 2, 0)
  106. MovementLoopAddLocation(NPC, -34.19, -4.16, -45.42, 2, 0)
  107. MovementLoopAddLocation(NPC, -29.11, -2.92, -48.05, 2, 0)
  108. MovementLoopAddLocation(NPC, -22.74, -2.65, -51.22, 2, 0)
  109. MovementLoopAddLocation(NPC, -0.13, -2.51, -55.4, 2, 0)
  110. MovementLoopAddLocation(NPC, 27.65, -2.54, -53.08, 2, 0)
  111. MovementLoopAddLocation(NPC, 35, -2.5, -50.42, 2, 0)
  112. MovementLoopAddLocation(NPC, 40.62, -2.56, -46.65, 2, 0)
  113. MovementLoopAddLocation(NPC, 45.55, -2.56, -37.45, 2, 0)
  114. MovementLoopAddLocation(NPC, 46.24, -2.67, -28.85, 2, 0)
  115. MovementLoopAddLocation(NPC, 40.08, -2.6, -21.65, 2, 0)
  116. MovementLoopAddLocation(NPC, 33.25, -2.55, -20.54, 2, 0)
  117. MovementLoopAddLocation(NPC, 28.1, -2.55, -15.4, 2, 0)
  118. MovementLoopAddLocation(NPC, 20.95, -2.57, -12.16, 2, 0)
  119. MovementLoopAddLocation(NPC, 14.38, -2.63, -13.34, 2, 0)
  120. MovementLoopAddLocation(NPC, 9.54, -2.67, -14.86, 2, 0)
  121. MovementLoopAddLocation(NPC, 3.23, -2.67, -18.1, 2, 0)
  122. MovementLoopAddLocation(NPC, -0.92, -2.64, -18.87, 2, 0)
  123. MovementLoopAddLocation(NPC, -8.36, -2.64, -18.18, 2, 0)
  124. MovementLoopAddLocation(NPC, -14.49, -2.53, -4.58, 2, 0)
  125. MovementLoopAddLocation(NPC, -13.21, -2.53, 5.4, 2, 0)
  126. MovementLoopAddLocation(NPC, -13.72, -2.53, 14.36, 2, 0)
  127. MovementLoopAddLocation(NPC, -23.19, -2.53, 25.09, 2, 0)
  128. MovementLoopAddLocation(NPC, -22.28, -2.58, 35.49, 2, 0)
  129. MovementLoopAddLocation(NPC, -19.12, -2.52, 41.57, 2, 0)
  130. MovementLoopAddLocation(NPC, -18.14, -2.52, 47.07, 2, 0)
  131. MovementLoopAddLocation(NPC, -9.61, -2.52, 55.96, 2, 0)
  132. MovementLoopAddLocation(NPC, -7.96, -2.66, 59.22, 2, 0)
  133. MovementLoopAddLocation(NPC, -7.96, -1.64, 72.26, 2, 0)
  134. MovementLoopAddLocation(NPC, -8.34, -1.64, 76.63, 2, 0)
  135. MovementLoopAddLocation(NPC, -11.59, -1.49, 79.68, 2, 0)
  136. MovementLoopAddLocation(NPC, -29.62, -2.47, 87.76, 2, 0)
  137. MovementLoopAddLocation(NPC, -33.54, -2.52, 88.5, 2, 0)
  138. MovementLoopAddLocation(NPC, -38.74, -2.52, 87.67, 2, 0, "Action")
  139. end
  140. end
  141. function Action(NPC,Spawn)
  142. Despawn(NPC)
  143. end