1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
// 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,
CharCommandSpiritball,
CharCommandItemList,
CharCommandEffect,
CharCommandStorageList,
CharCommandItem, // by MC Cameri
CharCommandWarp,
CharCommandZeny,
CharCommandFakeName,
CharCommandBaseLevel,
CharCommandJobLevel,
CharCommandQuestSkill,
CharCommandLostSkill,
CharCommandSkReset,
CharCommandStReset,
CharCommandModel,
CharCommandSKPoint,
CharCommandSTPoint,
CharCommandChangeSex,
CharCommandFeelReset, // Komurka
CharCommandHelp,
CharCommandLoad,
CharCommandSpeed,
CharCommandStorage,
CharCommandGStorage,
CharCommandHide,
CharCommandAlive,
CharCommandHeal,
CharCommandItem2,
CharCommandItemReset,
CharCommandRefine,
CharCommandProduce,
CharCommandStrength,
CharCommandAgility,
CharCommandVitality,
CharCommandIntelligence,
CharCommandDexterity,
CharCommandLuck,
CharCommandGuildLevelUp,
CharCommandHatch,
CharCommandPetHungry,
CharCommandAllSkill,
CharCommandDye,
CharCommandHStyle,
CharCommandHColor,
CharCommandAllStats,
CharCommandMountPeco,
CharCommandDelItem,
CharCommandJailTime,
CharCommandDisguie,
CharCommandUnDisguise,
CharCommandCartList,
CharCommandKiller,
CharCommandKillable,
CharCommandRefresh,
CharCommandExp,
CharCommandMonsterIgnore,
CharCommandSize,
CharCommandHomLevel,
CharCommandHomEvolve,
CharCommandHomFriendly,
CharCommandHomHungry,
CharCommandHomInfo,
// No more commands 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
is_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);
extern char charcommand_symbol;
#endif /* _CHARCOMMAND_H_ */
|