diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-01 16:09:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-01 16:09:56 +0300 |
commit | 48746ecb8cd94270f143cc7d722188d2e77c3101 (patch) | |
tree | e613bc29021af9df442bd6ae9d34088172e92298 /src/net/eathena/roulettehandler.cpp | |
parent | 101c2a32bd0f059f2c3544d25e385c44a793a6a3 (diff) | |
download | mv-48746ecb8cd94270f143cc7d722188d2e77c3101.tar.gz mv-48746ecb8cd94270f143cc7d722188d2e77c3101.tar.bz2 mv-48746ecb8cd94270f143cc7d722188d2e77c3101.tar.xz mv-48746ecb8cd94270f143cc7d722188d2e77c3101.zip |
eathena: add partial support for packet SMSG_ROULETTE_OPEN_ACK 0x0a1a.
Diffstat (limited to 'src/net/eathena/roulettehandler.cpp')
-rw-r--r-- | src/net/eathena/roulettehandler.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/net/eathena/roulettehandler.cpp b/src/net/eathena/roulettehandler.cpp index 5ba9c7997..09cc67db2 100644 --- a/src/net/eathena/roulettehandler.cpp +++ b/src/net/eathena/roulettehandler.cpp @@ -39,6 +39,7 @@ RouletteHandler::RouletteHandler() : SMSG_ROULETTE_INFO_ACK_TYPE, SMSG_ROULETTE_RECV_ITEM_ACK, SMSG_ROULETTE_GENERATE_ACK_TYPE, + SMSG_ROULETTE_OPEN_ACK, 0 }; handledMessages = _messages; @@ -61,6 +62,10 @@ void RouletteHandler::handleMessage(Net::MessageIn &msg) processRouletteGenerateAckType(msg); break; + case SMSG_ROULETTE_OPEN_ACK: + processRouletteOpenAck(msg); + break; + default: break; } @@ -100,4 +105,17 @@ void RouletteHandler::processRouletteGenerateAckType(Net::MessageIn &msg) msg.readInt32("remain bronze"); } +void RouletteHandler::processRouletteOpenAck(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readUInt8("result"); + msg.readInt32("serial"); + msg.readUInt8("step"); + msg.readUInt8("idx"); + msg.readInt16("additional item id"); + msg.readInt32("gold point"); + msg.readInt32("silver point"); + msg.readInt32("bronze point"); +} + } // namespace EAthena |