diff options
-rw-r--r-- | src/net/eathena/packets.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-rw-r--r-- | src/net/eathena/roulettehandler.cpp | 12 | ||||
-rw-r--r-- | src/net/eathena/roulettehandler.h | 2 |
4 files changed, 16 insertions, 1 deletions
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index 5fdf66caa..4d869efc4 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -261,7 +261,7 @@ int16_t packet_lengths[] = // #0x0A00 269, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 344, 0, 0, 7, - 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 5, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // #0x0A40 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 3decb369f..547597741 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -452,6 +452,7 @@ #define SMSG_BATTLE_JOINED 0x08d9 #define SMSG_ROULETTE_INFO_ACK_TYPE 0x0a1c +#define SMSG_ROULETTE_RECV_ITEM_ACK 0x0a22 /********************************** * Packets from client to server * diff --git a/src/net/eathena/roulettehandler.cpp b/src/net/eathena/roulettehandler.cpp index 372e13f45..f8c330527 100644 --- a/src/net/eathena/roulettehandler.cpp +++ b/src/net/eathena/roulettehandler.cpp @@ -38,6 +38,7 @@ RouletteHandler::RouletteHandler() : static const uint16_t _messages[] = { SMSG_ROULETTE_INFO_ACK_TYPE, + SMSG_ROULETTE_RECV_ITEM_ACK, 0 }; handledMessages = _messages; @@ -52,6 +53,10 @@ void RouletteHandler::handleMessage(Net::MessageIn &msg) processRouletteInfoAckType(msg); break; + case SMSG_ROULETTE_RECV_ITEM_ACK: + processRouletteItemAck(msg); + break; + default: break; } @@ -72,4 +77,11 @@ void RouletteHandler::processRouletteInfoAckType(Net::MessageIn &msg) } } +void RouletteHandler::processRouletteItemAck(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readUInt8("result"); + msg.readInt16("item id"); +} + } // namespace EAthena diff --git a/src/net/eathena/roulettehandler.h b/src/net/eathena/roulettehandler.h index 239ba2e70..72b497e92 100644 --- a/src/net/eathena/roulettehandler.h +++ b/src/net/eathena/roulettehandler.h @@ -39,6 +39,8 @@ class RouletteHandler final : public MessageHandler, protected: static void processRouletteInfoAckType(Net::MessageIn &msg); + + static void processRouletteItemAck(Net::MessageIn &msg); }; } // namespace EAthena |