9
3

MarcusWarklar.lua 925 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/MarcusWarklar.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.02.18 09:02:18
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. dmgMod = math.floor(GetStr(NPC)/10)
  10. HPRegenMod = math.floor(GetSta(NPC)/10)
  11. PwRegenMod = math.floor(GetAgi(NPC)/10)
  12. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(95 + dmgMod))
  14. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(175 + dmgMod))
  15. SetInfoStructUInt(NPC, "hp_regen_override", 1)
  16. SetInfoStructSInt(NPC, "hp_regen", 80 + HPRegenMod)
  17. SetInfoStructUInt(NPC, "pw_regen_override", 1)
  18. SetInfoStructSInt(NPC, "pw_regen", 30 + PwRegenMod)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end