Files
rathena/src/map/charcommand.h
Lance 3e7a154f59 * Edited atcommand and charcommand syntax. Now it doesn't need the useless character name and ":".
modified   Changelog-Trunk.txt
modified   src/map/atcommand.c
modified   src/map/atcommand.h
modified   src/map/charcommand.c
modified   src/map/charcommand.h
modified   src/map/clif.c
modified   src/map/map.c
modified   src/map/script.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9230 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-16 15:26:27 +00:00

75 lines
1.7 KiB
C

// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef _CHARCOMMAND_H_
#define _CHARCOMMAND_H_
enum CharCommandType {
CharCommand_None = -1,
CharCommandJobChange,
CharCommandPetRename,
CharCommandPetFriendly,
CharCommandReset,
CharCommandStats,
CharCommandOption,
CharCommandSave,
CharCommandStatsAll,
CharCommandSpiritball,
CharCommandItemList,
CharCommandEffect,
CharCommandStorageList,
CharCommandItem, // by MC Cameri
CharCommandWarp,
CharCommandZeny,
CharCommandFakeName,
CharCommandBaseLevel,
CharCommandJobLevel,
CharCommandQuestSkill,
CharCommandLostSkill,
CharCommandSkReset,
CharCommandStReset,
CharCommandModel,
CharCommandSKPoint,
CharCommandSTPoint,
CharCommandChangeSex,
CharCommandFeelReset, // Komurka
CharCommandHelp,
#ifdef TXT_ONLY
/* TXT_ONLY */
/* TXT_ONLY */
#else
/* SQL-only */
/* SQL Only */
#endif
// End. No more commans after this line.
CharCommand_Unknown,
CharCommand_MAX
};
typedef enum CharCommandType CharCommandType;
typedef struct CharCommandInfo {
CharCommandType type;
const char* command;
int level;
int (*proc)(const int, struct map_session_data*,
const char* command, const char* message);
} CharCommandInfo;
CharCommandType
is_charcommand(const int fd, struct map_session_data* sd, const char* message);
CharCommandType
charcommand_sub(const int fd, struct map_session_data* sd, const char* str, int gmlvl);
CharCommandType charcommand(
struct map_session_data* sd, const int level, const char* message, CharCommandInfo* info);
int get_charcommand_level(const CharCommandType type);
int charcommand_config_read(const char *cfgName);
#endif