From a6cd6b2374c55ff4342137d197a43d4656427365 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 Sep 2015 01:42:52 +0300 Subject: Add support for packet version 20150226 (hercules) --- src/net/eathena/traderecv.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/net/eathena/traderecv.cpp') diff --git a/src/net/eathena/traderecv.cpp b/src/net/eathena/traderecv.cpp index 0c922f93b..bae158aa7 100644 --- a/src/net/eathena/traderecv.cpp +++ b/src/net/eathena/traderecv.cpp @@ -39,6 +39,9 @@ #include "debug.h" +extern int packetVersion; +extern int serverVersion; + namespace EAthena { @@ -75,6 +78,15 @@ void TradeRecv::processTradeItemAdd(Net::MessageIn &msg) int cards[4]; for (int f = 0; f < 4; f++) cards[f] = msg.readInt16("card"); + if (serverVersion >= 8 && packetVersion >= 20150226) + { + for (int f = 0; f < 5; f ++) + { + msg.readInt16("rnd index"); + msg.readInt16("rnd value"); + msg.readUInt8("rnd param"); + } + } if (tradeWindow) { -- cgit v1.2.3-60-g2f50