diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-22 21:31:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-22 21:31:35 +0300 |
commit | 4545b34b1533657d58788285a38b5128f49070a8 (patch) | |
tree | 23c99720d0d0d3849e07903dc12e4b188d860ecf /src/net/eathena/pethandler.cpp | |
parent | 69bf9bf688016066c1561ca55b0bfd8fd5e2c6bb (diff) | |
download | mv-4545b34b1533657d58788285a38b5128f49070a8.tar.gz mv-4545b34b1533657d58788285a38b5128f49070a8.tar.bz2 mv-4545b34b1533657d58788285a38b5128f49070a8.tar.xz mv-4545b34b1533657d58788285a38b5128f49070a8.zip |
eathena: add partial support for packet SMSG_PET_STATUS 0x01a2.
Diffstat (limited to 'src/net/eathena/pethandler.cpp')
-rw-r--r-- | src/net/eathena/pethandler.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index a2b410b70..899e836bf 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -57,6 +57,7 @@ PetHandler::PetHandler() : SMSG_PET_ROULETTE, SMSG_PET_EGGS_LIST, SMSG_PET_DATA, + SMSG_PET_STATUS, 0 }; handledMessages = _messages; @@ -84,6 +85,10 @@ void PetHandler::handleMessage(Net::MessageIn &msg) processPetData(msg); break; + case SMSG_PET_STATUS: + processPetStatus(msg); + break; + default: break; } @@ -183,4 +188,15 @@ void PetHandler::processPetData(Net::MessageIn &msg) msg.readInt32("param"); } +void PetHandler::processPetStatus(Net::MessageIn &msg) +{ + msg.readString(24, "pet name"); + msg.readUInt8("rename flag"); + msg.readInt16("level"); + msg.readInt16("hungry"); + msg.readInt16("intimate"); + msg.readInt16("equip"); + msg.readInt16("class"); +} + } // namespace EAthena |