peq-quests/potimeb/A_Tormentor.lua
2023-08-15 11:39:43 -04:00

21 lines
452 B
Lua

function event_combat(e)
if e.joined then
eq.set_timer("OOBcheck", 6 * 1000);
else
eq.stop_timer("OOBcheck");
end
end
function event_timer(e)
if(e.timer=="OOBcheck") then
eq.stop_timer("OOBcheck");
if (e.self:GetX() > -110 or e.self:GetY() > -107) then
e.self:GotoBind();
e.self:WipeHateList();
e.self:CastSpell(3230,e.self:GetID()); -- Spell: Balance of the Nameless
else
eq.set_timer("OOBcheck", 6 * 1000);
end
end
end