Changed folder name.
Changed folder name.
This commit is contained in:
31
_module/nss/evilkey.nss
Normal file
31
_module/nss/evilkey.nss
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user