core.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. // Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef _CONFIG_CORE_H_
  4. #define _CONFIG_CORE_H_
  5. /**
  6. * rAthena configuration file (http://rathena.org)
  7. * For detailed guidance on these check http://rathena.org/wiki/SRC/config/
  8. **/
  9. /// Max number of items on @autolootid list
  10. #define AUTOLOOTITEM_SIZE 10
  11. /// The maximum number of atcommand and @warp suggestions
  12. #define MAX_SUGGESTIONS 10
  13. /// Comment to disable the official walk path
  14. /// The official walkpath disables users from taking non-clear walk paths,
  15. /// e.g. if they want to get around an obstacle they have to walk around it,
  16. /// while with OFFICIAL_WALKPATH disabled if they click to walk around a obstacle the server will do it automatically
  17. #define OFFICIAL_WALKPATH
  18. /// leave this line uncommented to enable callfunc checks when processing scripts.
  19. /// while allowed, the script engine will attempt to match user-defined functions
  20. /// in scripts allowing direct function callback (without the use of callfunc.)
  21. /// this CAN affect performance, so if you find scripts running slower or find
  22. /// your map-server using more resources while this is active, comment the line
  23. #define SCRIPT_CALLFUNC_CHECK
  24. /// Comment to enable rAthena's anonymous stat report
  25. /// We kindly ask you to consider keeping it enabled, it helps us improve rAthena.
  26. #define STATS_OPT_OUT
  27. /// uncomment to enable query_sql script command and mysql logs to function on it's own thread
  28. /// be aware this feature is under tests and you should use at your own risk, we however
  29. /// welcome any feedback you may have regarding this feature, please send us all bug reports.
  30. //#define BETA_THREAD_TEST
  31. /// Uncomment to enable the Cell Stack Limit mod.
  32. /// It's only config is the battle_config custom_cell_stack_limit.
  33. /// Only chars affected are those defined in BL_CHAR
  34. //#define CELL_NOSTACK
  35. /// Uncomment to enable circular area checks.
  36. /// By default, most server-sided range checks in Aegis are of square shapes, so a monster
  37. /// with a range of 4 can attack anything within a 9x9 area.
  38. /// Client-sided range checks are, however, are always circular.
  39. /// Enabling this changes all checks to circular checks, which is more realistic,
  40. /// - but is not the official behaviour.
  41. //#define CIRCULAR_AREA
  42. /// Comment to disable Guild/Party Bound item system
  43. /// By default, we recover/remove Guild/Party Bound items automatically
  44. #define BOUND_ITEMS
  45. /// Uncomment to enable real-time server stats (in and out data and ram usage).
  46. //#define SHOW_SERVER_STATS
  47. /// Uncomment to enable skills damage adjustments
  48. /// By enabling this, db/skill_damage.txt and the skill_damage mapflag will adjust the
  49. /// damage rate of specified skills.
  50. //#define ADJUST_SKILL_DAMAGE
  51. /// Uncomment to enable the job base HP/SP table (job_basehpsp_db.txt)
  52. #define HP_SP_TABLES
  53. /// Uncomment to enable VIP system.
  54. //#define VIP_ENABLE
  55. /// Enable VIP script changes? (requires VIP_ENABLE)
  56. /// The primary effects of this are restrictions on non-VIP players, such as requiring
  57. /// a Reset Stone to change into third classes, paying more for equipment upgrades, and
  58. /// so forth. Note that the changes are based on euRO, not iRO.
  59. #define VIP_SCRIPT 0
  60. #ifdef VIP_ENABLE
  61. #define MIN_STORAGE 300 // Default number of storage slots.
  62. #define MIN_CHARS 3 // Default number of characters per account.
  63. #define MAX_CHAR_VIP 6 // This must be less than MAX_CHARS
  64. #define MAX_CHAR_BILLING 0 // This must be less than MAX_CHARS
  65. #endif
  66. /// Comment to disable the official packet obfuscation support.
  67. /// When enabled, make sure there is value for 'packet_keys' of used packet version or
  68. /// defined 'packet_keys_use' in db/[import/]packet_db.txt.
  69. /// This requires PACKETVER 2011-08-17 or newer.
  70. #define PACKET_OBFUSCATION
  71. /**
  72. * No settings past this point
  73. **/
  74. #include "./renewal.h"
  75. #include "./secure.h"
  76. #include "./classes/general.h"
  77. /**
  78. * Constants come last; so they process anything that could've been modified in early includes
  79. **/
  80. #include "./const.h"
  81. #endif // _CONFIG_CORE_H_