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