42 lines
766 B
Plaintext
42 lines
766 B
Plaintext
void main()
|
|
{
|
|
|
|
object oPC = GetLastOpenedBy();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetItemPossessedBy(oPC, "Mourningkey1")== OBJECT_INVALID)
|
|
return;
|
|
|
|
if (GetItemPossessedBy(oPC, "Mourningkey2")== OBJECT_INVALID)
|
|
return;
|
|
|
|
if (GetItemPossessedBy(oPC, "Mourningkey3")== OBJECT_INVALID)
|
|
return;
|
|
|
|
object oItem;
|
|
oItem = GetItemPossessedBy(oPC, "Mourningkey1");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
|
|
oItem = GetItemPossessedBy(oPC, "Mourningkey2");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
|
|
oItem = GetItemPossessedBy(oPC, "Mourningkey3");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
|
|
object oTarget;
|
|
oTarget = GetObjectByTag("Rall_Gate_1");
|
|
|
|
SetLocked(oTarget, FALSE);
|
|
|
|
AssignCommand(oTarget, ActionOpenDoor(oTarget));
|
|
|
|
}
|
|
|