From 1c30ebb589656b1d3bdb746ba7f36190e1dd4908 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 14 Jul 2018 02:40:31 +0300 Subject: Update packet SMSG_ROULETTE_INFO_ACK_TYPE 0x0a1c. --- src/net/eathena/packetsin.inc | 6 ++++++ src/net/eathena/rouletterecv.cpp | 13 +++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index 9dea969f3..7e7178de2 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -1119,6 +1119,12 @@ if (packetVersionMain >= 20180620) packet(SMSG_PRIVATE_AIRSHIP_RESPONSE, 0x0A4A, 6, &NpcRecv::processPrivateAirShipResponse, 20180620); } +// 20180523 +if (packetVersionMain >= 20180523) +{ + packet(SMSG_ROULETTE_INFO_ACK_TYPE, 0x0a1c, -1, &RouletteRecv::processRouletteInfoAckType, 20180523); +} + // 0 // evol always packets packet(SMSG_SERVER_VERSION_RESPONSE, 0x7531, -1, &LoginRecv::processServerVersion, 0); diff --git a/src/net/eathena/rouletterecv.cpp b/src/net/eathena/rouletterecv.cpp index 2c245b30b..49666f49f 100644 --- a/src/net/eathena/rouletterecv.cpp +++ b/src/net/eathena/rouletterecv.cpp @@ -39,8 +39,17 @@ void RouletteRecv::processRouletteInfoAckType(Net::MessageIn &msg) { msg.readInt16("row"); msg.readInt16("position"); - msg.readInt16("item id"); - msg.readInt16("count"); + if (msg.getVersion() >= 20180523) + { + msg.readInt32("item id"); + msg.readInt16("count"); + msg.readInt16("unused"); + } + else + { + msg.readInt16("item id"); + msg.readInt16("count"); + } } } -- cgit v1.2.3-70-g09d2