From 660d3b585ab50038e5b2ea3fb9cf4049a7e697d1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Sep 2014 12:12:43 +0300 Subject: eathena: add packet CMSG_PET_CATCH 0x019f. --- src/net/eathena/pethandler.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/net/eathena/pethandler.cpp') diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index f96176c38..1b8f77881 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -22,9 +22,11 @@ #include "gui/chatconsts.h" +#include "net/chathandler.h" #include "net/net.h" -#include "net/chathandler.h" +#include "net/eathena/messageout.h" +#include "net/eathena/protocol.h" #include "debug.h" @@ -74,4 +76,13 @@ void PetHandler::emote(const uint8_t emoteId, const int petId A_UNUSED) static_cast(emoteId), mRandCounter), GENERAL_CHANNEL); } +void PetHandler::catchPet(const Being *const being) const +{ + if (!being) + return; + + MessageOut outMsg(CMSG_PET_CATCH); + outMsg.writeInt32(being->getId()); +} + } // namespace EAthena -- cgit v1.2.3-60-g2f50