root/src/map/atcommand.h @ 13

Revision 1, 2.5 kB (checked in by jinshiro, 17 years ago)
Line 
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"
8struct 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
16extern char atcommand_symbol;
17typedef int (*AtCommandFunc)(const int fd, struct map_session_data* sd, const char* command, const char* message);
18
19bool is_atcommand(const int fd, struct map_session_data* sd, const char* message);
20bool is_atcommand_sub(const int fd, struct map_session_data* sd, const char* str, int gmlvl);
21int get_atcommand_level(const AtCommandFunc func);
22
23void do_init_atcommand(void);
24void do_final_atcommand(void);
25int atcommand_config_read(const char *cfgName);
26
27int atcommand_mail(const int fd, struct map_session_data* sd,const char* command, const char* message);
28int atcommand_item(const int fd, struct map_session_data* sd,const char* command, const char* message);
29int atcommand_mapmove(const int fd, struct map_session_data* sd,const char* command, const char* message);
30int atcommand_monster(const int fd, struct map_session_data* sd, const char* command, const char* message);
31int atcommand_jumpto(const int fd, struct map_session_data* sd, const char* command, const char* message);
32int atcommand_recall(const int fd, struct map_session_data* sd, const char* command, const char* message);
33int atcommand_hide(const int fd, struct map_session_data* sd, const char* command, const char* message);
34int atcommand_mute(const int fd, struct map_session_data* sd, const char* command, const char* message);
35int atcommand_kick(const int fd, struct map_session_data* sd, const char* command, const char* message);
36int atcommand_broadcast(const int fd, struct map_session_data* sd,const char* command, const char* message);
37int atcommand_localbroadcast(const int fd, struct map_session_data* sd,const char* command, const char* message);
38int atcommand_reset(const int fd, struct map_session_data* sd,const char* command, const char* message);
39int atcommand_unloadnpc(const int fd, struct map_session_data* sd, const char* command, const char* message);
40
41#define MAX_MSG 1000
42extern char* msg_table[MAX_MSG];
43char* msg_txt(int msg_number);
44int msg_config_read(const char* cfgName);
45void do_final_msg(void);
46
47#endif /* _ATCOMMAND_H_ */
Note: See TracBrowser for help on using the browser.