diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-19 01:07:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-19 01:07:51 +0300 |
commit | 88735abcdaf6e25a008f76c9a82730e8be9773f8 (patch) | |
tree | aaba327ed3d78e451c0c475d857e8574e6a93ad9 /src/net/eathena/roulettehandler.cpp | |
parent | ad6e16920c66c3b10c60e000a0ebc20da570bd94 (diff) | |
download | mv-88735abcdaf6e25a008f76c9a82730e8be9773f8.tar.gz mv-88735abcdaf6e25a008f76c9a82730e8be9773f8.tar.bz2 mv-88735abcdaf6e25a008f76c9a82730e8be9773f8.tar.xz mv-88735abcdaf6e25a008f76c9a82730e8be9773f8.zip |
eathena: add partial support for packet SMSG_ROULETTE_GENERATE_ACK_TYPE 0x0a20.
Diffstat (limited to 'src/net/eathena/roulettehandler.cpp')
-rw-r--r-- | src/net/eathena/roulettehandler.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/net/eathena/roulettehandler.cpp b/src/net/eathena/roulettehandler.cpp index f8c330527..1f22e3f36 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, 0 }; handledMessages = _messages; @@ -57,6 +58,10 @@ void RouletteHandler::handleMessage(Net::MessageIn &msg) processRouletteItemAck(msg); break; + case SMSG_ROULETTE_GENERATE_ACK_TYPE: + processRouletteGenerateAckType(msg); + break; + default: break; } @@ -84,4 +89,16 @@ void RouletteHandler::processRouletteItemAck(Net::MessageIn &msg) msg.readInt16("item id"); } +void RouletteHandler::processRouletteGenerateAckType(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readUInt8("result"); + msg.readInt16("step"); + msg.readInt16("idx"); + msg.readInt16("item id"); + msg.readInt32("remain gold"); + msg.readInt32("remain silver"); + msg.readInt32("remain bronze"); +} + } // namespace EAthena |