core.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 disable 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 cell_stack_limit.
  33. /// Only chars affected are those defined in BL_CHAR (mobs and players currently)
  34. //#define CELL_NOSTACK
  35. /// Uncomment to enable circular area checks.
  36. /// By default, all range checks in Aegis are of Square shapes, so a weapon range
  37. /// - of 10 allows you to attack from anywhere within a 21x21 area.
  38. /// Enabling this changes such checks to circular checks, which is more realistic,
  39. /// - but is not the official behaviour.
  40. //#define CIRCULAR_AREA
  41. /// Uncomment to enable Non Stackable items unique ID
  42. /// By enabling it, the system will create an unique id for each new non stackable item created
  43. //#define NSI_UNIQUE_ID
  44. /// Comment to disable Guild/Party Bound item system
  45. /// By default, we recover/remove Guild/Party Bound items automatically
  46. #define BOUND_ITEMS
  47. /// Uncomment to enable real-time server stats (in and out data and ram usage).
  48. //#define SHOW_SERVER_STATS
  49. /// Uncomment to enable skills damage adjustments
  50. /// By enabling this, db/skill_damage.txt and the skill_damage mapflag will adjust the
  51. /// damage rate of specified skills.
  52. #define ADJUST_SKILL_DAMAGE
  53. /// Uncomment to enable the job base HP/SP table (job_basehpsp_db.txt)
  54. //#define HP_SP_TABLES
  55. /// Uncomment to enable VIP system.
  56. //#define VIP_ENABLE
  57. /// Enable VIP script changes? (requires VIP_ENABLE)
  58. /// The primary effects of this are restrictions on non-VIP players, such as requiring
  59. /// a Reset Stone to change into third classes, paying more for equipment upgrades, and
  60. /// so forth. Note that the changes are based on euRO, not iRO.
  61. #define VIP_SCRIPT 0
  62. #ifdef VIP_ENABLE
  63. #define MIN_STORAGE 300 // Default number of storage slots.
  64. #define MIN_CHARS 3 // Default number of characters per account.
  65. #define MAX_CHAR_VIP 6 // This must be less than MAX_CHARS
  66. #define MAX_CHAR_BILLING 0 // This must be less than MAX_CHARS
  67. #else
  68. #define MIN_STORAGE MAX_STORAGE // If the VIP system is disabled the min = max.
  69. #define MIN_CHARS MAX_CHARS // Default number of characters per account.
  70. #define MAX_CHAR_BILLING 0
  71. #define MAX_CHAR_VIP 0
  72. #endif
  73. /**
  74. * No settings past this point
  75. **/
  76. #include "./renewal.h"
  77. #include "./secure.h"
  78. #include "./classes/general.h"
  79. /**
  80. * Constants come last; so they process anything that could've been modified in early includes
  81. **/
  82. #include "./const.h"
  83. #endif // _CONFIG_CORE_H_