core.h 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. /// uncomment to enable query_sql script command and mysql logs to function on it's own thread
  25. /// be aware this feature is under tests and you should use at your own risk, we however
  26. /// welcome any feedback you may have regarding this feature, please send us all bug reports.
  27. //#define BETA_THREAD_TEST
  28. /// Uncomment to enable the Cell Stack Limit mod.
  29. /// It's only config is the battle_config custom_cell_stack_limit.
  30. /// Only chars affected are those defined in BL_CHAR
  31. //#define CELL_NOSTACK
  32. /// Uncomment to enable circular area checks.
  33. /// By default, most server-sided range checks in Aegis are of square shapes, so a monster
  34. /// with a range of 4 can attack anything within a 9x9 area.
  35. /// Client-sided range checks are, however, are always circular.
  36. /// Enabling this changes all checks to circular checks, which is more realistic,
  37. /// - but is not the official behaviour.
  38. //#define CIRCULAR_AREA
  39. /// Comment to disable Guild/Party Bound item system
  40. /// By default, we recover/remove Guild/Party Bound items automatically
  41. #define BOUND_ITEMS
  42. /// Uncomment to enable real-time server stats (in and out data and ram usage).
  43. //#define SHOW_SERVER_STATS
  44. /// Uncomment to enable skills damage adjustments
  45. /// By enabling this, db/skill_damage.txt and the skill_damage mapflag will adjust the
  46. /// damage rate of specified skills.
  47. //#define ADJUST_SKILL_DAMAGE
  48. /// Uncomment to enable the job base HP/SP table (job_basehpsp_db.txt)
  49. #define HP_SP_TABLES
  50. /// Uncomment to enable VIP system.
  51. //#define VIP_ENABLE
  52. /// Enable VIP script changes? (requires VIP_ENABLE)
  53. /// The primary effects of this are restrictions on non-VIP players, such as requiring
  54. /// a Reset Stone to change into third classes, paying more for equipment upgrades, and
  55. /// so forth. Note that the changes are based on euRO, not iRO.
  56. #define VIP_SCRIPT 0
  57. #ifdef VIP_ENABLE
  58. #define MIN_STORAGE 300 // Default number of storage slots.
  59. #define MIN_CHARS 3 // Default number of characters per account.
  60. #define MAX_CHAR_VIP 6 // This must be less than MAX_CHARS
  61. #define MAX_CHAR_BILLING 0 // This must be less than MAX_CHARS
  62. #endif
  63. /// Comment to disable the official packet obfuscation support.
  64. /// When enabled, make sure there is value for 'packet_keys' of used packet version or
  65. /// defined 'packet_keys_use' in db/[import/]packet_db.txt.
  66. /// This requires PACKETVER 2011-08-17 or newer.
  67. #define PACKET_OBFUSCATION
  68. /**
  69. * No settings past this point
  70. **/
  71. #include "./renewal.h"
  72. #include "./secure.h"
  73. #include "./classes/general.h"
  74. /**
  75. * Constants come last; so they process anything that could've been modified in early includes
  76. **/
  77. #include "./const.h"
  78. #endif // _CONFIG_CORE_H_