HoS_PRC8/_mod/_module/nss/wazoo_lsc_open.nss

13 lines
376 B
Plaintext
Raw Permalink Normal View History

2024-11-25 19:36:07 -05:00
void main()
{
object oPC=GetLastUsedBy();
object oMe=OBJECT_SELF;
object oOwner=GetLocalObject(oMe,"oOwner");
if (oPC!=oOwner)
{ // not allowed to open
SendMessageToPC(oPC,"You do not own this magical chest and cannot open it!");
AssignCommand(oPC,ClearAllActions(TRUE));
AssignCommand(oPC,ActionCloseDoor(oMe));
} // not allowed to open
}