mirror of
https://github.com/EQMacEmu/quests
synced 2026-08-21 00:23:04 -04:00
19 lines
No EOL
432 B
Lua
19 lines
No EOL
432 B
Lua
function event_click_door(e)
|
|
local door_id = e.door:GetDoorID();
|
|
|
|
-- HoHB portals
|
|
if ( door_id == 19 or door_id == 20 ) then
|
|
|
|
local qglobals = eq.get_qglobals(e.self);
|
|
|
|
if ( qglobals.hohtrials and qglobals.hohtrials == "111" ) then
|
|
|
|
if ( e.self:HasZoneFlag(220) == false ) then
|
|
e.self:SetZoneFlag(220);
|
|
end
|
|
else
|
|
e.self:Message(13, "You lack the will to pass through this portal safely.");
|
|
end
|
|
|
|
end
|
|
end |