PoA_PRC8/_module/nss/ac_dmjail.nss
Jaysyn904 8d97886c3f Changed folder name.
Changed folder name.
2022-10-07 21:08:37 -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));
}