mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
30 lines
No EOL
914 B
Lua
Executable file
30 lines
No EOL
914 B
Lua
Executable file
--[[
|
|
Script Name : SpawnScripts/DrayeksChamber/Frostbite.lua
|
|
Script Author : Neveruary
|
|
Script Date : 2022.07.17 09:07:32
|
|
Script Purpose : Governs behavior of Frostbite in Drayek's Chamber.
|
|
Script Notes : Spell collects are pending. The wolves send a timer to Drayek once they're dead so he attacks.
|
|
--]]
|
|
|
|
require "SpawnScripts/Generic/NPCModule"
|
|
|
|
function spawn(NPC, Spawn)
|
|
NPCModule(NPC, Spawn)
|
|
end
|
|
|
|
function death(NPC, Spawn)
|
|
local drayek = GetSpawn(NPC, 1930003)
|
|
local zone = GetZone(NPC)
|
|
local add1 = GetSpawnByLocationID(zone, 351406)
|
|
local add2 = GetSpawnByLocationID(zone, 351408)
|
|
if IsAlive(add1) == true then
|
|
elseif IsAlive(add2) == true then
|
|
else
|
|
SetTempVariable(drayek, "addsphase", "2")
|
|
AddTimer(drayek, 10000, "wolfDeath", 1, Spawn)
|
|
end
|
|
end
|
|
|
|
function respawn(NPC)
|
|
spawn(NPC)
|
|
end |