summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-11 21:21:44 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-11 21:21:44 +0300
commit8b3c8b59e29dec385efc29c11d2917416ca66d04 (patch)
tree609b6a71023c003ae47d8d083feca25a4c19bab4 /src/net
parent720435e4d3d92626b4057061492bd20cc292e466 (diff)
downloadmanaplus-8b3c8b59e29dec385efc29c11d2917416ca66d04.tar.gz
manaplus-8b3c8b59e29dec385efc29c11d2917416ca66d04.tar.bz2
manaplus-8b3c8b59e29dec385efc29c11d2917416ca66d04.tar.xz
manaplus-8b3c8b59e29dec385efc29c11d2917416ca66d04.zip
eathena: add partial support for packet SMSG_FAMILY_ASK_FOR_CHILD_REPLY 0x0216.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/familyhandler.cpp11
-rw-r--r--src/net/eathena/familyhandler.h2
-rw-r--r--src/net/eathena/packets.h2
-rw-r--r--src/net/eathena/protocol.h1
4 files changed, 15 insertions, 1 deletions
diff --git a/src/net/eathena/familyhandler.cpp b/src/net/eathena/familyhandler.cpp
index a3ac3c7f5..5b482639f 100644
--- a/src/net/eathena/familyhandler.cpp
+++ b/src/net/eathena/familyhandler.cpp
@@ -48,6 +48,7 @@ FamilyHandler::FamilyHandler() :
SMSG_FAMILY_ASK_FOR_CHILD,
SMSG_FAMILY_CALL_PARTNER,
SMSG_FAMILY_DIVORCED,
+ SMSG_FAMILY_ASK_FOR_CHILD_REPLY,
0
};
handledMessages = _messages;
@@ -70,6 +71,10 @@ void FamilyHandler::handleMessage(Net::MessageIn &msg)
processDivorced(msg);
break;
+ case SMSG_FAMILY_ASK_FOR_CHILD_REPLY:
+ processAskForChildReply(msg);
+ break;
+
default:
break;
}
@@ -112,4 +117,10 @@ void FamilyHandler::processDivorced(Net::MessageIn &msg)
msg.readString(24, "name");
}
+void FamilyHandler::processAskForChildReply(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+ msg.readInt32("type");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/familyhandler.h b/src/net/eathena/familyhandler.h
index f648c44cd..8238fc417 100644
--- a/src/net/eathena/familyhandler.h
+++ b/src/net/eathena/familyhandler.h
@@ -50,6 +50,8 @@ class FamilyHandler final : public MessageHandler,
static void processDivorced(Net::MessageIn &msg);
+ static void processAskForChildReply(Net::MessageIn &msg);
+
private:
static int mParent1;
static int mParent2;
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index 8d95dbcf0..a5bac0fa9 100644
--- a/src/net/eathena/packets.h
+++ b/src/net/eathena/packets.h
@@ -84,7 +84,7 @@ int16_t packet_lengths[] =
//0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// #0x0200
26, -1, 0, 0, 18, 26, 11, 34, 0, 36, 10, 19, 10, 0, 32, 0,
- 22, -1, 16, 0, 42, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 22, -1, 16, 0, 42, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-1, 122, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 19, 71, 5,
12, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// #0x0240
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index b1bbe3141..b04e58601 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -299,6 +299,7 @@
#define SMSG_FAMILY_ASK_FOR_CHILD 0x01f6
#define SMSG_FAMILY_CALL_PARTNER 0x01e6
#define SMSG_FAMILY_DIVORCED 0x0205
+#define SMSG_FAMILY_ASK_FOR_CHILD_REPLY 0x0216
#define SMSG_PET_MESSAGE 0x01aa
#define SMSG_PET_ROULETTE 0x01a0