From 4c4c2684278f84f952544d8e4f119ce9da980c1a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Sep 2014 15:39:07 +0300 Subject: eathena: add packet CMSG_PET_REQUEST_STATE 0x01a9. --- src/net/eathena/pethandler.cpp | 6 ++++++ src/net/eathena/pethandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 9 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index bf4939345..9d6772006 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -85,4 +85,10 @@ void PetHandler::catchPet(const Being *const being) const outMsg.writeInt32(being->getId(), "monster id"); } +void PetHandler::requestPetState(const int data) const +{ + MessageOut outMsg(CMSG_PET_REQUEST_STATE); + outMsg.writeInt32(data, "param"); +} + } // namespace EAthena diff --git a/src/net/eathena/pethandler.h b/src/net/eathena/pethandler.h index 126089724..af3e1d918 100644 --- a/src/net/eathena/pethandler.h +++ b/src/net/eathena/pethandler.h @@ -51,6 +51,8 @@ class PetHandler final : public MessageHandler, public Net::PetHandler void catchPet(const Being *const being) const override final; + void requestPetState(const int data) const override final; + protected: int mRandCounter; }; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index bad8fa1a9..3e806f76d 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -338,6 +338,7 @@ #define CMSG_PLAYER_SET_MEMO 0x011d #define CMSG_PET_CATCH 0x019f +#define CMSG_PET_REQUEST_STATE 0x01a9 #define SMSG_SOLVE_CHAR_NAME 0x0194 #define SMSG_SKILL_CASTING 0x07fb -- cgit v1.2.3-70-g09d2