summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-11 20:54:19 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-11 20:54:19 +0300
commit66f9a6c93e9b172938136dabc1e3fe8840310ca6 (patch)
tree48088b96222412978fd41c5dbb5ac0de140666b8 /src/net/eathena
parent674269cdc7ce138b4c9b89f19ade3186888119cc (diff)
downloadmv-66f9a6c93e9b172938136dabc1e3fe8840310ca6.tar.gz
mv-66f9a6c93e9b172938136dabc1e3fe8840310ca6.tar.bz2
mv-66f9a6c93e9b172938136dabc1e3fe8840310ca6.tar.xz
mv-66f9a6c93e9b172938136dabc1e3fe8840310ca6.zip
eathena: add partial support for packet SMSG_FRIENDS_DELETE_PLAYER 0x020a.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/friendshandler.cpp12
-rw-r--r--src/net/eathena/friendshandler.h2
-rw-r--r--src/net/eathena/packets.h2
-rw-r--r--src/net/eathena/protocol.h3
4 files changed, 17 insertions, 2 deletions
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