diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-19 19:57:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-19 19:57:13 +0300 |
commit | e29f5cfd16b4566141ee48fa1c58b606e14b66f7 (patch) | |
tree | 2487b4539126432349e6ad06786d73733e266ac2 /src | |
parent | 91c2cdaa01317a32ca38700198dbaf80c80c8600 (diff) | |
download | mv-e29f5cfd16b4566141ee48fa1c58b606e14b66f7.tar.gz mv-e29f5cfd16b4566141ee48fa1c58b606e14b66f7.tar.bz2 mv-e29f5cfd16b4566141ee48fa1c58b606e14b66f7.tar.xz mv-e29f5cfd16b4566141ee48fa1c58b606e14b66f7.zip |
Impliment packet SMSG_FAMILY_DIVORCED (hercules).
Diffstat (limited to 'src')
-rw-r--r-- | src/enums/resources/notifytypes.h | 1 | ||||
-rw-r--r-- | src/net/eathena/familyrecv.cpp | 7 | ||||
-rw-r--r-- | src/resources/notifications.h | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/src/enums/resources/notifytypes.h b/src/enums/resources/notifytypes.h index 66db4544d..e5f465428 100644 --- a/src/enums/resources/notifytypes.h +++ b/src/enums/resources/notifytypes.h @@ -219,6 +219,7 @@ namespace NotifyTypes BEING_REMOVE_WARPED, BEING_REMOVE_TRICK_DEAD, BEING_REMOVE_UNKNOWN, + DIVORCED, TYPE_END }; diff --git a/src/net/eathena/familyrecv.cpp b/src/net/eathena/familyrecv.cpp index 8964d0afe..5a689bb67 100644 --- a/src/net/eathena/familyrecv.cpp +++ b/src/net/eathena/familyrecv.cpp @@ -21,6 +21,9 @@ #include "net/eathena/familyrecv.h" #include "logger.h" +#include "notifymanager.h" + +#include "enums/resources/notifytypes.h" #include "net/messagein.h" @@ -51,8 +54,8 @@ void FamilyRecv::processCallPartner(Net::MessageIn &msg) void FamilyRecv::processDivorced(Net::MessageIn &msg) { - UNIMPLIMENTEDPACKET; - msg.readString(24, "name"); + const std::string name = msg.readString(24, "name"); + NotifyManager::notify(NotifyTypes::DIVORCED, name.c_str()); } void FamilyRecv::processAskForChildReply(Net::MessageIn &msg) diff --git a/src/resources/notifications.h b/src/resources/notifications.h index 4aa6517e7..abb5efe56 100644 --- a/src/resources/notifications.h +++ b/src/resources/notifications.h @@ -791,6 +791,10 @@ namespace NotifyManager // TRANSLATORS: notification message N_("Player %s unknown remove."), NotifyFlags::STRING}, + {"player divorced", + // TRANSLATORS: notification message + N_("You and %s was divorced."), + NotifyFlags::STRING}, }; } // namespace NotifyManager #endif // RESOURCES_NOTIFICATIONS_H |