summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-10 22:15:01 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-10 22:15:01 +0300
commitab55f44e40262249f247d6001d0e1e7ba9217202 (patch)
treee017e5303b5617f4c9ea08b0518e07e0b1e9e763 /src/net/eathena
parent421f7cf60e960b340a70fc75022ffaff2558eb48 (diff)
downloadmv-ab55f44e40262249f247d6001d0e1e7ba9217202.tar.gz
mv-ab55f44e40262249f247d6001d0e1e7ba9217202.tar.bz2
mv-ab55f44e40262249f247d6001d0e1e7ba9217202.tar.xz
mv-ab55f44e40262249f247d6001d0e1e7ba9217202.zip
eathena: add partial support for packet SMSG_MVP_ITEM 0x010a.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/chathandler.cpp11
-rw-r--r--src/net/eathena/chathandler.h2
-rw-r--r--src/net/eathena/protocol.h2
3 files changed, 15 insertions, 0 deletions
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