From \quests\anguish\encounters\amv.lua:
Code:
function AMV_Death(e)
--check if OMM is up and there are no preexisting AMV lockouts in raid -> spawn chest
--eq.unique_spawn(317112,0,0, e.self:GetX(),e.self:GetY(),e.self:GetZ(),0); --Ornate_Chest (317112)
eq.zone_emote(13,"As the Arch Magus' corpse falls to the ground, you feel the magical aura filling the room collapse, and hear a deep gutteral laugh growing louder.");
e.self:CameraEffect(15000,5);
eq.depop_all(317108);
eq.signal(317116 , 317107);
eq.get_entity_list():FindDoor(57):SetOpenType(59);
eq.get_entity_list():FindDoor(58):SetOpenType(59);
eq.get_entity_list():FindDoor(59):SetOpenType(59);
eq.get_entity_list():FindDoor(60):SetOpenType(59);
eq.get_entity_list():FindDoor(57):ForceOpen(e.self);
eq.get_entity_list():FindDoor(58):ForceOpen(e.self);
eq.get_entity_list():FindDoor(59):ForceOpen(e.self);
eq.get_entity_list():FindDoor(60):ForceOpen(e.self);
end
and in \quests\anguish\zone_status.lua:
Code:
function Check_amv_chest()
qglobals = eq.get_qglobals()
--spawn ornate chest only if amv lockout is not already set
--do not set AMV lockout if it already exists
current_bit = tonumber(qglobals[instance_id.."_anguish_bit"]);
if (bit.band(current_bit,16)==0) then
eq.set_global(instance_id.."_anguish_bit",tostring(bit.bor(current_bit,16)),7,"H6");
for k,v in pairs(charid_list) do
eq.target_global('Anguish_amv', tostring(instance_requests.GetLockoutEndTimeForHours(108)), "H108", 0,v, 0);
end
eq.unique_spawn(317112,0,0, 366, 4886, 278, 0); --Ornate_Chest
eq.debug("Check_amv_chest: Spawn Chest");
else
eq.debug("Check_amv_chest: No Chest");
end
end