28 lines
470 B
Plaintext
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));
|
|
|
|
}
|