Advertisement
Guest User

Packet

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