9
3

aSiegePlanner.lua 874 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/aSiegePlanner.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.29 12:09:09
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGoblin3.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC)
  11. local dmgMod = GetStr(NPC)/10
  12. Named(NPC)
  13. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  14. SetInfoStructUInt(NPC, "primary_weapon_damage_low", 4 + dmgMod)
  15. SetInfoStructUInt(NPC, "primary_weapon_damage_high", 10 + dmgMod)
  16. SetInfoStructUInt(NPC, "hp_regen_override", 1)
  17. SetInfoStructSInt(NPC, "hp_regen", 0)
  18. SetInfoStructUInt(NPC, "pw_regen_override", 1)
  19. SetInfoStructSInt(NPC, "pw_regen", 0)
  20. end
  21. function hailed(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end