mirror of
https://github.com/ProjectEQ/projecteqquests
synced 2026-08-12 00:26:10 -04:00
19 lines
557 B
Lua
19 lines
557 B
Lua
function event_timer(e)
|
|
if (e.timer == "aggrolink") then
|
|
local npc_list = eq.get_entity_list():GetNPCList();
|
|
for npc in npc_list.entries do
|
|
if (npc.valid and not npc:IsEngaged() and (npc:GetNPCTypeID() == 57154) or (npc:GetNPCTypeID() == 57155) or (npc:GetNPCTypeID() == 57151)) then
|
|
npc:AddToHateList(e.self:GetHateRandom(),1); -- add Reanimated_Minion /Taskmaster to aggro list if alive
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
function event_combat(e)
|
|
if e.joined then
|
|
eq.set_timer("aggrolink", 3 * 1000);
|
|
else
|
|
eq.stop_timer("aggrolink");
|
|
end
|
|
end
|