summaryrefslogtreecommitdiff
path: root/src/net/eathena/roulettehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/roulettehandler.cpp')
-rw-r--r--src/net/eathena/roulettehandler.cpp20
1 files changed, 20 insertions, 0 deletions
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