summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-20 17:39:23 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-20 17:39:23 +0300
commitf75fd62e61bf7a1a5b79b59bdbe44af71b6d23b0 (patch)
tree4217150defce24fb6eef1d5b9e476b9eaf5a62c9 /src/net
parent3005870980cf3fe86d42a75b8303c208354b6573 (diff)
downloadplus-f75fd62e61bf7a1a5b79b59bdbe44af71b6d23b0.tar.gz
plus-f75fd62e61bf7a1a5b79b59bdbe44af71b6d23b0.tar.bz2
plus-f75fd62e61bf7a1a5b79b59bdbe44af71b6d23b0.tar.xz
plus-f75fd62e61bf7a1a5b79b59bdbe44af71b6d23b0.zip
Impliment packet SMSG_FAMILY_ASK_FOR_CHILD_REPLY.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/familyrecv.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/net/eathena/familyrecv.cpp b/src/net/eathena/familyrecv.cpp
index 7b0e9fa01..07b1f343a 100644
--- a/src/net/eathena/familyrecv.cpp
+++ b/src/net/eathena/familyrecv.cpp
@@ -105,8 +105,22 @@ void FamilyRecv::processDivorced(Net::MessageIn &msg)
void FamilyRecv::processAskForChildReply(Net::MessageIn &msg)
{
- UNIMPLIMENTEDPACKET;
- msg.readInt32("type");
+ const int type = msg.readInt32("type");
+ switch (type)
+ {
+ case 0:
+ NotifyManager::notify(NotifyTypes::ADOPT_CHILD_ERROR_HAVE_BABY);
+ break;
+ case 1:
+ NotifyManager::notify(NotifyTypes::ADOPT_CHILD_ERROR_LEVEL);
+ break;
+ case 2:
+ NotifyManager::notify(NotifyTypes::ADOPT_CHILD_ERROR_BABY_MARRIED);
+ break;
+ default:
+ UNIMPLIMENTEDPACKETFIELD(type);
+ break;
+ }
}
} // namespace EAthena