Changed folder name.

Changed folder name.
This commit is contained in:
Jaysyn904
2022-10-07 21:08:37 -04:00
parent 1c33c2843e
commit 8d97886c3f
7060 changed files with 0 additions and 0 deletions

17
_module/nss/mageonly.nss Normal file
View 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.");
}
}