From 66f9a6c93e9b172938136dabc1e3fe8840310ca6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Mar 2015 20:54:19 +0300 Subject: eathena: add partial support for packet SMSG_FRIENDS_DELETE_PLAYER 0x020a. --- src/net/eathena/friendshandler.cpp | 12 ++++++++++++ src/net/eathena/friendshandler.h | 2 ++ src/net/eathena/packets.h | 2 +- src/net/eathena/protocol.h | 3 ++- 4 files changed, 17 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/net/eathena/friendshandler.cpp b/src/net/eathena/friendshandler.cpp index fafe3c76b..91f08a205 100644 --- a/src/net/eathena/friendshandler.cpp +++ b/src/net/eathena/friendshandler.cpp @@ -41,6 +41,7 @@ FriendsHandler::FriendsHandler() : SMSG_FRIENDS_LIST, SMSG_FRIENDS_REQUEST_ACK, SMSG_FRIENDS_REQUEST, + SMSG_FRIENDS_DELETE_PLAYER, 0 }; handledMessages = _messages; @@ -67,6 +68,10 @@ void FriendsHandler::handleMessage(Net::MessageIn &msg) processRequest(msg); break; + case SMSG_FRIENDS_DELETE_PLAYER: + processDeletePlayer(msg); + break; + default: break; } @@ -132,4 +137,11 @@ void FriendsHandler::remove(const int accountId, const int charId) const outMsg.writeInt32(charId, "char id"); } +void FriendsHandler::processDeletePlayer(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt32("account id"); + msg.readInt32("char id"); +} + } // namespace EAthena diff --git a/src/net/eathena/friendshandler.h b/src/net/eathena/friendshandler.h index 6b14382fc..27d64f39d 100644 --- a/src/net/eathena/friendshandler.h +++ b/src/net/eathena/friendshandler.h @@ -56,6 +56,8 @@ class FriendsHandler final : public MessageHandler, static void processRequestAck(Net::MessageIn &msg); static void processRequest(Net::MessageIn &msg); + + static void processDeletePlayer(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index ddd716451..0b72b9349 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -83,7 +83,7 @@ int16_t packet_lengths[] = //0 1 2 3 4 5 6 7 8 9 a b c d e f //0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // #0x0200 - 26, -1, 0, 0, 18, 26, 11, 34, 0, 36, 0, 19, 10, 0, 0, 0, + 26, -1, 0, 0, 18, 26, 11, 34, 0, 36, 10, 19, 10, 0, 0, 0, 22, -1, 16, 0, 42, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 122, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 19, 71, 5, 12, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 23cd0d230..ef4979926 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -346,6 +346,7 @@ #define SMSG_FRIENDS_LIST 0x0201 #define SMSG_FRIENDS_REQUEST 0x0207 #define SMSG_FRIENDS_REQUEST_ACK 0x0209 +#define SMSG_FRIENDS_DELETE_PLAYER 0x020a #define SMSG_AUCTION_OPEN_WINDOW 0x025f #define SMSG_AUCTION_RESULTS 0x0252 @@ -595,7 +596,7 @@ #define CMSG_FRIENDS_ADD_PLAYER 0x091a #define CMSG_FRIENDS_REQUEST_ACK 0x0208 -#define CMSG_FRIENDS_DELETE_PLAYER 0x020a +#define CMSG_FRIENDS_DELETE_PLAYER 0x0203 #define CMSG_AUCTION_CANCEL_REG 0x024b #define CMSG_AUCTION_SET_ITEM 0x024c -- cgit v1.2.3-70-g09d2