diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-15 20:51:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-15 20:51:35 +0300 |
commit | d276f218f8b1b06d088fe83ae5e11ab11deaa259 (patch) | |
tree | d31230865cb214fa2f5d6fe56198129691af1551 /src/net/eathena | |
parent | 2b20ac0419cdeeebf47dd41c18811b683f06eb4a (diff) | |
download | plus-d276f218f8b1b06d088fe83ae5e11ab11deaa259.tar.gz plus-d276f218f8b1b06d088fe83ae5e11ab11deaa259.tar.bz2 plus-d276f218f8b1b06d088fe83ae5e11ab11deaa259.tar.xz plus-d276f218f8b1b06d088fe83ae5e11ab11deaa259.zip |
eathena: add packet CMSG_ASK_FOR_CHILD 0x01f9.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/familyhandler.cpp | 11 | ||||
-rw-r--r-- | src/net/eathena/familyhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 2 |
3 files changed, 15 insertions, 0 deletions
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 |