1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- --[[
- 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 sentinel 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.
- --]]
- function spawn(NPC)
- 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
|