projecteq-projecteqquests/potimeb/a_time_vortex.lua
Trust 23f42c0c37 [DZ PoTimeA/B] PoTime Revamp incl DZ Support
GM Commands can be had by a by typinc /say help in PoTimeB Instance.
2021-01-02 00:57:17 -05:00

33 lines
625 B
Lua

--a_time_vortex (223112)
--Phase 6 Quarm - spawned adds
--potimeb
function event_spawn(e)
eq.set_timer("blur",12000);
AssistQuarm(e);
end
function event_combat(e)
if (e.joined) then
eq.stop_timer("depop_me")
else
eq.set_timer("depop_me", 6000);
end
end
function event_timer(e)
if (e.timer == "depop_me") and not e.self:IsEngaged() then
eq.depop();
elseif (e.timer == "blur") then
e.self:WipeHateList();
AssistQuarm(e);
end
end
function AssistQuarm(e)
local quarm = eq.get_entity_list():GetMobByNpcTypeID(223201);
if (quarm ~= nil) then
e.self:AddToHateList(quarm:GetHateRandom(),200);
end
end