From dc523c0a90af99bdb78216f550576e7d38cb6737 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 22 Sep 2014 00:05:42 +0300 Subject: eathena: add partial support for packet SMSG_PET_EGGS_LIST 0x01a6. --- src/net/eathena/pethandler.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/net/eathena/pethandler.cpp') diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index 7ccc57283..9fb6ecdfd 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -47,6 +47,7 @@ PetHandler::PetHandler() : { SMSG_PET_MESSAGE, SMSG_PET_ROULETTE, + SMSG_PET_EGGS_LIST, 0 }; handledMessages = _messages; @@ -66,6 +67,10 @@ void PetHandler::handleMessage(Net::MessageIn &msg) processPetRoulette(msg); break; + case SMSG_PET_EGGS_LIST: + processEggsList(msg); + break; + default: break; } @@ -139,4 +144,13 @@ void PetHandler::processPetRoulette(Net::MessageIn &msg) } } +void PetHandler::processEggsList(Net::MessageIn &msg) +{ + const int count = (msg.readInt16("len") - 4) / 2; + for (int f = 0; f < count; f ++) + { + msg.readInt16("egg index"); + } +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2