Misty.lua 828 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : SpawnScripts/DrayeksChamber/Misty.lua
  3. Script Author : Neveruary
  4. Script Date : 2022.07.17 09:07:41
  5. Script Purpose : Governs behavior of Misty 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