log.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef _LOG_H_
  4. #define _LOG_H_
  5. #include "map.h"
  6. #ifndef TXT_ONLY
  7. extern char db_server_logdb[32];
  8. #endif //NOT TXT_ONLY
  9. //New logs
  10. int log_pick(struct map_session_data *sd, char *type, int mob_id, int nameid, int amount, struct item *itm);
  11. int log_zeny(struct map_session_data *sd, char *type, struct map_session_data *src_sd, int amount);
  12. int log_npc(struct map_session_data *sd, const char *message);
  13. int log_chat(char *type, int type_id, int src_charid, int src_accid, char *map, int x, int y, char *dst_charname, char *message);
  14. int log_atcommand(struct map_session_data *sd, const char *message);
  15. //Old, but useful logs
  16. int log_branch(struct map_session_data *sd);
  17. int log_mvpdrop(struct map_session_data *sd, int monster_id, int *log_mvp);
  18. int log_config_read(char *cfgName);
  19. int should_log_item(int filter, int nameid, int amount); //log filter check
  20. extern struct Log_Config {
  21. int enable_logs;
  22. int sql_logs;
  23. int rare_items_log,refine_items_log,price_items_log,amount_items_log; //for filter
  24. int branch, pick, drop, mvpdrop, zeny, gm, npc, chat;
  25. char log_branch[32], log_pick[32], log_zeny[32], log_mvpdrop[32], log_gm[32], log_npc[32], log_chat[32];
  26. char log_branch_db[32], log_pick_db[32], log_zeny_db[32], log_mvpdrop_db[32], log_gm_db[32], log_npc_db[32], log_chat_db[32];
  27. int uptime;
  28. char log_uptime[32];
  29. } log_config;
  30. #endif