2022-10-07 14:20:31 -04:00
|
|
|
//Put this script OnOpen
|
2022-10-09 22:53:12 -04:00
|
|
|
void main()
|
|
|
|
{
|
2022-10-09 23:07:18 -04:00
|
|
|
|
|
|
|
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.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|