packets.hpp 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef CONFIG_PACKETS_HPP
  4. #define CONFIG_PACKETS_HPP
  5. /**
  6. * rAthena configuration file (http://rathena.org)
  7. * For detailed guidance on these check http://rathena.org/wiki/SRC/config/
  8. **/
  9. #ifndef PACKETVER
  10. /// Do NOT edit this line! To set your client version, please do this instead:
  11. /// In Windows: Add this line in your src\custom\defines_pre.hpp file: #define PACKETVER YYYYMMDD
  12. /// In Linux: The same as above or run the following command: ./configure --enable-packetver=YYYYMMDD
  13. #define PACKETVER 20151104
  14. #endif
  15. #ifndef PACKETVER_RE
  16. /// From this point on only kRO RE clients are supported
  17. #if PACKETVER > 20151104
  18. #define PACKETVER_RE
  19. #endif
  20. #endif
  21. #if PACKETVER >= 20110817
  22. /// Comment to disable the official packet obfuscation support.
  23. /// This requires PACKETVER 2011-08-17 or newer.
  24. #ifndef PACKET_OBFUSCATION
  25. #define PACKET_OBFUSCATION
  26. // Define these inside src/custom/defines_pre.hpp or src/custom/defines_post.hpp
  27. //#define PACKET_OBFUSCATION_KEY1 <key1>
  28. //#define PACKET_OBFUSCATION_KEY2 <key2>
  29. //#define PACKET_OBFUSCATION_KEY3 <key3>
  30. /// Comment this to disable warnings for missing client side encryption
  31. #define PACKET_OBFUSCATION_WARN
  32. #endif
  33. #else
  34. #if defined(PACKET_OBFUSCATION)
  35. #error You enabled packet obfuscation for a version which is too old. Minimum supported client is 2011-08-17.
  36. #endif
  37. #endif
  38. /// Comment to disable the official Guild Storage skill.
  39. /// When enabled, this will set the guild storage size to the level of the skill * 100.
  40. #if PACKETVER >= 20131223
  41. #define OFFICIAL_GUILD_STORAGE
  42. #endif
  43. #ifndef DUMP_UNKNOWN_PACKET
  44. //#define DUMP_UNKNOWN_PACKET
  45. #endif
  46. #ifndef DUMP_INVALID_PACKET
  47. //#define DUMP_INVALID_PACKET
  48. #endif
  49. /**
  50. * No settings past this point
  51. **/
  52. /// Check if the specified packetversion supports the pincode system
  53. #define PACKETVER_SUPPORTS_PINCODE PACKETVER >= 20110309
  54. /// Check if the client needs delete_date as remaining time and not the actual delete_date (actually it was tested for clients since 2013)
  55. #define PACKETVER_CHAR_DELETEDATE (PACKETVER > 20130000 && PACKETVER <= 20141022) || PACKETVER >= 20150513
  56. /// Check if the specified packetvresion supports the cashshop sale system
  57. #define PACKETVER_SUPPORTS_SALES PACKETVER >= 20131223
  58. #endif /* CONFIG_PACKETS_HPP */