9
3

Bladefin.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/Bladefin.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.17 12:09:13
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC)
  10. local dmgMod = GetStr(NPC)/10
  11. Named(NPC)
  12. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_low", 5 + dmgMod)
  14. SetInfoStructUInt(NPC, "primary_weapon_damage_high", 11 + dmgMod)
  15. SetInfoStructUInt(NPC, "hp_regen_override", 1)
  16. SetInfoStructSInt(NPC, "hp_regen", 0)
  17. SetInfoStructUInt(NPC, "pw_regen_override", 1)
  18. SetInfoStructSInt(NPC, "pw_regen", 0)
  19. waypoints(NPC)
  20. end
  21. function hailed(NPC, Spawn)
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end
  26. function waypoints(NPC)
  27. MovementLoopAddLocation(NPC, 5.03, -12.18, -7.78, 2, math.random(10, 20))
  28. MovementLoopAddLocation(NPC, 10.11, -12.18, -6.27, 2, 0)
  29. MovementLoopAddLocation(NPC, 12.63, -12.18, -3.24, 2, 0)
  30. MovementLoopAddLocation(NPC, 11.41, -12.18, 1.81, 2, 0)
  31. MovementLoopAddLocation(NPC, 8.93, -12.18, 2.33, 2, 0)
  32. MovementLoopAddLocation(NPC, 3.54, -12.18, 2.54, 2, 0)
  33. MovementLoopAddLocation(NPC, -8.18, -12.18, 3.21, 2, math.random(10, 20))
  34. MovementLoopAddLocation(NPC, -12.33, -12.18, 0, 2, 0)
  35. MovementLoopAddLocation(NPC, -11.05, -12.18, -2.66, 2, 0)
  36. MovementLoopAddLocation(NPC, -10.17, -12.18, -3.3, 2, 0)
  37. MovementLoopAddLocation(NPC, -7.47, -12.18, -3.66, 2, 0)
  38. MovementLoopAddLocation(NPC, -5.03, -12.18, -3.91, 2, math.random(10, 20))
  39. MovementLoopAddLocation(NPC, -0.41, -12.18, -0.13, 2, 0)
  40. MovementLoopAddLocation(NPC, 5.25, -13.3, 7.61, 2, 0)
  41. MovementLoopAddLocation(NPC, 6.73, -13.3, 7.58, 2, math.random(10, 20))
  42. MovementLoopAddLocation(NPC, 10.15, -13.87, 4.92, 2, 0)
  43. MovementLoopAddLocation(NPC, 11.06, -14.14, 3.11, 2, 0)
  44. MovementLoopAddLocation(NPC, 8.43, -14.14, 1.08, 2, math.random(10, 20))
  45. MovementLoopAddLocation(NPC, 6.08, -13.91, 1.29, 2, 0)
  46. MovementLoopAddLocation(NPC, -1.91, -13.46, 2.68, 2, math.random(10, 20))
  47. MovementLoopAddLocation(NPC, -7.32, -13.27, 4.53, 2, 0)
  48. MovementLoopAddLocation(NPC, -6.79, -13.25, 8.8, 2, 0)
  49. MovementLoopAddLocation(NPC, -4.06, -13.23, 10.05, 2, math.random(10, 20))
  50. MovementLoopAddLocation(NPC, -2.43, -13.23, 8.1, 2, 0)
  51. MovementLoopAddLocation(NPC, 1.16, -13.23, 3, 2, 0)
  52. MovementLoopAddLocation(NPC, 4.26, -13.23, -1.93, 2, math.random(10, 20))
  53. MovementLoopAddLocation(NPC, 3.65, -13.23, -8.7, 2, 0)
  54. MovementLoopAddLocation(NPC, -0.19, -13.23, -11.26, 2, math.random(10, 20))
  55. MovementLoopAddLocation(NPC, -2.33, -13.63, -8.42, 2, 0)
  56. MovementLoopAddLocation(NPC, -0.8, -14.41, 0.26, 2, math.random(10, 20))
  57. MovementLoopAddLocation(NPC, 2.21, -14.79, 3.25, 2, 0)
  58. MovementLoopAddLocation(NPC, 6.61, -13.91, 1.54, 2, 0)
  59. MovementLoopAddLocation(NPC, 8.85, -13.64, 0.82, 2, math.random(10, 20))
  60. MovementLoopAddLocation(NPC, 11.96, -13.64, -1.75, 2, 0)
  61. MovementLoopAddLocation(NPC, 9.35, -13.8, -6.31, 2, math.random(10, 20))
  62. MovementLoopAddLocation(NPC, 5.51, -13.39, -5.22, 2, 0)
  63. MovementLoopAddLocation(NPC, 1.62, -13.39, -3.46, 2, 0)
  64. MovementLoopAddLocation(NPC, -5.97, -13.34, -3.69, 2, math.random(10, 20))
  65. MovementLoopAddLocation(NPC, -7.23, -13.27, -8.37, 2, 0)
  66. MovementLoopAddLocation(NPC, -5.57, -13.24, -9.58, 2, 0)
  67. MovementLoopAddLocation(NPC, -2.52, -13.19, -8.24, 2, 0)
  68. end