9
3

RognogtheAngler.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : SpawnScripts/The Cove of Decay: Epic Angler/RognogtheAngler.lua
  3. Script Author : Neveruary
  4. Script Date : 2022.03.01 04:03:45
  5. Script Purpose : Governs the behavior of Rognog the Angler in Cove of Decay: Epic Angler
  6. Script Notes : Rognog has special abilities. He only activates once the raid kills all
  7. : of "a catch" which is a grouped mob to his left. At 50%, he respawns as
  8. : a level 52 x4.
  9. :
  10. --]]
  11. function spawn(NPC)
  12. local zone = GetZone(NPC)
  13. local players = GetPlayersInZone(zone)
  14. local rognogx4 = GetSpawn(NPC,3110009)
  15. for k,v in ipairs(players) do
  16. RemoveSpawnAccess(rognogx4, v)
  17. end
  18. end
  19. function aggro(NPC)
  20. end
  21. function healthchanged(NPC)
  22. local max = GetMaxHP(NPC)
  23. local current = GetHP(NPC)
  24. if current == max*0.5 then
  25. --We need to despawn him and respawn him in another location ID.
  26. end
  27. end
  28. function hailed(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. end
  31. function respawn(NPC)
  32. spawn(NPC)
  33. end