1 | // Copyright (c) Athena Dev Teams - Licensed under GNU GPL |
---|
2 | // For more information, see LICENCE in the main folder |
---|
3 | |
---|
4 | #ifndef _INTIF_H_ |
---|
5 | #define _INFIF_H_ |
---|
6 | |
---|
7 | //#include "../common/mmo.h" |
---|
8 | struct party_member; |
---|
9 | struct guild_member; |
---|
10 | struct guild_position; |
---|
11 | struct s_pet; |
---|
12 | struct s_homunculus; |
---|
13 | struct mail_message; |
---|
14 | struct auction_data; |
---|
15 | |
---|
16 | int intif_parse(int fd); |
---|
17 | |
---|
18 | int intif_GMmessage(const char* mes,int len,int flag); |
---|
19 | int intif_announce(const char* mes,int len, unsigned long color, int flag); |
---|
20 | |
---|
21 | int intif_wis_message(struct map_session_data *sd,char *nick,char *mes,int mes_len); |
---|
22 | int intif_wis_message_to_gm(char *Wisp_name, int min_gm_level, char *mes); |
---|
23 | |
---|
24 | int intif_saveregistry(struct map_session_data *sd, int type); |
---|
25 | int intif_request_registry(struct map_session_data *sd, int flag); |
---|
26 | |
---|
27 | int intif_request_storage(int account_id); |
---|
28 | int intif_send_storage(struct storage *stor); |
---|
29 | int intif_request_guild_storage(int account_id, int guild_id); |
---|
30 | int intif_send_guild_storage(int account_id, struct guild_storage *gstor); |
---|
31 | |
---|
32 | |
---|
33 | int intif_create_party(struct party_member *member,char *name,int item,int item2); |
---|
34 | int intif_request_partyinfo(int party_id); |
---|
35 | |
---|
36 | int intif_party_addmember(int party_id,struct party_member *member); |
---|
37 | int intif_party_changeoption(int party_id, int account_id, int exp, int item); |
---|
38 | int intif_party_leave(int party_id,int account_id, int char_id); |
---|
39 | int intif_party_changemap(struct map_session_data *sd, int online); |
---|
40 | int intif_break_party(int party_id); |
---|
41 | int intif_party_message(int party_id, int account_id, const char *mes,int len); |
---|
42 | int intif_party_checkconflict(int party_id,int account_id,int char_id); |
---|
43 | int intif_party_leaderchange(int party_id,int account_id,int char_id); |
---|
44 | |
---|
45 | |
---|
46 | int intif_guild_create(const char *name, const struct guild_member *master); |
---|
47 | int intif_guild_request_info(int guild_id); |
---|
48 | int intif_guild_addmember(int guild_id, struct guild_member *m); |
---|
49 | int intif_guild_leave(int guild_id, int account_id, int char_id, int flag, const char *mes); |
---|
50 | int intif_guild_memberinfoshort(int guild_id, int account_id, int char_id, int online, int lv, int class_); |
---|
51 | int intif_guild_break(int guild_id); |
---|
52 | int intif_guild_message(int guild_id, int account_id, const char *mes, int len); |
---|
53 | int intif_guild_change_gm(int guild_id, const char* name, int len); |
---|
54 | int intif_guild_change_basicinfo(int guild_id, int type, const void *data, int len); |
---|
55 | int intif_guild_change_memberinfo(int guild_id, int account_id, int char_id, int type, const void *data, int len); |
---|
56 | int intif_guild_position(int guild_id, int idx, struct guild_position *p); |
---|
57 | int intif_guild_skillup(int guild_id, int skill_num, int account_id); |
---|
58 | int intif_guild_alliance(int guild_id1, int guild_id2, int account_id1, int account_id2, int flag); |
---|
59 | int intif_guild_notice(int guild_id, const char *mes1, const char *mes2); |
---|
60 | int intif_guild_emblem(int guild_id, int len, const char *data); |
---|
61 | int intif_guild_castle_dataload(int castle_id, int index); |
---|
62 | int intif_guild_castle_datasave(int castle_id, int index, int value); |
---|
63 | |
---|
64 | int intif_create_pet(int account_id, int char_id, short pet_type, short pet_lv, short pet_egg_id, |
---|
65 | short pet_equip, short intimate, short hungry, char rename_flag, char incuvate, char *pet_name); |
---|
66 | int intif_request_petdata(int account_id, int char_id, int pet_id); |
---|
67 | int intif_save_petdata(int account_id, struct s_pet *p); |
---|
68 | int intif_delete_petdata(int pet_id); |
---|
69 | int intif_rename(struct map_session_data *sd, int type, char *name); |
---|
70 | #define intif_rename_pc(sd, name) intif_rename(sd, 0, name) |
---|
71 | #define intif_rename_pet(sd, name) intif_rename(sd, 1, name) |
---|
72 | #define intif_rename_hom(sd, name) intif_rename(sd, 2, name) |
---|
73 | int intif_homunculus_create(int account_id, struct s_homunculus *sh); |
---|
74 | int intif_homunculus_requestload(int account_id, int homun_id); |
---|
75 | int intif_homunculus_requestsave(int account_id, struct s_homunculus* sh); |
---|
76 | int intif_homunculus_requestdelete(int homun_id); |
---|
77 | |
---|
78 | /******QUEST SYTEM*******/ |
---|
79 | int intif_request_questlog(struct map_session_data * sd); |
---|
80 | int intif_quest_delete(int char_id, int quest_id); |
---|
81 | int intif_quest_add(int char_id, struct quest * qd); |
---|
82 | |
---|
83 | #ifndef TXT_ONLY |
---|
84 | // MAIL SYSTEM |
---|
85 | int intif_Mail_requestinbox(int char_id, unsigned char flag); |
---|
86 | int intif_Mail_read(int mail_id); |
---|
87 | int intif_Mail_getattach(int char_id, int mail_id); |
---|
88 | int intif_Mail_delete(int char_id, int mail_id); |
---|
89 | int intif_Mail_return(int char_id, int mail_id); |
---|
90 | int intif_Mail_send(int account_id, struct mail_message *msg); |
---|
91 | // AUCTION SYSTEM |
---|
92 | int intif_Auction_requestlist(int char_id, short type, int price, const char* searchtext, short page); |
---|
93 | int intif_Auction_register(struct auction_data *auction); |
---|
94 | int intif_Auction_cancel(int char_id, unsigned int auction_id); |
---|
95 | int intif_Auction_close(int char_id, unsigned int auction_id); |
---|
96 | int intif_Auction_bid(int char_id, const char* name, unsigned int auction_id, int bid); |
---|
97 | #endif |
---|
98 | |
---|
99 | int CheckForCharServer(void); |
---|
100 | |
---|
101 | #endif /* _INTIF_H_ */ |
---|