PoA_PRC8/_module/nss/evilkey.nss
Jaysyn904 8d97886c3f Changed folder name.
Changed folder name.
2022-10-07 21:08:37 -04:00

32 lines
604 B
Plaintext

//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);
}
}
}