intif.h 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef _INTIF_H_
  4. #define _INFIF_H_
  5. //#include "../common/mmo.h"
  6. struct party_member;
  7. struct guild_member;
  8. struct guild_position;
  9. struct s_pet;
  10. struct s_homunculus;
  11. int intif_parse(int fd);
  12. int intif_GMmessage(const char* mes,int len,int flag);
  13. int intif_announce(const char* mes,int len, unsigned long color, int flag);
  14. int intif_wis_message(struct map_session_data *sd,char *nick,char *mes,int mes_len);
  15. int intif_wis_message_to_gm(char *Wisp_name, int min_gm_level, char *mes);
  16. int intif_saveregistry(struct map_session_data *sd, int type);
  17. int intif_request_registry(struct map_session_data *sd, int flag);
  18. int intif_request_storage(int account_id);
  19. int intif_send_storage(struct storage *stor);
  20. int intif_request_guild_storage(int account_id, int guild_id);
  21. int intif_send_guild_storage(int account_id, struct guild_storage *gstor);
  22. int intif_create_party(struct party_member *member,char *name,int item,int item2);
  23. int intif_request_partyinfo(int party_id);
  24. int intif_party_addmember(int party_id,struct party_member *member);
  25. int intif_party_changeoption(int party_id, int account_id, int exp, int item);
  26. int intif_party_leave(int party_id,int account_id, int char_id);
  27. int intif_party_changemap(struct map_session_data *sd, int online);
  28. int intif_break_party(int party_id);
  29. int intif_party_message(int party_id, int account_id, char *mes,int len);
  30. int intif_party_checkconflict(int party_id,int account_id,int char_id);
  31. int intif_party_leaderchange(int party_id,int account_id,int char_id);
  32. int intif_guild_create(const char *name, const struct guild_member *master);
  33. int intif_guild_request_info(int guild_id);
  34. int intif_guild_addmember(int guild_id, struct guild_member *m);
  35. int intif_guild_leave(int guild_id, int account_id, int char_id, int flag, const char *mes);
  36. int intif_guild_memberinfoshort(int guild_id, int account_id, int char_id, int online, int lv, int class_);
  37. int intif_guild_break(int guild_id);
  38. int intif_guild_message(int guild_id, int account_id, char *mes, int len);
  39. int intif_guild_checkconflict(int guild_id, int account_id, int char_id);
  40. int intif_guild_change_gm(int guild_id, const char* name, int len);
  41. int intif_guild_change_basicinfo(int guild_id, int type, const void *data, int len);
  42. int intif_guild_change_memberinfo(int guild_id, int account_id, int char_id, int type, const void *data, int len);
  43. int intif_guild_position(int guild_id, int idx, struct guild_position *p);
  44. int intif_guild_skillup(int guild_id, int skill_num, int account_id);
  45. int intif_guild_alliance(int guild_id1, int guild_id2, int account_id1, int account_id2, int flag);
  46. int intif_guild_notice(int guild_id, const char *mes1, const char *mes2);
  47. int intif_guild_emblem(int guild_id, int len, const char *data);
  48. int intif_guild_castle_dataload(int castle_id, int index);
  49. int intif_guild_castle_datasave(int castle_id, int index, int value);
  50. int intif_create_pet(int account_id, int char_id, short pet_type, short pet_lv, short pet_egg_id,
  51. short pet_equip, short intimate, short hungry, char rename_flag, char incuvate, char *pet_name);
  52. int intif_request_petdata(int account_id, int char_id, int pet_id);
  53. int intif_save_petdata(int account_id, struct s_pet *p);
  54. int intif_delete_petdata(int pet_id);
  55. int intif_rename(struct map_session_data *sd, int type, char *name);
  56. #define intif_rename_pc(sd, name) intif_rename(sd, 0, name)
  57. #define intif_rename_pet(sd, name) intif_rename(sd, 1, name)
  58. #define intif_rename_hom(sd, name) intif_rename(sd, 2, name)
  59. int intif_homunculus_create(int account_id, struct s_homunculus *sh);
  60. int intif_homunculus_requestload(int account_id, int homun_id);
  61. int intif_homunculus_requestsave(int account_id, struct s_homunculus* sh);
  62. int intif_homunculus_requestdelete(int homun_id);
  63. int CheckForCharServer(void);
  64. #endif /* _INTIF_H_ */