#include "nw_i0_tool"
void main()
{
    object oDoor = GetObjectByTag("DUNG_DR_DOWN");
    object oSkull1 = GetObjectByTag("skull1");
    object oSkull2 = GetObjectByTag("skull2");
    object oPC = GetEnteringObject();
    {
    if(GetIsPC(oPC) && HasItem(oPC, "skull1") && HasItem(oPC, "skull2"))
        {
        AssignCommand(oDoor, ActionSpeakString("You may pass."));
        AssignCommand(oDoor, ActionOpenDoor (oDoor));
        SetLocked(oDoor, FALSE);
        SetLocalInt(OBJECT_SELF, "fired", 1);
        ActionDoCommand(RewardPartyXP(2500, oPC));
        ActionDoCommand(DestroyObject(oSkull1));
        ActionDoCommand(DestroyObject(oSkull2));
        }
    else
        {
        if(!(GetLocalInt(OBJECT_SELF, "fired") == 1))
        {
        AssignCommand(oDoor, ActionStartConversation(oPC));
        }
        }
    }
}
