
* 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://svn.code.sf.net/p/rathena/svn/trunk@11607 54d463be-8e91-2dee-dedb-b68131a5f0ec
272 lines
4.8 KiB
Plaintext
272 lines
4.8 KiB
Plaintext
//--------------------------------------------------------------
|
|
// eAthena charcommand configuration file.
|
|
// Originally translated by Peter Kieser <pfak@telus.net>
|
|
//--------------------------------------------------------------
|
|
|
|
// The symbol that will be used to recognize commands.
|
|
// You can set any one character except control-characters (0x00-0x1f),
|
|
// '%', '$' (party/guild chat speaking) and '/' (standard client commands).
|
|
// The symbol must also be different from from the GM atcommand symbol.
|
|
command_symbol: #
|
|
|
|
|
|
//--------------------------
|
|
// 0: normal player commands
|
|
// None for security purposes.
|
|
|
|
//-------------------------
|
|
// 1: Super player commands
|
|
|
|
//---------------------------
|
|
// 10: Super player+ commands
|
|
|
|
//----------------------
|
|
// 20: Mediator commands
|
|
|
|
// Displays helpfile in eAthena base directory
|
|
help: 20
|
|
|
|
//--------------------
|
|
// 40: Sub-GM commands
|
|
|
|
|
|
// View the items in a character's cart
|
|
cartlist: 40
|
|
|
|
// Apply an effect onto another character
|
|
effect: 40
|
|
|
|
// View the exp of a character
|
|
exp: 40
|
|
|
|
// List a chacter's items
|
|
itemlist: 40
|
|
|
|
// View the jail time remaining
|
|
jailtime: 40
|
|
|
|
// Refresh a character
|
|
refresh: 40
|
|
|
|
// List a chacter's stats
|
|
stats: 40
|
|
|
|
// List a chacter's storage items
|
|
storagelist: 40
|
|
|
|
//---------------------
|
|
// 50: Sub-GM+ commands
|
|
|
|
// Change a character's clothing color
|
|
dye: 50
|
|
|
|
// Give another character a fake name
|
|
fakename: 50
|
|
|
|
// Open the hatch dialog for a character
|
|
hatch: 50
|
|
|
|
// Change a character's hair color
|
|
hcolor: 50
|
|
haircolor: 50
|
|
|
|
// Change a character's hair style
|
|
hstyle: 50
|
|
hairstyle: 50
|
|
|
|
// Changes character's model
|
|
model: 50
|
|
|
|
// Give or remove a peco from a character
|
|
mount: 50
|
|
mountpeco: 50
|
|
|
|
// Make another character's pet friendly/not
|
|
petfriendly: 50
|
|
|
|
// Rename another character's pet
|
|
petrename: 50
|
|
|
|
// Change a character's size
|
|
size: 50
|
|
|
|
//----------------
|
|
// 60: GM commands
|
|
|
|
// Resurrects a dead character
|
|
alive: 60
|
|
revive: 60
|
|
|
|
// Give a player all the skills available to him/her
|
|
allskill: 60
|
|
allskills: 60
|
|
skillall: 60
|
|
skillsall: 60
|
|
|
|
// Give a character the maximum possible stats
|
|
allstat: 60
|
|
allstats: 60
|
|
statall: 60
|
|
statsall: 60
|
|
|
|
// Change another character's base level (3 same commands)
|
|
blvl: 60
|
|
blevel: 60
|
|
baselvl: 60
|
|
baselevel: 60
|
|
|
|
// Changes the sex of an online player (all characters on the account)
|
|
changesex: 60
|
|
|
|
// Delete items from a character
|
|
delitem: 60
|
|
|
|
// Disguise a character
|
|
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
|
|
|
|
// Change the guild level for a character's guild
|
|
glvl: 60
|
|
glevel: 60
|
|
guildlvl: 60
|
|
guildlevel: 60
|
|
|
|
// Open guild storage for a character
|
|
gstorage: 60
|
|
|
|
// Heal a character
|
|
heal: 60
|
|
|
|
// Invoke GM Hide on a character
|
|
hide: 60
|
|
|
|
// Increase a character's homunculus' level
|
|
hlvl: 60
|
|
hlevel: 60
|
|
homlvl: 60
|
|
homlevel: 60
|
|
|
|
// Evolve a character's homunculus
|
|
homevolve: 60
|
|
homevolution: 60
|
|
|
|
// Change a character's homunculus' friendly value
|
|
homfriendly: 60
|
|
|
|
// Change a character's homunculus' hunger value
|
|
homhungry: 60
|
|
|
|
// View a character's homunculus' stats
|
|
hominfo: 40
|
|
|
|
// Give another character an item
|
|
item: 60
|
|
|
|
// Create a specific item (with cards, refines, etc
|
|
item2: 60
|
|
|
|
// Remove all of a character's possessions
|
|
itemreset: 60
|
|
|
|
// Change another character's job (2 same commands)
|
|
job: 60
|
|
jobchange: 60
|
|
|
|
// Change another character's job level (3 same commands)
|
|
jlvl: 60
|
|
jlevel: 60
|
|
joblvl: 60
|
|
joblevel: 60
|
|
|
|
// Allow a character to attack anybody
|
|
killer: 60
|
|
|
|
// Make a character killable by anybody
|
|
killable: 60
|
|
|
|
// Return a character to their respawn point
|
|
load: 60
|
|
|
|
// Take away a character's platinum skill
|
|
lostskill: 60
|
|
|
|
// Make a character immune to monsters
|
|
monsterignore: 60
|
|
|
|
// Apply a certain option to another character
|
|
option: 60
|
|
|
|
// Change a character's pet's hungry value
|
|
pethungry: 60
|
|
|
|
// Produce forged equipment on a character (as if he/she was a blacksmith)
|
|
produce: 60
|
|
|
|
// Give another character a platinum skill
|
|
questskill: 60
|
|
|
|
// Performs a stat and skill reset on someone else.
|
|
reset: 60
|
|
|
|
// Save another character
|
|
save: 60
|
|
|
|
// Gives another character skill points
|
|
skpoint: 60
|
|
|
|
// Change a character's walking speed
|
|
speed: 60
|
|
|
|
// Give another character spiritball effect
|
|
spiritball: 60
|
|
|
|
// Open storage for a character
|
|
storage: 60
|
|
|
|
// Gives another character status points
|
|
stpoint: 60
|
|
|
|
// Change a character's stats
|
|
str: 60
|
|
agi: 60
|
|
vit: 60
|
|
int: 60
|
|
dex: 60
|
|
luk: 60
|
|
|
|
// Resets another character's status, skills
|
|
streset: 60
|
|
skreset: 60
|
|
|
|
// Warp a player somewhere else (3 same commands)
|
|
warp: 60
|
|
rura: 60
|
|
rura+: 60
|
|
|
|
//----------------------
|
|
// 80: GM Chief commands
|
|
|
|
// Refine a character's equipment
|
|
refine: 80
|
|
|
|
// Give another character zeny
|
|
zeny: 80
|
|
|
|
//---------------------------
|
|
// 99: Administrator commands
|
|
|
|
//---------------------------------------------------------------
|
|
// 100: Disabled commands
|
|
|
|
|
|
import: conf/import/charcommand_conf.txt
|