From 0d2e07905e17d9ac9c53da4ba3bf798d967e7405 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Mar 2015 23:10:33 +0300 Subject: eathena: add partial support for packet SMSG_SKILL_MEMO_MESSAGE 0x011e. --- src/net/eathena/protocol.h | 1 + src/net/eathena/skillhandler.cpp | 11 +++++++++++ src/net/eathena/skillhandler.h | 2 ++ 3 files changed, 14 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index b28e561f7..bb1b55fe9 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -100,6 +100,7 @@ #define SMSG_SKILL_AUTO_CAST 0x0147 #define SMSG_SKILL_SNAP 0x08d2 #define SMSG_SKILL_WARP_POINT 0x011c +#define SMSG_SKILL_MEMO_MESSAGE 0x011e #define SMSG_ITEM_USE_RESPONSE 0x00a8 #define SMSG_ITEM_VISIBLE 0x009d /**< An item is on the floor */ #define SMSG_GRAFFITI_VISIBLE 0x01c9 diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index 7ccc5c736..11164c3be 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -62,6 +62,7 @@ SkillHandler::SkillHandler() : SMSG_PLAYER_DELETE_SKILL, SMSG_PLAYER_UPDATE_SKILL, SMSG_SKILL_WARP_POINT, + SMSG_SKILL_MEMO_MESSAGE, 0 }; handledMessages = _messages; @@ -112,6 +113,10 @@ void SkillHandler::handleMessage(Net::MessageIn &msg) processSkillWarpPoint(msg); break; + case SMSG_SKILL_MEMO_MESSAGE: + processSkillMemoMessage(msg); + break; + default: break; } @@ -387,4 +392,10 @@ void SkillHandler::processSkillWarpPoint(Net::MessageIn &msg) msg.readString(16, "map name 4"); } +void SkillHandler::processSkillMemoMessage(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readUInt8("type"); +} + } // namespace EAthena diff --git a/src/net/eathena/skillhandler.h b/src/net/eathena/skillhandler.h index 265548a26..2960761ca 100644 --- a/src/net/eathena/skillhandler.h +++ b/src/net/eathena/skillhandler.h @@ -69,6 +69,8 @@ class SkillHandler final : public MessageHandler, public Ea::SkillHandler static void processSkillDelete(Net::MessageIn &msg); static void processSkillWarpPoint(Net::MessageIn &msg); + + static void processSkillMemoMessage(Net::MessageIn &msg); }; } // namespace EAthena -- cgit v1.2.3-70-g09d2