diff options
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 |