aSupplyCaptain.lua 817 B

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