void main() { object oPC = GetExitingObject(); SendMessageToPC(oPC,"The tunnel seems to have led you out into the Burning Marshes - Perhaps a side-entrance for the High Priest during the temples active days?"); SetLocked(GetObjectByTag("px_stonedoor_tmpl"),FALSE); if(GetLocalInt(oPC,"BossSpawned") == 1) { CreateObject(OBJECT_TYPE_PLACEABLE, "px_sarcophag", GetLocation(GetWaypointByTag("px_sarcophag_spawn"))); DeleteLocalInt(oPC,"BossSpawned"); DestroyObject(GetNearestObjectByTag("px_marsh_boss")); SetLocked(GetObjectByTag("px_way_upstairs"),TRUE); AssignCommand(GetObjectByTag("px_way_upstairs"),ActionCloseDoor(GetObjectByTag("px_way_upstairs"))); } }