peq-quests/kithicor/player.lua

51 lines
1.7 KiB
Lua
Raw Permalink Normal View History

2021-02-07 20:50:01 -08:00
-- items: 87319
2016-11-27 22:27:06 -05:00
function event_task_stage_complete(e)
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
function event_enter_zone(e)
2023-08-15 08:14:30 -04:00
if e.self:GetClass() == Class.BARD then
local qglobals = eq.get_qglobals(e.self)
if qglobals["bard15"] == "5" then
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
eq.spawn2(20290, 140, 0, 1157, 537, 131, 490)
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
eq.spawn2(20299, 0, 0, -696.6,-523.8,-33,78)
2017-02-21 19:15:22 -05:00
end
end
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