Advertisement
Lighta

stats-mod Ea statslof.h

Feb 11th, 2012
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.95 KB | None | 0 0
  1. // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. // Legend Of Fea Statistics modules
  4.  
  5. #ifndef _STATSLOF_H_
  6. #define _STATSLOF_H_
  7.  
  8. #define MAX_SKILL_CNT 100        //Nombre de skill different max stocker
  9. #define MAX_CONSO_CNT 100        //Nombre de item different max stocker
  10. #define MAX_CHAR_ID 500            //Nombre de char different max stocker
  11. #define MAX_DMG_DONE 9            //Nombre de dmg different max stocker
  12. #define MAX_KILL_CNT 7            //Nombre de kill different max stocker
  13. #define MAX_HEAL_CNT 4            //Nombre de heal different max stocker
  14. #define MAX_GSKILL_CNT 5        //Nombre de gskill different max stocker
  15. #define MAX_GUILD_ID 500        //Nombre de guild different max stocker
  16. #define MAX_GKILL_CNT 7
  17. #define QUERY_LENGTH 128        //Taille max de nos requetes
  18. #define TYPEWOE 1            //Stats type
  19. #define TYPERWC 2
  20. #define CMDOK 1                //CMD status
  21. #define CMDFAIL -1
  22. #define CMDDEF 0
  23. #define STATSKILL 0
  24. #define STATCONSO 1
  25. #define STATDMG 2
  26. #define STATKILL 3
  27. #define STATDMGDONE 4
  28. #define STATHEAL 5
  29. #define STATGSKILL 6
  30. #define STATGKILL 7
  31. #define SKILL_OFFENSIVE 1
  32. #define SKILL_DEFENSIVE 2
  33. #define HEAL_REC 1
  34. #define HEAL_DONE 2
  35. #define MAX_BUFFER 512
  36.  
  37. #define PLDEATH 1
  38. #define PLKILL 2
  39.  
  40. #include "../common/mmo.h" // MAX_SKILL, struct square
  41. #include "map.h" // struct block_list
  42.  
  43. //Definition part (please don't touch unless you know what you're doing)
  44. struct map_session_data;
  45. struct homun_data;
  46. struct skill_unit;
  47. struct skill_unit_group;
  48. struct status_change_entry;
  49.  
  50. int statslof_addchar(int statstype,int index, int idplayers);
  51. int statslof_skill_cnt(struct map_session_data *sd, int idplayers, int idskill, int skilltype);
  52. int statslof_addskill(int index, int idskill, int skilltype);
  53. int statslof_conso_cnt(struct map_session_data *sd, int idplayers, int iditem);
  54. int statslof_addconso(int index, int idconso);
  55. int statslof_damage_cnt(struct map_session_data *sd, int idplayers, int idbyplayers,int dammage);
  56. int statslof_kill_cnt(struct map_session_data *sd, int idplayers, int idkill);
  57. int statslof_heal_cnt(struct map_session_data *sd, int idplayers, int hp, int healtype);
  58.  
  59. int statslof_addguild(int statstype,int index, int idguild);
  60. int statslof_gskill_cnt(struct map_session_data *sd, int idguild, int idskill);
  61. int statslof_addgskill(int index, int idskill);
  62. int statslof_gkill_cnt(struct map_session_data *sd, int idguild, int idkill);
  63.  
  64. int statslof_init();
  65. int statslof_insert_inCSV();
  66. #ifndef TXT_ONLY
  67. int statslof_insert_inDB();
  68. #endif /* not TXT_ONLY */
  69. int statslof_clean();
  70. int statslof_clean_tab();
  71. int statslof_reset();
  72. int statslof_enable(int typeStat);
  73. int statslof_disable(int typeStat);
  74.  
  75. int statslof_display(struct map_session_data *sd, int statstype);
  76. int statslof_test(struct map_session_data *sd);
  77.  
  78. int statslof_getCurrentTime();
  79. int statslof_getCurrentDate();
  80.  
  81. #endif // _STATSLOF_H_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement