clif.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef _CLIF_H_
  4. #define _CLIF_H_
  5. #include "../common/cbasetypes.h"
  6. //#include "../common/mmo.h"
  7. struct storage_data;
  8. struct guild_storage;
  9. //#include "map.h"
  10. struct block_list;
  11. struct unit_data;
  12. struct map_session_data;
  13. struct homun_data;
  14. struct pet_data;
  15. struct mob_data;
  16. struct npc_data;
  17. struct chat_data;
  18. struct flooritem_data;
  19. struct skill_unit;
  20. struct s_vending;
  21. struct party;
  22. struct party_data;
  23. struct guild;
  24. struct quest;
  25. #include <stdarg.h>
  26. // server->client protocol version
  27. // 0 - pre-?
  28. // 1 - ? - 0x196
  29. // 2 - ? - 0x78, 0x79
  30. // 3 - ? - 0x1c8, 0x1c9, 0x1de
  31. // 4 - ? - 0x1d7, 0x1d8, 0x1d9, 0x1da
  32. // 5 - 2003-12-18aSakexe+ - 0x1ee, 0x1ef, 0x1f0, ?0x1c4, 0x1c5?
  33. // 6 - 2004-03-02aSakexe+ - 0x1f4, 0x1f5
  34. // 7 - 2005-04-11aSakexe+ - 0x229, 0x22a, 0x22b, 0x22c
  35. // 20070521 - 2007-05-21aSakexe+ - 0x283
  36. // 20070821 - 2007-08-21aSakexe+ - 0x2c5
  37. // 20070918 - 2007-09-18aSakexe+ - 0x2d7, 0x2d9, 0x2da
  38. // 20071106 - 2007-11-06aSakexe+ - 0x78, 0x7c, 0x22c
  39. #ifndef PACKETVER
  40. #define PACKETVER 20071106
  41. #endif
  42. // backward compatible PACKETVER 8 and 9
  43. #if PACKETVER == 8
  44. #undef PACKETVER
  45. #define PACKETVER 20070521
  46. #endif
  47. #if PACKETVER == 9
  48. #undef PACKETVER
  49. #define PACKETVER 20071106
  50. #endif
  51. // packet DB
  52. #define MAX_PACKET_DB 0x400
  53. #define MAX_PACKET_VER 22
  54. struct s_packet_db {
  55. short len;
  56. void (*func)(int, struct map_session_data *);
  57. short pos[20];
  58. };
  59. // packet_db[SERVER] is reserved for server use
  60. #define SERVER 0
  61. #define packet_len(cmd) packet_db[SERVER][cmd].len
  62. extern struct s_packet_db packet_db[MAX_PACKET_VER+1][MAX_PACKET_DB+1];
  63. // local define
  64. typedef enum send_target {
  65. ALL_CLIENT,
  66. ALL_SAMEMAP,
  67. AREA, // area
  68. AREA_WOS, // area, without self
  69. AREA_WOC, // area, without chatrooms
  70. AREA_WOSC, // area, without own chatroom
  71. AREA_CHAT_WOC, // hearable area, without chatrooms
  72. CHAT, // current chatroom
  73. CHAT_WOS, // current chatroom, without self
  74. PARTY,
  75. PARTY_WOS,
  76. PARTY_SAMEMAP,
  77. PARTY_SAMEMAP_WOS,
  78. PARTY_AREA,
  79. PARTY_AREA_WOS,
  80. GUILD,
  81. GUILD_WOS,
  82. GUILD_SAMEMAP,
  83. GUILD_SAMEMAP_WOS,
  84. GUILD_AREA,
  85. GUILD_AREA_WOS,
  86. DUEL,
  87. DUEL_WOS,
  88. CHAT_MAINCHAT, // everyone on main chat
  89. SELF,
  90. } send_target;
  91. int clif_setip(const char* ip);
  92. void clif_setbindip(const char* ip);
  93. void clif_setport(uint16 port);
  94. uint32 clif_getip(void);
  95. uint32 clif_refresh_ip(void);
  96. uint16 clif_getport(void);
  97. int clif_authok(struct map_session_data *);
  98. int clif_authfail_fd(int fd,int type);
  99. int clif_charselectok(int);
  100. int clif_dropflooritem(struct flooritem_data *);
  101. int clif_clearflooritem(struct flooritem_data *,int);
  102. int clif_clearunit_single(int id, uint8 type, int fd);
  103. int clif_clearunit_area(struct block_list* bl, uint8 type);
  104. int clif_clearunit_delayed(struct block_list* bl, unsigned int tick);
  105. int clif_spawn(struct block_list*); //area
  106. int clif_walkok(struct map_session_data*); // self
  107. void clif_move(struct unit_data *ud); //area
  108. void clif_changemap(struct map_session_data*,short,int,int); //self
  109. void clif_changemapserver(struct map_session_data* sd, unsigned short map_index, int x, int y, uint32 ip, uint16 port); //self
  110. void clif_blown(struct block_list *); // area
  111. void clif_slide(struct block_list *,int,int); // area
  112. void clif_fixpos(struct block_list *); // area
  113. int clif_npcbuysell(struct map_session_data*,int); //self
  114. int clif_buylist(struct map_session_data*,struct npc_data*); //self
  115. int clif_selllist(struct map_session_data*); //self
  116. int clif_scriptmes(struct map_session_data*,int,const char*); //self
  117. int clif_scriptnext(struct map_session_data*,int); //self
  118. int clif_scriptclose(struct map_session_data*,int); //self
  119. int clif_scriptmenu(struct map_session_data* sd, int npcid, const char* mes); //self
  120. int clif_scriptinput(struct map_session_data*,int); //self
  121. int clif_scriptinputstr(struct map_session_data *sd,int npcid); // self
  122. int clif_cutin(struct map_session_data* sd, const char* image, int type); //self
  123. int clif_viewpoint(struct map_session_data*,int,int,int,int,int,int); //self
  124. int clif_additem(struct map_session_data *sd, int n, int amount, int fail); // self
  125. int clif_delitem(struct map_session_data*,int,int); //self
  126. int clif_updatestatus(struct map_session_data*,int); //self
  127. int clif_changestatus(struct block_list*,int,int); //area
  128. int clif_damage(struct block_list* src,struct block_list *dst,unsigned int tick,int sdelay,int ddelay,int damage,int div,int type,int damage2); // area
  129. void clif_takeitem(struct block_list* src,struct block_list* dst);
  130. void clif_sitting(struct block_list* bl);
  131. void clif_standing(struct block_list* bl);
  132. void clif_changelook(struct block_list *bl,int type,int val); // area
  133. void clif_changetraplook(struct block_list *bl,int val); // area
  134. void clif_refreshlook(struct block_list *bl,int id,int type,int val,enum send_target target); //area specified in 'target'
  135. int clif_arrowequip(struct map_session_data *sd,int val); //self
  136. int clif_arrow_fail(struct map_session_data *sd,int type); //self
  137. int clif_arrow_create_list(struct map_session_data *sd); //self
  138. int clif_statusupack(struct map_session_data *,int,int,int); // self
  139. int clif_equipitemack(struct map_session_data *,int,int,int); // self
  140. int clif_unequipitemack(struct map_session_data *,int,int,int); // self
  141. int clif_misceffect(struct block_list*,int); // area
  142. int clif_misceffect2(struct block_list *bl,int type);
  143. int clif_changeoption(struct block_list*); // area
  144. int clif_changeoption2(struct block_list*); // area
  145. int clif_useitemack(struct map_session_data*,int,int,int); // self
  146. void clif_GlobalMessage(struct block_list* bl, const char* message);
  147. void clif_createchat(struct map_session_data* sd, int fail); // self
  148. int clif_dispchat(struct chat_data*,int); // area or fd
  149. int clif_joinchatfail(struct map_session_data*,int); // self
  150. int clif_joinchatok(struct map_session_data*,struct chat_data*); // self
  151. int clif_addchat(struct chat_data*,struct map_session_data*); // chat
  152. void clif_changechatowner(struct chat_data* cd, struct map_session_data* sd); // chat
  153. int clif_clearchat(struct chat_data*,int); // area or fd
  154. void clif_leavechat(struct chat_data* cd, struct map_session_data* sd, bool flag); // chat
  155. int clif_changechatstatus(struct chat_data*); // chat
  156. int clif_refresh(struct map_session_data*); // self
  157. int clif_fame_blacksmith(struct map_session_data *, int);
  158. int clif_fame_alchemist(struct map_session_data *, int);
  159. int clif_fame_taekwon(struct map_session_data *, int);
  160. void clif_emotion(struct block_list *bl,int type);
  161. void clif_talkiebox(struct block_list* bl, const char* talkie);
  162. void clif_wedding_effect(struct block_list *bl);
  163. void clif_divorced(struct map_session_data* sd, const char* name);
  164. //void clif_callpartner(struct map_session_data *sd);
  165. void clif_soundeffect(struct map_session_data* sd, struct block_list* bl, const char* name, int type);
  166. int clif_soundeffectall(struct block_list* bl, const char *name, int type, enum send_target coverage);
  167. void clif_parse_ActionRequest_sub(struct map_session_data *sd, int action_type, int target_id, unsigned int tick);
  168. void clif_parse_LoadEndAck(int fd,struct map_session_data *sd);
  169. void clif_hotkeys_send(struct map_session_data *sd);
  170. // trade
  171. void clif_traderequest(struct map_session_data* sd, const char* name);
  172. void clif_tradestart(struct map_session_data* sd, uint8 type);
  173. void clif_tradeadditem(struct map_session_data* sd, struct map_session_data* tsd, int index, int amount);
  174. void clif_tradeitemok(struct map_session_data* sd, int index, int fail);
  175. void clif_tradedeal_lock(struct map_session_data* sd, int fail);
  176. void clif_tradecancelled(struct map_session_data* sd);
  177. void clif_tradecompleted(struct map_session_data* sd, int fail);
  178. // storage
  179. #include "storage.h"
  180. void clif_storagelist(struct map_session_data* sd, struct storage_data* stor);
  181. void clif_updatestorageamount(struct map_session_data* sd, int amount);
  182. void clif_storageitemadded(struct map_session_data* sd, struct item* i, int index, int amount);
  183. void clif_storageitemremoved(struct map_session_data* sd, int index, int amount);
  184. void clif_storageclose(struct map_session_data* sd);
  185. void clif_guildstoragelist(struct map_session_data* sd, struct guild_storage* stor);
  186. void clif_updateguildstorageamount(struct map_session_data* sd, int amount);
  187. void clif_guildstorageitemadded(struct map_session_data* sd, struct item* i, int index, int amount);
  188. int clif_insight(struct block_list *,va_list); // map_forallinmovearea callback
  189. int clif_outsight(struct block_list *,va_list); // map_forallinmovearea callback
  190. int clif_class_change(struct block_list *bl,int class_,int type);
  191. #define clif_mob_class_change(md, class_) clif_class_change(&md->bl, class_, 1)
  192. int clif_mob_equip(struct mob_data *md,int nameid); // [Valaris]
  193. int clif_skillinfo(struct map_session_data *sd,int skillid,int type,int range);
  194. int clif_skillinfoblock(struct map_session_data *sd);
  195. int clif_skillup(struct map_session_data *sd,int skill_num);
  196. int clif_skillcasting(struct block_list* bl,int src_id,int dst_id,int dst_x,int dst_y,int skill_num,int pl,int casttime);
  197. int clif_skillcastcancel(struct block_list* bl);
  198. int clif_skill_fail(struct map_session_data *sd,int skill_id,int type,int btype);
  199. int clif_skill_damage(struct block_list *src,struct block_list *dst,unsigned int tick,int sdelay,int ddelay,int damage,int div,int skill_id,int skill_lv,int type);
  200. //int clif_skill_damage2(struct block_list *src,struct block_list *dst,unsigned int tick,int sdelay,int ddelay,int damage,int div,int skill_id,int skill_lv,int type);
  201. int clif_skill_nodamage(struct block_list *src,struct block_list *dst,int skill_id,int heal,int fail);
  202. int clif_skill_poseffect(struct block_list *src,int skill_id,int val,int x,int y,int tick);
  203. int clif_skill_estimation(struct map_session_data *sd,struct block_list *dst);
  204. void clif_skill_warppoint(struct map_session_data* sd, short skill_num, short skill_lv, unsigned short map1, unsigned short map2, unsigned short map3, unsigned short map4);
  205. void clif_skill_memomessage(struct map_session_data* sd, int type);
  206. void clif_skill_teleportmessage(struct map_session_data* sd, int type);
  207. int clif_skill_produce_mix_list(struct map_session_data *sd, int trigger);
  208. int clif_produceeffect(struct map_session_data* sd,int flag,int nameid);
  209. void clif_skill_setunit(struct skill_unit *unit);
  210. void clif_skill_delunit(struct skill_unit *unit);
  211. void clif_01ac(struct block_list* bl);
  212. int clif_autospell(struct map_session_data *sd,int skilllv);
  213. void clif_devotion(struct block_list *src, struct map_session_data *tsd);
  214. int clif_spiritball(struct map_session_data *sd);
  215. int clif_combo_delay(struct block_list *src,int wait);
  216. int clif_bladestop(struct block_list *src,struct block_list *dst,int bool_);
  217. void clif_changemapcell(int fd, int m, int x, int y, int type, enum send_target target);
  218. int clif_status_load(struct block_list *bl,int type, int flag);
  219. int clif_status_change(struct block_list *bl,int type,int flag);
  220. int clif_wis_message(int fd, const char* nick, const char* mes, int mes_len);
  221. int clif_wis_end(int fd,int flag);
  222. int clif_solved_charname(int fd, int charid, const char* name);
  223. int clif_charnameack(int fd, struct block_list *bl);
  224. int clif_charnameupdate(struct map_session_data *ssd);
  225. int clif_use_card(struct map_session_data *sd,int idx);
  226. int clif_insert_card(struct map_session_data *sd,int idx_equip,int idx_card,int flag);
  227. void clif_inventorylist(struct map_session_data *sd);
  228. void clif_equiplist(struct map_session_data *sd);
  229. int clif_cart_additem(struct map_session_data*,int,int,int);
  230. int clif_cart_delitem(struct map_session_data*,int,int);
  231. void clif_cartlist(struct map_session_data *sd);
  232. void clif_clearcart(int fd);
  233. int clif_item_identify_list(struct map_session_data *sd);
  234. int clif_item_identified(struct map_session_data *sd,int idx,int flag);
  235. int clif_item_repair_list (struct map_session_data *sd, struct map_session_data *dstsd);
  236. int clif_item_repaireffect(struct map_session_data *sd, int nameid, int flag);
  237. int clif_item_refine_list(struct map_session_data *sd);
  238. int clif_item_skill(struct map_session_data *sd,int skillid,int skilllv);
  239. int clif_mvp_effect(struct map_session_data *sd);
  240. int clif_mvp_item(struct map_session_data *sd,int nameid);
  241. int clif_mvp_exp(struct map_session_data *sd, unsigned int exp);
  242. void clif_changed_dir(struct block_list *bl, enum send_target target);
  243. // vending
  244. void clif_openvendingreq(struct map_session_data* sd, int num);
  245. void clif_showvendingboard(struct block_list* bl, const char* message, int fd);
  246. void clif_closevendingboard(struct block_list* bl,int fd);
  247. void clif_vendinglist(struct map_session_data* sd,int id, struct s_vending* vending);
  248. void clif_buyvending(struct map_session_data* sd, int index, int amount, int fail);
  249. void clif_openvending(struct map_session_data* sd, int id, struct s_vending* vending);
  250. void clif_vendingreport(struct map_session_data* sd, int index, int amount);
  251. int clif_movetoattack(struct map_session_data *sd,struct block_list *bl);
  252. // party
  253. int clif_party_created(struct map_session_data *sd,int result);
  254. int clif_party_member_info(struct party_data *p, struct map_session_data *sd);
  255. int clif_party_info(struct party_data *p, struct map_session_data *sd);
  256. int clif_party_invite(struct map_session_data *sd,struct map_session_data *tsd);
  257. void clif_party_inviteack(struct map_session_data* sd, const char* nick, int flag);
  258. int clif_party_option(struct party_data *p,struct map_session_data *sd,int flag);
  259. int clif_party_leaved(struct party_data* p, struct map_session_data* sd, int account_id, const char* name, int flag);
  260. int clif_party_message(struct party_data* p, int account_id, const char* mes, int len);
  261. void clif_party_move(struct party* p, struct map_session_data* sd, int online);
  262. int clif_party_xy(struct map_session_data *sd);
  263. int clif_party_xy_single(int fd, struct map_session_data *sd);
  264. int clif_party_hp(struct map_session_data *sd);
  265. void clif_hpmeter_single(int fd, int id, unsigned int hp, unsigned int maxhp);
  266. int clif_hpmeter(struct map_session_data *sd);
  267. // guild
  268. int clif_guild_created(struct map_session_data *sd,int flag);
  269. int clif_guild_belonginfo(struct map_session_data *sd,struct guild *g);
  270. int clif_guild_masterormember(struct map_session_data *sd);
  271. int clif_guild_basicinfo(struct map_session_data *sd);
  272. int clif_guild_allianceinfo(struct map_session_data *sd);
  273. int clif_guild_memberlist(struct map_session_data *sd);
  274. int clif_guild_skillinfo(struct map_session_data *sd);
  275. int clif_guild_send_onlineinfo(struct map_session_data *sd); //[LuzZza]
  276. int clif_guild_memberlogin_notice(struct guild *g,int idx,int flag);
  277. int clif_guild_invite(struct map_session_data *sd,struct guild *g);
  278. int clif_guild_inviteack(struct map_session_data *sd,int flag);
  279. int clif_guild_leave(struct map_session_data *sd,const char *name,const char *mes);
  280. int clif_guild_expulsion(struct map_session_data *sd,const char *name,const char *mes,int account_id);
  281. int clif_guild_positionchanged(struct guild *g,int idx);
  282. int clif_guild_memberpositionchanged(struct guild *g,int idx);
  283. int clif_guild_emblem(struct map_session_data *sd,struct guild *g);
  284. void clif_guild_emblem_area(struct block_list* bl);
  285. int clif_guild_notice(struct map_session_data *sd,struct guild *g);
  286. int clif_guild_message(struct guild *g,int account_id,const char *mes,int len);
  287. int clif_guild_skillup(struct map_session_data *sd,int skill_num,int lv);
  288. int clif_guild_reqalliance(struct map_session_data *sd,int account_id,const char *name);
  289. int clif_guild_allianceack(struct map_session_data *sd,int flag);
  290. int clif_guild_delalliance(struct map_session_data *sd,int guild_id,int flag);
  291. int clif_guild_oppositionack(struct map_session_data *sd,int flag);
  292. int clif_guild_broken(struct map_session_data *sd,int flag);
  293. int clif_guild_xy(struct map_session_data *sd);
  294. int clif_guild_xy_single(int fd, struct map_session_data *sd);
  295. int clif_guild_xy_remove(struct map_session_data *sd);
  296. // atcommand
  297. int clif_displaymessage(const int fd,const char* mes);
  298. int clif_disp_onlyself(struct map_session_data *sd,const char *mes,int len);
  299. void clif_disp_message(struct block_list* src, const char* mes, int len, enum send_target target);
  300. int clif_GMmessage(struct block_list* bl, const char* mes, int len, int flag);
  301. void clif_MainChatMessage(const char* message); //luzza
  302. int clif_announce(struct block_list *bl, const char* mes, int len, unsigned long color, int flag);
  303. int clif_announce_ex(struct block_list *bl, const char* mes, int len, unsigned long color, int flag, int size);
  304. int clif_heal(int fd,int type,int val);
  305. int clif_resurrection(struct block_list *bl,int type);
  306. void clif_set0199(struct map_session_data* sd, int mode);
  307. int clif_pvpset(struct map_session_data *sd, int pvprank, int pvpnum,int type);
  308. int clif_send0199(int map,int type);
  309. void clif_refine(int fd, int fail, int index, int val);
  310. void clif_upgrademessage(int fd, int result, int item_id);
  311. //petsystem
  312. int clif_catch_process(struct map_session_data *sd);
  313. int clif_pet_roulette(struct map_session_data *sd,int data);
  314. int clif_sendegg(struct map_session_data *sd);
  315. int clif_send_petstatus(struct map_session_data *sd);
  316. int clif_send_petdata(struct map_session_data *sd, struct pet_data* pd, int type, int param);
  317. #define clif_pet_equip(sd, pd) clif_send_petdata(sd, pd, 3, (pd)->vd.head_bottom)
  318. #define clif_pet_equip_area(pd) clif_send_petdata(NULL, pd, 3, (pd)->vd.head_bottom)
  319. #define clif_pet_performance(pd, param) clif_send_petdata(NULL, pd, 4, param)
  320. int clif_pet_emotion(struct pet_data *pd,int param);
  321. int clif_pet_food(struct map_session_data *sd,int foodid,int fail);
  322. //friends list
  323. int clif_friendslist_toggle_sub(struct map_session_data *sd,va_list ap);
  324. void clif_friendslist_send(struct map_session_data *sd);
  325. void clif_friendslist_reqack(struct map_session_data *sd, struct map_session_data *f_sd, int type);
  326. // [Valaris]
  327. int clif_mob_hp(struct mob_data *md);
  328. void clif_weather(int m); // [Valaris]
  329. int clif_specialeffect(struct block_list* bl, int type, enum send_target target); // special effects [Valaris]
  330. void clif_specialeffect_single(struct block_list* bl, int type, int fd);
  331. int clif_message(struct block_list *bl, const char* msg); // messages (from mobs/npcs) [Valaris]
  332. int clif_GM_kickack(struct map_session_data *sd,int id);
  333. void clif_GM_kick(struct map_session_data *sd,struct map_session_data *tsd);
  334. void clif_manner_message(struct map_session_data* sd, uint32 type);
  335. void clif_GM_silence(struct map_session_data* sd, struct map_session_data* tsd, uint8 type);
  336. int clif_timedout(struct map_session_data *sd);
  337. int clif_disp_overhead(struct map_session_data *sd, const char* mes);
  338. void clif_get_weapon_view(struct map_session_data* sd, unsigned short *rhand, unsigned short *lhand);
  339. int clif_party_xy_remove(struct map_session_data *sd); //Fix for minimap [Kevin]
  340. void clif_gospel_info(struct map_session_data *sd, int type);
  341. void clif_parse_ReqFeel(int fd, struct map_session_data *sd, int skilllv);
  342. void clif_feel_info(struct map_session_data *sd, unsigned char feel_level, unsigned char type);
  343. void clif_hate_info(struct map_session_data *sd, unsigned char hate_level,int class_, unsigned char type);
  344. void clif_mission_info(struct map_session_data *sd, int mob_id, unsigned char progress);
  345. void clif_feel_hate_reset(struct map_session_data *sd);
  346. // [blackhole89]
  347. int clif_spawnhomun(struct homun_data *hd);
  348. int clif_hominfo(struct map_session_data *sd, struct homun_data *hd, int flag);
  349. int clif_homskillinfoblock(struct map_session_data *sd);
  350. void clif_homskillup(struct map_session_data *sd, int skill_num) ; //[orn]
  351. int clif_hom_food(struct map_session_data *sd,int foodid,int fail); //[orn]
  352. void clif_send_homdata(struct map_session_data *sd, int type, int param); //[orn]
  353. int clif_hwalkok(struct homun_data *hd); //[orn]
  354. void clif_equiptickack(struct map_session_data* sd, int flag);
  355. void clif_viewequip_ack(struct map_session_data* sd, struct map_session_data* tsd);
  356. void clif_viewequip_fail(struct map_session_data* sd);
  357. void clif_equipcheckbox(struct map_session_data* sd);
  358. //quest system [Kevin]
  359. void clif_send_questlog(struct map_session_data * sd);
  360. void clif_send_questlog_info(struct map_session_data * sd);
  361. void clif_send_quest_info(struct map_session_data * sd, struct quest * qd);
  362. void clif_send_quest_delete(struct map_session_data * sd, int quest_id);
  363. void clif_send_quest_status(struct map_session_data * sd, int quest_id, bool active);
  364. int clif_send(const uint8* buf, int len, struct block_list* bl, enum send_target type);
  365. int do_final_clif(void);
  366. int do_init_clif(void);
  367. #ifndef TXT_ONLY
  368. // MAIL SYSTEM
  369. void clif_Mail_window(int fd, int flag);
  370. void clif_Mail_read(struct map_session_data *sd, int mail_id);
  371. void clif_Mail_delete(int fd, int mail_id, short fail);
  372. void clif_Mail_return(int fd, int mail_id, short fail);
  373. void clif_Mail_send(int fd, bool fail);
  374. void clif_Mail_new(int fd, int mail_id, const char *sender, const char *title);
  375. void clif_Mail_refreshinbox(struct map_session_data *sd);
  376. void clif_Mail_getattachment(int fd, uint8 flag);
  377. // AUCTION SYSTEM
  378. void clif_Auction_openwindow(struct map_session_data *sd);
  379. void clif_Auction_results(struct map_session_data *sd, short count, short pages, uint8 *buf);
  380. void clif_Auction_message(int fd, unsigned char flag);
  381. void clif_Auction_close(int fd, unsigned char flag);
  382. void clif_parse_Auction_cancelreg(int fd, struct map_session_data *sd);
  383. #endif
  384. void clif_bossmapinfo(int fd, struct mob_data *md, short flag);
  385. void clif_cashshop_show(struct map_session_data *sd, struct npc_data *nd);
  386. // ADOPTION
  387. void clif_Adopt_reply(struct map_session_data *sd, int type);
  388. // MERCENARIES
  389. void clif_mercenary_info(struct map_session_data *sd);
  390. void clif_mercenary_skillblock(struct map_session_data *sd);
  391. void clif_mercenary_message(int fd, int message);
  392. void clif_mercenary_updatestatus(struct map_session_data *sd, int type);
  393. #endif /* _CLIF_H_ */