From c28671db8583dc66e7e3c3b1428c870f5222dbcc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Mar 2015 14:30:35 +0300 Subject: eathena: add partial support for packet SMSG_PET_CATCH_PROCESS 0x019e. --- src/net/eathena/pethandler.cpp | 10 ++++++++++ src/net/eathena/pethandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 13 insertions(+) diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index 1b03cbf83..71d4d17f2 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -68,6 +68,7 @@ PetHandler::PetHandler() : SMSG_PET_DATA, SMSG_PET_STATUS, SMSG_PET_FOOD, + SMSG_PET_CATCH_PROCESS, 0 }; handledMessages = _messages; @@ -103,6 +104,10 @@ void PetHandler::handleMessage(Net::MessageIn &msg) processPetFood(msg); break; + case SMSG_PET_CATCH_PROCESS: + processPetCatchProcess(msg); + break; + default: break; } @@ -342,4 +347,9 @@ void PetHandler::startAi(const bool start A_UNUSED) const { } +void PetHandler::processPetCatchProcess(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; +} + } // namespace EAthena diff --git a/src/net/eathena/pethandler.h b/src/net/eathena/pethandler.h index 6d037b7fe..967df6795 100644 --- a/src/net/eathena/pethandler.h +++ b/src/net/eathena/pethandler.h @@ -80,6 +80,8 @@ class PetHandler final : public MessageHandler, public Net::PetHandler static void processPetFood(Net::MessageIn &msg); + static void processPetCatchProcess(Net::MessageIn &msg); + int mRandCounter; }; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index da873bda8..45f8d9439 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -295,6 +295,7 @@ #define SMSG_PET_DATA 0x01a4 #define SMSG_PET_STATUS 0x01a2 #define SMSG_PET_FOOD 0x01a3 +#define SMSG_PET_CATCH_PROCESS 0x019e #define SMSG_BANK_STATUS 0x09a6 #define SMSG_BANK_DEPOSIT 0x09a8 -- cgit v1.2.3-70-g09d2