From ab55f44e40262249f247d6001d0e1e7ba9217202 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Mar 2015 22:15:01 +0300 Subject: eathena: add partial support for packet SMSG_MVP_ITEM 0x010a. --- src/net/eathena/chathandler.cpp | 11 +++++++++++ src/net/eathena/chathandler.h | 2 ++ src/net/eathena/protocol.h | 2 ++ 3 files changed, 15 insertions(+) (limited to 'src/net') diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 92aefa370..515a5923d 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -66,6 +66,7 @@ ChatHandler::ChatHandler() : SMSG_GM_CHAT, SMSG_GM_CHAT2, SMSG_MVP_EFFECT, + SMSG_MVP_ITEM, SMSG_IGNORE_ALL_RESPONSE, SMSG_COLOR_MESSAGE, SMSG_CHAT_IGNORE_LIST, @@ -139,6 +140,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg) processMVPEffect(msg); break; + case SMSG_MVP_ITEM: + processMVPItem(msg); + break; + case SMSG_IGNORE_ALL_RESPONSE: processIgnoreAllResponse(msg); break; @@ -845,4 +850,10 @@ void ChatHandler::processChatRoleChange(Net::MessageIn &msg) msg.readString(24, "name"); } +void ChatHandler::processMVPItem(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt16("item id"); +} + } // namespace EAthena diff --git a/src/net/eathena/chathandler.h b/src/net/eathena/chathandler.h index cfb9b8108..27104edfd 100644 --- a/src/net/eathena/chathandler.h +++ b/src/net/eathena/chathandler.h @@ -139,6 +139,8 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler static void processChatSettings(Net::MessageIn &msg); static void processChatRoleChange(Net::MessageIn &msg); + + static void processMVPItem(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index e65f84e61..da0517938 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -251,7 +251,9 @@ #define SMSG_QUEST_ACTIVATE 0x02b7 #define SMSG_QUEST_NPC_EFFECT 0x0446 +#define SMSG_MVP_ITEM 0x010a #define SMSG_MVP_EFFECT 0x010c + #define SMSG_RANKS_LIST 0x097d #define SMSG_MONSTER_HP 0x0977 #define SMSG_PLAYER_HP 0x080e -- cgit v1.2.3-70-g09d2