diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-18 12:55:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-18 12:55:28 +0300 |
commit | eb351e02c9796a94d70734e54c5eb0f01ff623e7 (patch) | |
tree | e7521f43c86236ef1661d22cf3c5ae182df48b16 /src/net/eathena/chathandler.cpp | |
parent | 0b5fa147dc1f6a808ef3c645d03bcb9eb0a1b17f (diff) | |
download | manaplus-eb351e02c9796a94d70734e54c5eb0f01ff623e7.tar.gz manaplus-eb351e02c9796a94d70734e54c5eb0f01ff623e7.tar.bz2 manaplus-eb351e02c9796a94d70734e54c5eb0f01ff623e7.tar.xz manaplus-eb351e02c9796a94d70734e54c5eb0f01ff623e7.zip |
eathena: add partial support for packet SMSG_SCRIPT_MESSAGE 0x08b3.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 1748f0c7a..fad5f2c1b 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -90,6 +90,7 @@ ChatHandler::ChatHandler() : SMSG_CHAT_SILENCE, SMSG_CHAT_TALKIE_BOX, SMSG_BATTLE_CHAT_MESSAGE, + SMSG_SCRIPT_MESSAGE, 0 }; handledMessages = _messages; @@ -226,6 +227,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg) processBattleChatMessage(msg); break; + case SMSG_SCRIPT_MESSAGE: + processScriptMessage(msg); + break; + default: break; } @@ -926,5 +931,12 @@ void ChatHandler::processBattleChatMessage(Net::MessageIn &msg) msg.readString(sz, "message"); } +void ChatHandler::processScriptMessage(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + const int sz = msg.readInt16("len") - 8; + msg.readInt32("being id"); + msg.readString(sz, "message"); +} } // namespace EAthena |