From c16820057eb9d381eb222512bb931da12e898a1f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Mar 2015 19:19:43 +0300 Subject: eathena: add partial support for packet SMSG_ROULETTE_INFO_ACK_TYPE 0x0a1c. --- src/net/eathena/roulettehandler.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/net/eathena/roulettehandler.cpp') diff --git a/src/net/eathena/roulettehandler.cpp b/src/net/eathena/roulettehandler.cpp index d11357fbb..372e13f45 100644 --- a/src/net/eathena/roulettehandler.cpp +++ b/src/net/eathena/roulettehandler.cpp @@ -37,6 +37,7 @@ RouletteHandler::RouletteHandler() : { static const uint16_t _messages[] = { + SMSG_ROULETTE_INFO_ACK_TYPE, 0 }; handledMessages = _messages; @@ -47,9 +48,28 @@ void RouletteHandler::handleMessage(Net::MessageIn &msg) { switch (msg.getId()) { + case SMSG_ROULETTE_INFO_ACK_TYPE: + processRouletteInfoAckType(msg); + break; + default: break; } } +void RouletteHandler::processRouletteInfoAckType(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + const int count = (msg.readInt16("len") - 8) / 8; + msg.readInt32("serial"); + + for (int f = 0; f < count; f ++) + { + msg.readInt16("row"); + msg.readInt16("position"); + msg.readInt16("item id"); + msg.readInt16("count"); + } +} + } // namespace EAthena -- cgit v1.2.3-60-g2f50