The doors auto open if Boss xx is defeated. You can change to item or no condition to just make the doors open on approach.
I made an NPC that is invisible and untargetable near the door.
The cool things is you don't have to touch the door, you just walk up to it and it checks to see if the condition is met before opening, or gives a message that condition must be met first.
I have the doors set to require a key. It so happens that the key cannot be found in the dungeon.
Code:
sub EVENT_SPAWN {
my $z = $npc->GetZ(); ###Just incase $z object isn't defaulted
#my $x = $npc->Getx(); ###Just incase $x object isn't defaulted
#my $y = $npc->Gety(); ###Just incase $y object isn't defaulted
quest::set_proximity($x - 50, $x + 50, $y - 50, $y + 50, $z - 30, $z + 30);
}
sub EVENT_ENTER{
$check_boss = $entity_list->GetMobByNpcTypeID(294154); #Boss xx
if(!$check_boss) {
$client->Message(15, "The Boss xx has been defeated. Opening the Chamber doors.");
quest::forcedooropen(1008); #- Forces a door with "doorid" to open.
quest::forcedooropen(1009);
return;
} else {
$client->Message(15, "You must defeat the Boss xx to Gain Entry.");
}
}