summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/packetsin.inc6
-rw-r--r--src/net/eathena/rouletterecv.cpp13
2 files changed, 17 insertions, 2 deletions
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");
+ }
}
}