mirror of
https://github.com/EQMacEmu/quests
synced 2026-08-21 00:23:04 -04:00
29 lines
No EOL
607 B
Lua
29 lines
No EOL
607 B
Lua
function event_spawn(e)
|
|
eq.set_timer("depop", 100000);
|
|
eq.set_timer("move", 1);
|
|
end
|
|
|
|
function event_timer(e)
|
|
|
|
if ( e.timer == "move" and not e.self:IsEngaged() ) then
|
|
eq.set_timer("move", 6000);
|
|
|
|
local boss = eq.get_entity_list():GetMobByNpcTypeID(207003); -- The_Acolyte_of_Affliction
|
|
if ( not boss or not boss.valid ) then
|
|
eq.depop();
|
|
end
|
|
e.self:MoveTo(boss:GetX(), boss:GetY(), boss:GetZ() - 5.5, -1, true);
|
|
|
|
elseif ( e.timer == "depop" ) then
|
|
eq.depop();
|
|
end
|
|
|
|
end
|
|
|
|
function event_combat(e)
|
|
if ( e.joined ) then
|
|
eq.pause_timer("depop");
|
|
else
|
|
eq.resume_timer("depop");
|
|
end
|
|
end |