From 7511f401cb5e76c8f42ad703ef156cc0e7619353 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 20 Mar 2016 19:07:39 +0300 Subject: Impliment packet SMSG_SKILL_MEMO_MESSAGE. --- src/enums/resources/notifytypes.h | 3 +++ src/net/eathena/skillrecv.cpp | 18 ++++++++++++++++-- src/resources/notifications.h | 12 ++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/enums/resources/notifytypes.h b/src/enums/resources/notifytypes.h index 8d615caa2..60600ef0c 100644 --- a/src/enums/resources/notifytypes.h +++ b/src/enums/resources/notifytypes.h @@ -225,6 +225,9 @@ namespace NotifyTypes ADOPT_CHILD_ERROR_HAVE_BABY, ADOPT_CHILD_ERROR_LEVEL, ADOPT_CHILD_ERROR_BABY_MARRIED, + SKILL_MEMO_SAVED, + SKILL_MEMO_ERROR_LEVEL, + SKILL_MEMO_ERROR_SKILL, TYPE_END }; diff --git a/src/net/eathena/skillrecv.cpp b/src/net/eathena/skillrecv.cpp index 8ec41c42f..4aac4907e 100644 --- a/src/net/eathena/skillrecv.cpp +++ b/src/net/eathena/skillrecv.cpp @@ -371,8 +371,22 @@ void SkillRecv::processSkillWarpPoint(Net::MessageIn &msg) void SkillRecv::processSkillMemoMessage(Net::MessageIn &msg) { - UNIMPLIMENTEDPACKET; - msg.readUInt8("type"); + const int type = msg.readUInt8("type"); + switch (type) + { + case 0: + NotifyManager::notify(NotifyTypes::SKILL_MEMO_SAVED); + break; + case 1: + NotifyManager::notify(NotifyTypes::SKILL_MEMO_ERROR_LEVEL); + break; + case 2: + NotifyManager::notify(NotifyTypes::SKILL_MEMO_ERROR_SKILL); + break; + default: + UNIMPLIMENTEDPACKETFIELD(type); + break; + } } void SkillRecv::processSkillProduceMixList(Net::MessageIn &msg) diff --git a/src/resources/notifications.h b/src/resources/notifications.h index 1139602f2..8d5e77794 100644 --- a/src/resources/notifications.h +++ b/src/resources/notifications.h @@ -816,6 +816,18 @@ namespace NotifyManager N_("Adoption child error. This player already " "married and can't be baby."), NotifyFlags::EMPTY}, + {"skill memo saved", + // TRANSLATORS: notification message + N_("Saved location for warp skill."), + NotifyFlags::EMPTY}, + {"skill memo error level", + // TRANSLATORS: notification message + N_("Error saving location. Not enought skill level."), + NotifyFlags::EMPTY}, + {"skill memo error skill", + // TRANSLATORS: notification message + N_("Error saving location. You not have warp skill."), + NotifyFlags::EMPTY}, }; } // namespace NotifyManager #endif // RESOURCES_NOTIFICATIONS_H -- cgit v1.2.3-60-g2f50