PoA_PRC8/_module/nss/barred_message.nss

29 lines
612 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
//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.");
}