diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-22 21:23:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-22 21:23:27 +0300 |
commit | 69bf9bf688016066c1561ca55b0bfd8fd5e2c6bb (patch) | |
tree | 8669979786e8bd0ff2fe987e092ea7bbf3ffa269 | |
parent | 1e7765d68db49cae92d30f946c2039c37ee9a3e1 (diff) | |
download | manaverse-69bf9bf688016066c1561ca55b0bfd8fd5e2c6bb.tar.gz manaverse-69bf9bf688016066c1561ca55b0bfd8fd5e2c6bb.tar.bz2 manaverse-69bf9bf688016066c1561ca55b0bfd8fd5e2c6bb.tar.xz manaverse-69bf9bf688016066c1561ca55b0bfd8fd5e2c6bb.zip |
eathena: add partial support for packet SMSG_PET_DATA 0x01a4.
-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 |