17 lines
446 B
Plaintext
17 lines
446 B
Plaintext
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.");
|
|
}
|
|
}
|
|
|