From 55901aee07fe748590acb31b69777b1b6e914b6c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Oct 2014 00:13:08 +0300 Subject: eathena: add partial support for packet SMSG_FRIENDS_PLAYER_ONLINE 0x0206. --- src/net/eathena/friendshandler.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/net/eathena/friendshandler.cpp') diff --git a/src/net/eathena/friendshandler.cpp b/src/net/eathena/friendshandler.cpp index 55a88c9ed..c5bb7e8b5 100644 --- a/src/net/eathena/friendshandler.cpp +++ b/src/net/eathena/friendshandler.cpp @@ -20,6 +20,8 @@ #include "net/eathena/friendshandler.h" +#include "net/eathena/protocol.h" + #include "debug.h" extern Net::FriendsHandler *friendsHandler; @@ -32,6 +34,7 @@ FriendsHandler::FriendsHandler() : { static const uint16_t _messages[] = { + SMSG_FRIENDS_PLAYER_ONLINE, 0 }; handledMessages = _messages; @@ -42,9 +45,20 @@ void FriendsHandler::handleMessage(Net::MessageIn &msg) { switch (msg.getId()) { + case SMSG_FRIENDS_PLAYER_ONLINE: + processPlayerOnline(msg); + break; + default: break; } } +void FriendsHandler::processPlayerOnline(Net::MessageIn &msg) +{ + msg.readInt32("account id"); + msg.readInt32("char id"); + msg.readUInt8("flag"); // 0 - online, 1 - offline +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2