From 90135ee39f6d28d5a7e1cdc58c3a90533aa6fa25 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Mar 2015 14:24:52 +0300 Subject: eathena: add partial support for packet SMSG_CHAT_TALKIE_BOX 0x0191. --- src/net/eathena/chathandler.cpp | 12 ++++++++++++ src/net/eathena/chathandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 15 insertions(+) (limited to 'src/net') diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 36a8035c5..e8d857cf2 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -88,6 +88,7 @@ ChatHandler::ChatHandler() : SMSG_CHAT_ROLE_CHANGE, SMSG_MANNER_MESSAGE, SMSG_CHAT_SILENCE, + SMSG_CHAT_TALKIE_BOX, 0 }; handledMessages = _messages; @@ -216,6 +217,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg) processChatSilence(msg); break; + case SMSG_CHAT_TALKIE_BOX: + processChatTalkieBox(msg); + break; + default: break; } @@ -900,4 +905,11 @@ void ChatHandler::processChatSilence(Net::MessageIn &msg) msg.readString(24, "gm name"); } +void ChatHandler::processChatTalkieBox(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt32("being id"); + msg.readString(80, "message"); +} + } // namespace EAthena diff --git a/src/net/eathena/chathandler.h b/src/net/eathena/chathandler.h index 00a901ac7..257df525c 100644 --- a/src/net/eathena/chathandler.h +++ b/src/net/eathena/chathandler.h @@ -149,6 +149,8 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler static void processMannerMessage(Net::MessageIn &msg); static void processChatSilence(Net::MessageIn &msg); + + static void processChatTalkieBox(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 21f2b825d..da873bda8 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -281,6 +281,7 @@ #define SMSG_CHAT_SETTINGS 0x00df #define SMSG_CHAT_ROLE_CHANGE 0x00e1 #define SMSG_CHAT_JOIN_CHANNEL 0x0b08 +#define SMSG_CHAT_TALKIE_BOX 0x0191 #define SMSG_MAIL_OPEN_WINDOW 0x0260 -- cgit v1.2.3-70-g09d2