From 955f144a8310583babd96963a0c8e604ce8c849b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Sep 2014 14:12:43 +0300 Subject: eathena: add partial support for packet SMSG_PET_FOOD 0x01a3. --- src/net/eathena/pethandler.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/net/eathena/pethandler.cpp') diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index 1e51aa3b5..baf6d1056 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -66,6 +66,7 @@ PetHandler::PetHandler() : SMSG_PET_EGGS_LIST, SMSG_PET_DATA, SMSG_PET_STATUS, + SMSG_PET_FOOD, 0 }; handledMessages = _messages; @@ -97,6 +98,10 @@ void PetHandler::handleMessage(Net::MessageIn &msg) processPetStatus(msg); break; + case SMSG_PET_FOOD: + processPetFood(msg); + break; + default: break; } @@ -270,4 +275,11 @@ void PetHandler::processPetStatus(Net::MessageIn &msg) info->race = race; } +void PetHandler::processPetFood(Net::MessageIn &msg) +{ + // +++ need show notification message about success or fail + msg.readUInt8("result"); + msg.readInt16("food id"); +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2