Changed folder name.
Changed folder name.
This commit is contained in:
28
_module/nss/barred_message.nss
Normal file
28
_module/nss/barred_message.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
//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.");
|
||||
|
||||
}
|
Reference in New Issue
Block a user