PoA_PRC8/module/nss/barred_message.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

29 lines
612 B
Plaintext

//Script Name: barred_message
//////////////////////////////////////////
//Created By: Genisys (Guile)
//Created On: 8/19/08
/////////////////////////////////////////
/*
This is for doors that are not meant to
be opened by the PC.
*/
////////////////////////////////////////
//This script goes in the OnFailToOpen Event
void main()
{
object oPC = GetClickingObject();
if (!GetIsPC(oPC)) return;
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
ActionSpeakString("This door is barred from the otherside and is not openable.");
}