HighChieftanKryx.lua 963 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC)
  11. local dmgMod = GetStr(NPC)/10
  12. Named(NPC)
  13. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  14. SetInfoStructUInt(NPC, "primary_weapon_damage_low", 5 + dmgMod)
  15. SetInfoStructUInt(NPC, "primary_weapon_damage_high", 11 + dmgMod)
  16. end
  17. function hailed(NPC, Spawn)
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end
  22. --[[function aggro(NPC)
  23. Say(NPC,"[NOTE] I should be immune to physical attacks! You need a magic weapon.")
  24. end
  25. function healthchanged(NPC, Spawn)
  26. if GetHP(NPC) <= GetMaxHP(NPC) * 0.8 then
  27. Say(NPC,"Ouch!")
  28. CastSpell(NPC, 5477, 1, NPC)
  29. end
  30. end]]--