peq-quests/chambersb/player.lua
Trust 2561d4c5f6 [Revamp] MPG Trial Revamps
Updated trials to be closer to accurate timers, dz and mechanics.

Needs a few DB updated for subversion
2023-04-30 03:55:05 -04:00

20 lines
685 B
Lua

function event_enter_zone(e)
local qglobals = eq.get_qglobals(e.self);
if qglobals["mpg_raid_trial_won"] ~= nil and qglobals['mpg_raid_trial_won'] ~= 0 then
eq.debug('mpg_raid_trial_won: ' .. tostring(qglobals['mpg_raid_trial_won']));
local mpg_helper = require("mpg_helper");
mpg_helper.RaidAnguishAccess(e.self, qglobals['mpg_raid_trial_won']);
eq.target_global('mpg_raid_trial_won', '0', 'S1', 0, e.self:CharacterID(), 0);
end
end
function event_loot(e)
if e.item:GetID() == 56016 and e.corpse:GetNPCTypeID() == 305005 then
if e.self:GetGlobal("cleric20_mpg_drop") == "1" then
e.self:DelGlobal("cleric20_mpg_drop");
return 0;
else
return 1;
end
end
end