Changed folder name.
Changed folder name.
This commit is contained in:
17
_module/nss/mageonly.nss
Normal file
17
_module/nss/mageonly.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
void main()
|
||||
{
|
||||
object oDoor = OBJECT_SELF;
|
||||
|
||||
object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC);
|
||||
int class1 = GetLevelByClass(CLASS_TYPE_WIZARD, oPC);
|
||||
int class2 = GetLevelByClass(CLASS_TYPE_SORCERER, oPC);
|
||||
int pass = class1 + class2;
|
||||
if (pass >=20){
|
||||
|
||||
AssignCommand(oDoor, ActionOpenDoor(oDoor));
|
||||
SendMessageToPC(oPC, "You may pass.");
|
||||
}
|
||||
else{
|
||||
SendMessageToPC(oPC, "You will not pass.");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user