From c259c8285f394a56a42fb07eb2aa2e033b346954 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 15 Sep 2014 21:11:10 +0300 Subject: eathena: add partial support for packet SMSG_ASK_FOR_CHILD 0x01f6. --- src/net/eathena/familyhandler.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/net/eathena/familyhandler.cpp') diff --git a/src/net/eathena/familyhandler.cpp b/src/net/eathena/familyhandler.cpp index 3c5892aa1..44661a0a5 100644 --- a/src/net/eathena/familyhandler.cpp +++ b/src/net/eathena/familyhandler.cpp @@ -41,6 +41,7 @@ FamilyHandler::FamilyHandler() : { static const uint16_t _messages[] = { + SMSG_ASK_FOR_CHILD, 0 }; handledMessages = _messages; @@ -51,6 +52,10 @@ void FamilyHandler::handleMessage(Net::MessageIn &msg) { switch (msg.getId()) { + case SMSG_ASK_FOR_CHILD: + processAskForChild(msg); + break; + default: break; } @@ -65,4 +70,11 @@ void FamilyHandler::askForChild(const Being *const being) outMsg.writeInt32(being->getId()); } +void FamilyHandler::processAskForChild(Net::MessageIn &msg) +{ + msg.readInt32("account id who ask"); + msg.readInt32("acoount id for other parent"); + msg.readString(24, "name who ask"); +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2