[1] | 1 | // Copyright (c) Athena Dev Teams - Licensed under GNU GPL |
---|
| 2 | // For more information, see LICENCE in the main folder |
---|
| 3 | |
---|
| 4 | #ifndef _ATCOMMAND_H_ |
---|
| 5 | #define _ATCOMMAND_H_ |
---|
| 6 | |
---|
| 7 | //#include "map.h" |
---|
| 8 | struct map_session_data; |
---|
| 9 | |
---|
| 10 | //This is the distance at which @autoloot works, |
---|
| 11 | //if the item drops farther from the player than this, |
---|
| 12 | //it will not be autolooted. [Skotlex] |
---|
| 13 | //Note: The range is unlimited unless this define is set. |
---|
| 14 | //#define AUTOLOOT_DISTANCE AREA_SIZE |
---|
| 15 | |
---|
| 16 | extern char atcommand_symbol; |
---|
| 17 | typedef int (*AtCommandFunc)(const int fd, struct map_session_data* sd, const char* command, const char* message); |
---|
| 18 | |
---|
| 19 | bool is_atcommand(const int fd, struct map_session_data* sd, const char* message); |
---|
| 20 | bool is_atcommand_sub(const int fd, struct map_session_data* sd, const char* str, int gmlvl); |
---|
| 21 | int get_atcommand_level(const AtCommandFunc func); |
---|
| 22 | |
---|
| 23 | void do_init_atcommand(void); |
---|
| 24 | void do_final_atcommand(void); |
---|
| 25 | int atcommand_config_read(const char *cfgName); |
---|
| 26 | |
---|
| 27 | int atcommand_mail(const int fd, struct map_session_data* sd,const char* command, const char* message); |
---|
| 28 | int atcommand_item(const int fd, struct map_session_data* sd,const char* command, const char* message); |
---|
| 29 | int atcommand_mapmove(const int fd, struct map_session_data* sd,const char* command, const char* message); |
---|
| 30 | int atcommand_monster(const int fd, struct map_session_data* sd, const char* command, const char* message); |
---|
| 31 | int atcommand_jumpto(const int fd, struct map_session_data* sd, const char* command, const char* message); |
---|
| 32 | int atcommand_recall(const int fd, struct map_session_data* sd, const char* command, const char* message); |
---|
| 33 | int atcommand_hide(const int fd, struct map_session_data* sd, const char* command, const char* message); |
---|
| 34 | int atcommand_mute(const int fd, struct map_session_data* sd, const char* command, const char* message); |
---|
| 35 | int atcommand_kick(const int fd, struct map_session_data* sd, const char* command, const char* message); |
---|
| 36 | int atcommand_broadcast(const int fd, struct map_session_data* sd,const char* command, const char* message); |
---|
| 37 | int atcommand_localbroadcast(const int fd, struct map_session_data* sd,const char* command, const char* message); |
---|
| 38 | int atcommand_reset(const int fd, struct map_session_data* sd,const char* command, const char* message); |
---|
| 39 | int atcommand_unloadnpc(const int fd, struct map_session_data* sd, const char* command, const char* message); |
---|
| 40 | |
---|
| 41 | #define MAX_MSG 1000 |
---|
| 42 | extern char* msg_table[MAX_MSG]; |
---|
| 43 | char* msg_txt(int msg_number); |
---|
| 44 | int msg_config_read(const char* cfgName); |
---|
| 45 | void do_final_msg(void); |
---|
| 46 | |
---|
| 47 | #endif /* _ATCOMMAND_H_ */ |
---|