From 8f36123ac4f0dad6a9c2428b0b01a3ffd81017a4 Mon Sep 17 00:00:00 2001 From: ultramage Date: Mon, 29 Oct 2007 09:16:39 +0000 Subject: Command code cleaning (refer to topic:169759) * separated the execution part of command code into interface part and internal part to better see which checks are done and when (fixes problem where 'nocommand' mapflag blocked server npcs) * moved the internal commands list (array) to the end of the file, this let me discard that long block of ACMD_FUNC() declarations * removed enum AtCommandType from command headers and commands array; its purpose was perhaps to identify aliased commands, but apparently it was never finished because the rest of the code doesn't use it (also doing aliases like this is not a very good idea) * internally, commands are now referenced to using their function name * removed the @/# symbols from the command lists; all lookup functions will now properly deal with strings with- and without a command symbol (commands interface still requires the symbol tho', so TODO for later) * removed several unneeded commands (*id2 code, dmalloc debug commands) * reverted atcommand config from alphabetically-sorted to how it was before (with additional fixes; see /conf changelog) * added missing code for #dropall / #storeall * added a warning when trying to set gm level of an undefined command The structure of the commands table has changed, please adjust docs/guides to match the new format (sorry for the inconvenience). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11607 54d463be-8e91-2dee-dedb-b68131a5f0ec --- conf/charcommand_athena.conf | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'conf/charcommand_athena.conf') diff --git a/conf/charcommand_athena.conf b/conf/charcommand_athena.conf index acd89779a..20e0c2427 100644 --- a/conf/charcommand_athena.conf +++ b/conf/charcommand_athena.conf @@ -1,10 +1,12 @@ -// Athena charcommand Configuration file. -// Translated by Peter Kieser +//-------------------------------------------------------------- +// eAthena charcommand configuration file. +// Originally translated by Peter Kieser +//-------------------------------------------------------------- // The symbol that will be used to recognize commands. -// You can set any one character, except control-characters (0x00-0x1f), +// You can set any one character except control-characters (0x00-0x1f), // '%', '$' (party/guild chat speaking) and '/' (standard client commands). -// The symbol must be different from from the standard GM command symbol. +// The symbol must also be different from from the GM atcommand symbol. command_symbol: # @@ -21,6 +23,9 @@ command_symbol: # //---------------------- // 20: Mediator commands +// Displays helpfile in eAthena base directory +help: 20 + //-------------------- // 40: Sub-GM commands @@ -120,6 +125,12 @@ delitem: 60 disguise: 60 undisguise: 60 +// Drop a players possessions on the ground +dropall: 60 + +// Put a players possessions in storage +storeall: 60 + // Resets another character's designated maps feelreset: 60 -- cgit v1.2.3-70-g09d2