PoA_PRC8/_module/nss/ac_dmjail.nss

28 lines
470 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
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));
}