Frostbite.lua 838 B

12345678910111213141516171819202122232425262728
  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. function spawn(NPC)
  9. end
  10. function death(NPC, Spawn)
  11. local drayek = GetSpawn(NPC, 1930003)
  12. local zone = GetZone(NPC)
  13. local add1 = GetSpawnByLocationID(zone, 351406)
  14. local add2 = GetSpawnByLocationID(zone, 351408)
  15. if IsAlive(add1) == true then
  16. elseif IsAlive(add2) == true then
  17. else
  18. SetTempVariable(drayek, "addsphase", "2")
  19. AddTimer(drayek, 10000, "wolfDeath", 1, Spawn)
  20. end
  21. end
  22. function respawn(NPC)
  23. spawn(NPC)
  24. end