20 lines
509 B
Plaintext
20 lines
509 B
Plaintext
// Wizard Barrier
|
|
|
|
void main()
|
|
{
|
|
object oPC=GetEnteringObject();
|
|
object oWP=GetWaypointByTag("WIZARD_NPC_PRISON");
|
|
object oWiz;
|
|
if (GetIsPC(oPC)!=TRUE&&GetResRef(oPC)!="wizard")
|
|
{
|
|
AssignCommand(oPC,ClearAllActions());
|
|
AssignCommand(oPC,JumpToObject(oWP));
|
|
SetLocalInt(oPC,"nMState",0);
|
|
oWiz=GetNearestObjectByTag("Wizard");
|
|
if (oWiz!=OBJECT_INVALID)
|
|
{ // Wiz
|
|
AssignCommand(oWiz,ActionSpeakString("Your minions are not allowed beyond my barriers!"));
|
|
} // Wiz
|
|
}
|
|
}
|