chrsschb |
10-06-2019 04:22 PM |
Quote:
Originally Posted by woton
(Post 263673)
Thx for the responses guys, seems it might be the #zone command we were using to get into Anguish. Just wondering, how do we change it so only 1 person can zone into Anguish from WoS?
|
in \quests\wallofslaughter\player.lua
Code:
function event_click_door(e)
local door_id = e.door:GetDoorID();
local instance_id = nil;
local lockouts = {
{ "Anguish_keldovan", "Anguish: Keldovan the Harrier" },
{ "Anguish_jelvan", "Anguish: Rescing Jelvan" },
{ "Anguish_ture", "Anguish: Ture" },
{ "Anguish_hanvar", "Anguish: Warden Hanvar" },
{ "Anguish_amv", "Anguish: Arch Magus Vangi" },
{ "Anguish_omm", "Anguish: Overlord Mata Muram" },
{ "Anguish_lower_orb", "Anguish: Lower Globe of Discordant Energy" },
{ "Anguish_upper_orb", "Anguish: Upper Globe of Discordant Energy" },
{ "Anguish_augs", "Anguish: Replay Timer" }
};
eq.debug("Door: " .. door_id .. " clicked");
if (door_id == 3) then
instance_id = eq.get_instance_id('anguish', 0);
if (instance_id ~= nil and instance_id ~= 0) then
e.self:MovePCInstance(317, instance_id, -9, -2466, -79, 510);
-- if GM just give him an instance
elseif (e.self:Admin() >= 80 and e.self:GetGM()) then
instance_id = eq.create_instance('anguish', 0, 21600);
eq.assign_raid_to_instance(instance_id);
e.self:Message(14, "GM Exception: Anguish is open to you");
eq.set_global(instance_id.."_anguish_bit",tostring(0),7,"H6");
else
local instance_requests = require("instance_requests");
-- If a Player has Anguish_augs then they can not start an instance of anguish.
local augs_check = instance_requests.CheckPlayersForLockout('raid', 'Anguish_augs', 'Anguish: Replay Timer', e.self);
if (augs_check ) then
e.self:Message(13, "The way to Anguish is blocked to your raid at this time");
else
-- Every member of the raid needs to have 2 quest_globals set: oow_rss_taromani_insignias and oow_mpg_raids_complete
local required_globals = {
{'oow_rss_taromani_insignias', "is not protected from the chaos magic in Mata Muram's citadel." },
{'oow_mpg_raids_complete', 'must complete the Muramite Proving Grounds raid trials'}
};
local request = instance_requests.ValidateRequest('raid', 'anguish', 0, 6, 54, 65, nil, required_globals, e.self, lockouts);
-- TODO: Need to review why i placed the flags check; shouldn't be needed but I added it for some
-- reason.
-- if (request.valid and request.flags == 1) then
-- instance_requests.DisplayLockouts(e.self, e.self, lockouts);
-- elseif (request.valid and request.flags == 0) then
if (request.valid) then
instance_id = eq.create_instance('anguish', 0, 21600);
eq.assign_raid_to_instance(instance_id);
-- Set the lockout for the instance with the bits that represent the mobs that
-- will be spawned by the zone_status upon entry
eq.set_global(instance_id.."_anguish_bit",tostring(request.flags),7,"H6");
eq.cross_zone_message_player_by_name(5, "GMFizban", "Anguish -- Instance: " .. instance_id);
e.self:Message(14, "The door swings wide and allows you entrance to Anguish, the Fallen Palace.");
end
end
end
end
end
Change the 6 in the below to a 1.
Code:
local request = instance_requests.ValidateRequest('raid', 'anguish', 0, 6, 54, 65, nil, required_globals, e.self, lockouts);
|