PoA_PRC8/module/nss/ac_dmjail.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

28 lines
470 B
Plaintext

void main()
{
object oPC;
if (!GetIsDM(GetItemActivator())
){
SendMessageToPC(GetItemActivator(), "You are not a DM!!!");
return;}
oPC = GetItemActivator();
object oTarget;
location lTarget;
//Send the PC to DM Jail (A bad bad thing!!!)
oTarget = GetWaypointByTag("dmtorture");
lTarget = GetLocation(oTarget);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToLocation(lTarget));
}