9
3

TerraThud.lua 987 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/TerraThud.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.01.27 05:01:09
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. local Level = GetLevel(NPC)
  11. if Level == 21 then
  12. SetMaxHP(NPC, 6885)
  13. ModifyHP(NPC, 6885)
  14. SetMaxPower(NPC, 1650)
  15. ModifyPower(NPC, 1650)
  16. elseif Level == 22 then
  17. SetMaxHP(NPC, 7500)
  18. ModifyHP(NPC, 7500)
  19. SetMaxPower(NPC, 1750)
  20. ModifyPower(NPC, 1750)
  21. end
  22. dmgMod = GetStr(NPC)/10
  23. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  24. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(75 + dmgMod))
  25. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(125 + dmgMod))
  26. end
  27. function hailed(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. end
  30. function respawn(NPC)
  31. spawn(NPC)
  32. end