int_guild.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef _INT_GUILD_SQL_H_
  4. #define _INT_GUILD_SQL_H_
  5. #define GS_BASIC 0x0001
  6. #define GS_MEMBER 0x0002
  7. #define GS_POSITION 0x0004
  8. #define GS_ALLIANCE 0x0008
  9. #define GS_EXPULSION 0x0010
  10. #define GS_SKILL 0x0020
  11. #define GS_EMBLEM 0x0040
  12. #define GS_CONNECT 0x0080
  13. #define GS_LEVEL 0x0100
  14. #define GS_MES 0x0200
  15. #define GS_MASK 0x03FF
  16. #define GS_BASIC_MASK (GS_BASIC | GS_EMBLEM | GS_CONNECT | GS_LEVEL | GS_MES)
  17. #define GS_REMOVE 0x8000
  18. struct guild;
  19. struct guild_castle;
  20. int inter_guild_parse_frommap(int fd);
  21. int inter_guild_sql_init(void);
  22. void inter_guild_sql_final(void);
  23. int inter_guild_mapif_init(int fd);
  24. int inter_guild_leave(int guild_id,int account_id,int char_id);
  25. int mapif_parse_BreakGuild(int fd,int guild_id);
  26. int inter_guild_broken(int guild_id);
  27. int inter_guild_sex_changed(int guild_id,int account_id,int char_id, int gender);
  28. int inter_guild_CharOnline(int char_id, int guild_id);
  29. int inter_guild_CharOffline(int char_id, int guild_id);
  30. //For the TXT->SQL converter.
  31. int inter_guild_tosql(struct guild *g,int flag);
  32. int inter_guildcastle_tosql(struct guild_castle *gc);
  33. #endif /* _INT_GUILD_SQL_H_ */