Difference between revisions of "Atcommand"

From Hercules Wiki
Jump to: navigation, search
(Created page with "Category:Script_Command ==Syntax== * atcommand "Command Line"; ==Description== This command will run the given command line exactly as if it was typed in from the keyb...")
 
m
 
Line 1: Line 1:
[[Category:Script_Command]]
 
 
==Syntax==
 
==Syntax==
 
* [[atcommand]] "Command Line";
 
* [[atcommand]] "Command Line";
Line 14: Line 13:
 
atcommand "@nuke "+@player$;
 
atcommand "@nuke "+@player$;
 
</pre>
 
</pre>
 +
[[Category:Script_Command]]

Latest revision as of 23:17, 10 June 2013

Syntax

  • atcommand "Command Line";

Description

This command will run the given command line exactly as if it was typed in from the keyboard by the player connected to the invoking character, and that character belonged to an account which had GM level 99.

This command has a lot of good uses, I am sure you can have some fun with this one.

Examples

// This will ask the invoker for a character name and then use the '@nuke'
// GM command on them, killing them mercilessly.
input @player$;
atcommand "@nuke "+@player$;