--[[ Script Name : SpawnScripts/DrayeksChamber/afrozensentinel.lua Script Author : Neveruary Script Date : 2022.07.17 09:07:02 Script Purpose : Governs the behavior of a frozen vigilant in Drayek's Chamber. Script Notes : Spell collects are pending. The frozen mobs all check themselves when they die and send a timer to Drayek to send in the wolves. --]] require "SpawnScripts/Generic/NPCModule" function spawn(NPC, Spawn) --NPCModule(NPC, Spawn) end function death(NPC, Spawn) local zone = GetZone(NPC) local add1 = GetSpawnByLocationID(zone, 351396) local add2 = GetSpawnByLocationID(zone, 351398) local add3 = GetSpawnByLocationID(zone, 351399) if IsAlive(add1) == true then elseif IsAlive(add2) == true then elseif IsAlive(add3) == true then else AddTimer(NPC, 500, "frozencheck", 1, Spawn) end end function frozencheck(NPC, Spawn) local drayek = GetSpawn(NPC, 1930003) local zone = GetZone(NPC) local add1 = GetSpawnByLocationID(zone, 351401) local add2 = GetSpawnByLocationID(zone, 351404) local add3 = GetSpawnByLocationID(zone, 351405) if IsAlive(add1) == true then elseif IsAlive(add2) == true then elseif IsAlive(add3) == true then else SetTempVariable(drayek, "addsphase", "1") AddTimer(drayek, 10000, "addsSpawn", 1, Spawn) end end function respawn(NPC) spawn(NPC) end