PoA_PRC8/_module/nss/roguecheck.nss
Jaysyn904 6937da5f87 Further PRC integration
Further PRC integration. Updated racial & class hooks.  Updated NPC AI  for PRC NPC events.  Updated loot generation tables for PRC classes.
2022-10-09 23:07:18 -04:00

25 lines
336 B
Plaintext

//Put this script OnOpen
void main()
{
object oPC = GetLastUnlocked();
if (!GetIsPC(oPC)) return;
if ((GetLevelByClass(CLASS_TYPE_ROGUE, oPC)==0))
{
SendMessageToPC(oPC, "You may not pass!");
ActionCloseDoor(OBJECT_SELF);
SetLocked(OBJECT_SELF, TRUE);
}
else
{
SendMessageToPC(oPC, "You may pass.");
}
}