void main() { object oPC=GetEnteringObject(); object oDoor=GetNearestObject(OBJECT_TYPE_DOOR, OBJECT_SELF, 1); if ((GetLocked(oDoor) == TRUE)) { AssignCommand(oDoor,ActionStartConversation(oPC, "ah_taverndoor", TRUE, FALSE)); } else { return; } }