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

31
_module/nss/evilkey.nss Normal file
View File

@@ -0,0 +1,31 @@
//This is the old script I commented out.
/*
#include "nw_i0_tool"
void main()
{
object oPC = GetLastUsedBy();
int alg = GetAlignmentGoodEvil(oPC);
if ((alg == ALIGNMENT_EVIL) && (!HasItem(oPC, "ThievesKey"))){
CreateItemOnObject("thieveskey", oPC, 1);
}
} */
//This is the new check, they must be immortal to get in.
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
//If your not immortal, your not getting in!
if (GetHitDice(oPC) >=12)
{
if (GetItemPossessedBy(oPC, "thieveskey")== OBJECT_INVALID)
{
CreateItemOnObject("thieveskey", oPC);
}
}
}