Changed folder name.
Changed folder name.
This commit is contained in:
16
_module/nss/tamper.nss
Normal file
16
_module/nss/tamper.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
void main()
|
||||
{
|
||||
object oDoor = OBJECT_SELF;
|
||||
|
||||
object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC);
|
||||
int class1 = GetLevelByClass(CLASS_TYPE_ROGUE, oPC);
|
||||
int class2 = GetLevelByClass(CLASS_TYPE_BARD, oPC);
|
||||
int pass = class1 + class2;
|
||||
if (pass <=14){
|
||||
AssignCommand(oDoor, ActionCloseDoor(oDoor));
|
||||
SetLocked(oDoor, TRUE) ;
|
||||
|
||||
SendMessageToPC(oPC, "This complex lock has detected tampering, and relocked itself.");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user