PoA_PRC8/_module/nss/evilkey.nss

32 lines
604 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
//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);
}
}
}