root/src/map/intif.h @ 1

Revision 1, 4.8 kB (checked in by jinshiro, 17 years ago)
RevLine 
[1]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"
8struct party_member;
9struct guild_member;
10struct guild_position;
11struct s_pet;
12struct s_homunculus;
13struct mail_message;
14struct auction_data;
15
16int intif_parse(int fd);
17
18int intif_GMmessage(const char* mes,int len,int flag);
19int intif_announce(const char* mes,int len, unsigned long color, int flag);
20
21int intif_wis_message(struct map_session_data *sd,char *nick,char *mes,int mes_len);
22int intif_wis_message_to_gm(char *Wisp_name, int min_gm_level, char *mes);
23
24int intif_saveregistry(struct map_session_data *sd, int type);
25int intif_request_registry(struct map_session_data *sd, int flag);
26
27int intif_request_storage(int account_id);
28int intif_send_storage(struct storage *stor);
29int intif_request_guild_storage(int account_id, int guild_id);
30int intif_send_guild_storage(int account_id, struct guild_storage *gstor);
31
32
33int intif_create_party(struct party_member *member,char *name,int item,int item2);
34int intif_request_partyinfo(int party_id);
35
36int intif_party_addmember(int party_id,struct party_member *member);
37int intif_party_changeoption(int party_id, int account_id, int exp, int item);
38int intif_party_leave(int party_id,int account_id, int char_id);
39int intif_party_changemap(struct map_session_data *sd, int online);
40int intif_break_party(int party_id);
41int intif_party_message(int party_id, int account_id, const char *mes,int len);
42int intif_party_checkconflict(int party_id,int account_id,int char_id);
43int intif_party_leaderchange(int party_id,int account_id,int char_id);
44
45
46int intif_guild_create(const char *name, const struct guild_member *master);
47int intif_guild_request_info(int guild_id);
48int intif_guild_addmember(int guild_id, struct guild_member *m);
49int intif_guild_leave(int guild_id, int account_id, int char_id, int flag, const char *mes);
50int intif_guild_memberinfoshort(int guild_id, int account_id, int char_id, int online, int lv, int class_);
51int intif_guild_break(int guild_id);
52int intif_guild_message(int guild_id, int account_id, const char *mes, int len);
53int intif_guild_change_gm(int guild_id, const char* name, int len);
54int intif_guild_change_basicinfo(int guild_id, int type, const void *data, int len);
55int intif_guild_change_memberinfo(int guild_id, int account_id, int char_id, int type, const void *data, int len);
56int intif_guild_position(int guild_id, int idx, struct guild_position *p);
57int intif_guild_skillup(int guild_id, int skill_num, int account_id);
58int intif_guild_alliance(int guild_id1, int guild_id2, int account_id1, int account_id2, int flag);
59int intif_guild_notice(int guild_id, const char *mes1, const char *mes2);
60int intif_guild_emblem(int guild_id, int len, const char *data);
61int intif_guild_castle_dataload(int castle_id, int index);
62int intif_guild_castle_datasave(int castle_id, int index, int value);
63
64int 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);
66int intif_request_petdata(int account_id, int char_id, int pet_id);
67int intif_save_petdata(int account_id, struct s_pet *p);
68int intif_delete_petdata(int pet_id);
69int 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)
73int intif_homunculus_create(int account_id, struct s_homunculus *sh);
74int intif_homunculus_requestload(int account_id, int homun_id);
75int intif_homunculus_requestsave(int account_id, struct s_homunculus* sh);
76int intif_homunculus_requestdelete(int homun_id);
77
78/******QUEST SYTEM*******/
79int intif_request_questlog(struct map_session_data * sd);
80int intif_quest_delete(int char_id, int quest_id);
81int intif_quest_add(int char_id, struct quest * qd);
82
83#ifndef TXT_ONLY
84// MAIL SYSTEM
85int intif_Mail_requestinbox(int char_id, unsigned char flag);
86int intif_Mail_read(int mail_id);
87int intif_Mail_getattach(int char_id, int mail_id);
88int intif_Mail_delete(int char_id, int mail_id);
89int intif_Mail_return(int char_id, int mail_id);
90int intif_Mail_send(int account_id, struct mail_message *msg);
91// AUCTION SYSTEM
92int intif_Auction_requestlist(int char_id, short type, int price, const char* searchtext, short page);
93int intif_Auction_register(struct auction_data *auction);
94int intif_Auction_cancel(int char_id, unsigned int auction_id);
95int intif_Auction_close(int char_id, unsigned int auction_id);
96int intif_Auction_bid(int char_id, const char* name, unsigned int auction_id, int bid);
97#endif
98
99int CheckForCharServer(void);
100
101#endif /* _INTIF_H_ */
Note: See TracBrowser for help on using the browser.