Frostbite.lua 914 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/DrayeksChamber/Frostbite.lua
  3. Script Author : Neveruary
  4. Script Date : 2022.07.17 09:07:32
  5. Script Purpose : Governs behavior of Frostbite in Drayek's Chamber.
  6. Script Notes : Spell collects are pending. The wolves send a timer to Drayek once they're dead so he attacks.
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. end
  12. function death(NPC, Spawn)
  13. local drayek = GetSpawn(NPC, 1930003)
  14. local zone = GetZone(NPC)
  15. local add1 = GetSpawnByLocationID(zone, 351406)
  16. local add2 = GetSpawnByLocationID(zone, 351408)
  17. if IsAlive(add1) == true then
  18. elseif IsAlive(add2) == true then
  19. else
  20. SetTempVariable(drayek, "addsphase", "2")
  21. AddTimer(drayek, 10000, "wolfDeath", 1, Spawn)
  22. end
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end