packets.hpp 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 20180620
  14. #endif
  15. #ifndef PACKETVER_RE
  16. /// From November 2015 only RagexeRE are supported.
  17. /// After July 2018 only Ragexe are supported.
  18. #if PACKETVER > 20151104 && PACKETVER < 20180704
  19. #define PACKETVER_RE
  20. #endif
  21. #endif
  22. #if PACKETVER >= 20110817
  23. /// Comment to disable the official packet obfuscation support.
  24. /// This requires PACKETVER 2011-08-17 or newer.
  25. #ifndef PACKET_OBFUSCATION
  26. #define PACKET_OBFUSCATION
  27. // Define these inside src/custom/defines_pre.hpp or src/custom/defines_post.hpp
  28. //#define PACKET_OBFUSCATION_KEY1 <key1>
  29. //#define PACKET_OBFUSCATION_KEY2 <key2>
  30. //#define PACKET_OBFUSCATION_KEY3 <key3>
  31. /// Comment this to disable warnings for missing client side encryption
  32. #define PACKET_OBFUSCATION_WARN
  33. #endif
  34. #else
  35. #if defined(PACKET_OBFUSCATION)
  36. #error You enabled packet obfuscation for a version which is too old. Minimum supported client is 2011-08-17.
  37. #endif
  38. #endif
  39. /// Comment to disable the official Guild Storage skill.
  40. /// When enabled, this will set the guild storage size to the level of the skill * 100.
  41. #if PACKETVER >= 20131223
  42. #define OFFICIAL_GUILD_STORAGE
  43. #endif
  44. #ifndef DUMP_UNKNOWN_PACKET
  45. //#define DUMP_UNKNOWN_PACKET
  46. #endif
  47. #ifndef DUMP_INVALID_PACKET
  48. //#define DUMP_INVALID_PACKET
  49. #endif
  50. /**
  51. * No settings past this point
  52. **/
  53. /// Check if the specified packetversion supports the pincode system
  54. #define PACKETVER_SUPPORTS_PINCODE PACKETVER >= 20110309
  55. /// Check if the client needs delete_date as remaining time and not the actual delete_date (actually it was tested for clients since 2013)
  56. #define PACKETVER_CHAR_DELETEDATE (PACKETVER > 20130000 && PACKETVER <= 20141022) || PACKETVER >= 20150513
  57. /// Check if the specified packetvresion supports the cashshop sale system
  58. #define PACKETVER_SUPPORTS_SALES PACKETVER >= 20131223
  59. #endif /* CONFIG_PACKETS_HPP */