HighChieftanKryx.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/HighChieftanKryx.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.04 01:09:30
  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", 5 + dmgMod)
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_high", 11 + 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. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end
  24. --[[function aggro(NPC)
  25. Say(NPC,"[NOTE] I should be immune to physical attacks! You need a magic weapon.")
  26. end
  27. function healthchanged(NPC, Spawn)
  28. if GetHP(NPC) <= GetMaxHP(NPC) * 0.8 then
  29. Say(NPC,"Ouch!")
  30. CastSpell(NPC, 5477, 1, NPC)
  31. end
  32. end]]--