2021-02-07 20:50:01 -08:00
|
|
|
-- items: 87319
|
2016-11-27 22:27:06 -05:00
|
|
|
function event_task_stage_complete(e)
|
2022-11-02 18:04:48 -04:00
|
|
|
if e.task_id == 5655 then
|
2016-11-27 22:27:06 -05:00
|
|
|
e.self:SummonItem(87319, 5)
|
|
|
|
|
e.self:AddLevelBasedExp(10, 0)
|
|
|
|
|
eq.set_global("halloween_zombie", "1", 0, "H3")
|
2023-08-13 17:16:42 -04:00
|
|
|
e.self:Message(MT.Yellow, "The zombie presence seems somewhat lessened, and perhaps they have been quelled . . . for the time being.")
|
2016-11-27 22:27:06 -05:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function event_signal(e)
|
|
|
|
|
if e.signal == 667 then
|
2022-11-30 22:01:15 -05:00
|
|
|
eq.update_task_activity(5654, 0, 1)
|
2016-11-27 22:27:06 -05:00
|
|
|
end
|
|
|
|
|
end
|
2016-11-27 23:02:48 -05:00
|
|
|
|
|
|
|
|
function event_enter_zone(e)
|
2023-08-15 08:14:30 -04:00
|
|
|
if e.self:GetClass() == Class.BARD then
|
2016-11-27 23:02:48 -05:00
|
|
|
local qglobals = eq.get_qglobals(e.self)
|
2016-11-30 00:33:14 -05:00
|
|
|
if qglobals["bard15"] == "5" then
|
2016-11-27 23:02:48 -05:00
|
|
|
local entity_list = eq.get_entity_list()
|
2023-08-15 11:39:43 -04:00
|
|
|
if not entity_list:IsMobSpawnedByNpcTypeID(20290) and not entity_list:IsMobSpawnedByNpcTypeID(20291) and not entity_list:IsMobSpawnedByNpcTypeID(20292) then
|
2018-02-16 01:20:25 -06:00
|
|
|
eq.spawn2(20290, 140, 0, 1157, 537, 131, 490)
|
2016-11-27 23:02:48 -05:00
|
|
|
end
|
|
|
|
|
end
|
2023-08-15 08:14:30 -04:00
|
|
|
elseif e.self:GetClass() == Class.DRUID then
|
2017-02-21 19:15:22 -05:00
|
|
|
local qglobals = eq.get_qglobals(e.self)
|
|
|
|
|
if qglobals["druid_epic"] == "7" then
|
|
|
|
|
local entity_list = eq.get_entity_list()
|
2023-08-15 11:39:43 -04:00
|
|
|
if not entity_list:IsMobSpawnedByNpcTypeID(20299) then
|
2018-02-16 01:20:25 -06:00
|
|
|
eq.spawn2(20299, 0, 0, -696.6,-523.8,-33,78)
|
2017-02-21 19:15:22 -05:00
|
|
|
end
|
|
|
|
|
end
|
2016-11-27 23:02:48 -05:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
2017-02-21 19:15:22 -05:00
|
|
|
function event_loot(e)
|
2023-08-15 08:14:30 -04:00
|
|
|
if e.self:GetClass() == Class.DRUID and e.item:GetID() == 62862 then
|
2017-02-21 19:15:22 -05:00
|
|
|
local qglobals = eq.get_qglobals(e.self);
|
|
|
|
|
if(qglobals["druid_epic"] == "7") then
|
|
|
|
|
if(qglobals["druid_chest_kith"] == nil ) then
|
|
|
|
|
eq.spawn2(283157,0,0,e.self:GetX(),e.self:GetY(),e.self:GetZ(),e.self:GetHeading()); -- #a chest (Epic 1.5)
|
|
|
|
|
eq.set_global("druid_chest_kith","1",5,"F");
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
return 1;
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|