Changed folder name.
Changed folder name.
This commit is contained in:
27
_module/nss/ac_dmjail.nss
Normal file
27
_module/nss/ac_dmjail.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
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));
|
||||
|
||||
}
|
Reference in New Issue
Block a user