summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-20 19:07:39 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-20 19:07:39 +0300
commit7511f401cb5e76c8f42ad703ef156cc0e7619353 (patch)
tree4e9c655b45d7d17bb07cdb98cd7703610ab1b6ce /src/net/eathena
parentffd4fd6c63fe5a8204db7b0da2f21001c754a963 (diff)
downloadplus-7511f401cb5e76c8f42ad703ef156cc0e7619353.tar.gz
plus-7511f401cb5e76c8f42ad703ef156cc0e7619353.tar.bz2
plus-7511f401cb5e76c8f42ad703ef156cc0e7619353.tar.xz
plus-7511f401cb5e76c8f42ad703ef156cc0e7619353.zip
Impliment packet SMSG_SKILL_MEMO_MESSAGE.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/skillrecv.cpp18
1 files changed, 16 insertions, 2 deletions
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)