HoS_PRC8/_mod/_module/nss/wizard_barrier.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

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
}
}