9
3

adrakotaadjutant.lua 977 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/adrakotaadjutant.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.04 07:01:03
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. dmgMod = math.floor(GetStr(NPC)/10)
  11. HPRegenMod = math.floor(GetSta(NPC)/10)
  12. PwRegenMod = math.floor(GetStr(NPC)/10)
  13. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  14. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(45 + dmgMod))
  15. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(85 + dmgMod))
  16. SetInfoStructUInt(NPC, "hp_regen_override", 1)
  17. SetInfoStructSInt(NPC, "hp_regen", 50 + HPRegenMod)
  18. SetInfoStructUInt(NPC, "pw_regen_override", 1)
  19. SetInfoStructSInt(NPC, "pw_regen", 25 + PwRegenMod)
  20. end
  21. function hailed(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end