From d276f218f8b1b06d088fe83ae5e11ab11deaa259 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 15 Sep 2014 20:51:35 +0300 Subject: eathena: add packet CMSG_ASK_FOR_CHILD 0x01f9. --- src/net/eathena/familyhandler.cpp | 11 +++++++++++ src/net/eathena/familyhandler.h | 2 ++ src/net/eathena/protocol.h | 2 ++ 3 files changed, 15 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/familyhandler.cpp b/src/net/eathena/familyhandler.cpp index 76b31ba3d..3c5892aa1 100644 --- a/src/net/eathena/familyhandler.cpp +++ b/src/net/eathena/familyhandler.cpp @@ -22,6 +22,8 @@ #include "logger.h" +#include "being/being.h" + #include "net/ea/eaprotocol.h" #include "net/eathena/messageout.h" @@ -54,4 +56,13 @@ void FamilyHandler::handleMessage(Net::MessageIn &msg) } } +void FamilyHandler::askForChild(const Being *const being) +{ + if (!being) + return; + + MessageOut outMsg(CMSG_ASK_FOR_CHILD); + outMsg.writeInt32(being->getId()); +} + } // namespace EAthena diff --git a/src/net/eathena/familyhandler.h b/src/net/eathena/familyhandler.h index 2a1e0d907..170ca6351 100644 --- a/src/net/eathena/familyhandler.h +++ b/src/net/eathena/familyhandler.h @@ -38,6 +38,8 @@ class FamilyHandler final : public MessageHandler, A_DELETE_COPY(FamilyHandler) void handleMessage(Net::MessageIn &msg) override final; + + void askForChild(const Being *const being) override final; }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 16e5d481c..1be6d93ed 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -375,6 +375,8 @@ #define CMSG_MAIL_RESET_ATTACH 0x0246 #define CMSG_MAIL_SEND 0x0248 +#define CMSG_ASK_FOR_CHILD 0x01f9 + #define SMSG_SOLVE_CHAR_NAME 0x0194 #define SMSG_SKILL_CASTING 0x07fb #define SMSG_SKILL_CAST_CANCEL 0x01b9 -- cgit v1.2.3-70-g09d2