diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/pethandler.cpp | 12 | ||||
-rw-r--r-- | src/net/eathena/pethandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index 9b2f3b22b..a2b410b70 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -56,6 +56,7 @@ PetHandler::PetHandler() : SMSG_PET_MESSAGE, SMSG_PET_ROULETTE, SMSG_PET_EGGS_LIST, + SMSG_PET_DATA, 0 }; handledMessages = _messages; @@ -79,6 +80,10 @@ void PetHandler::handleMessage(Net::MessageIn &msg) processEggsList(msg); break; + case SMSG_PET_DATA: + processPetData(msg); + break; + default: break; } @@ -171,4 +176,11 @@ void PetHandler::processEggsList(Net::MessageIn &msg) } } +void PetHandler::processPetData(Net::MessageIn &msg) +{ + msg.readUInt8("type"); + msg.readInt32("pet id"); + msg.readInt32("param"); +} + } // namespace EAthena diff --git a/src/net/eathena/pethandler.h b/src/net/eathena/pethandler.h index 3dbdd7b66..a0c561622 100644 --- a/src/net/eathena/pethandler.h +++ b/src/net/eathena/pethandler.h @@ -62,6 +62,8 @@ class PetHandler final : public MessageHandler, public Net::PetHandler void processEggsList(Net::MessageIn &msg); + void processPetData(Net::MessageIn &msg); + int mRandCounter; }; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 52ddaf48f..6f3ed2dfa 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -225,6 +225,7 @@ #define SMSG_PET_MESSAGE 0x01aa #define SMSG_PET_ROULETTE 0x01a0 #define SMSG_PET_EGGS_LIST 0x01a6 +#define SMSG_PET_DATA 0x01a4 #define SMSG_BANK_STATUS 0x09a6 |