summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-14 01:10:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-14 01:10:32 +0300
commitafae3b08b51c527fb7d52027baacebabf2355c12 (patch)
tree82be91fa2546a8ae4f5280ee37f1197286df725f /src/net/eathena
parentf676561f759c2be6e51c68b085b7d01ee98fc0d4 (diff)
downloadmanaverse-afae3b08b51c527fb7d52027baacebabf2355c12.tar.gz
manaverse-afae3b08b51c527fb7d52027baacebabf2355c12.tar.bz2
manaverse-afae3b08b51c527fb7d52027baacebabf2355c12.tar.xz
manaverse-afae3b08b51c527fb7d52027baacebabf2355c12.zip
eathena: add partial support for packet SMSG_FRIENDS_REQUEST_ACK 0x0209.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/friendshandler.cpp13
-rw-r--r--src/net/eathena/friendshandler.h2
-rw-r--r--src/net/eathena/packets.h2
-rw-r--r--src/net/eathena/protocol.h1
4 files changed, 17 insertions, 1 deletions
diff --git a/src/net/eathena/friendshandler.cpp b/src/net/eathena/friendshandler.cpp
index 0f57e9eea..4914a9a1c 100644
--- a/src/net/eathena/friendshandler.cpp
+++ b/src/net/eathena/friendshandler.cpp
@@ -36,6 +36,7 @@ FriendsHandler::FriendsHandler() :
{
SMSG_FRIENDS_PLAYER_ONLINE,
SMSG_FRIENDS_LIST,
+ SMSG_FRIENDS_REQUEST_ACK,
0
};
handledMessages = _messages;
@@ -54,6 +55,10 @@ void FriendsHandler::handleMessage(Net::MessageIn &msg)
processFriendsList(msg);
break;
+ case SMSG_FRIENDS_REQUEST_ACK:
+ processRequestAck(msg);
+ break;
+
default:
break;
}
@@ -77,4 +82,12 @@ void FriendsHandler::processFriendsList(Net::MessageIn &msg)
}
}
+void FriendsHandler::processRequestAck(Net::MessageIn &msg)
+{
+ msg.readInt16("type");
+ msg.readInt32("account id");
+ msg.readInt32("char id");
+ msg.readString(24, "name");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/friendshandler.h b/src/net/eathena/friendshandler.h
index 12a1c1df6..8071bccf1 100644
--- a/src/net/eathena/friendshandler.h
+++ b/src/net/eathena/friendshandler.h
@@ -41,6 +41,8 @@ class FriendsHandler final : public MessageHandler,
void processPlayerOnline(Net::MessageIn &msg);
void processFriendsList(Net::MessageIn &msg);
+
+ void processRequestAck(Net::MessageIn &msg);
};
} // namespace EAthena
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index cefeaafaa..849916a43 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, 0, 0, 0, 0, 19, 10, 0, 0, 0,
+ 26, -1, 0, 0, 18, 26, 11, 0, 0, 36, 0, 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 d80050079..9854f4ce7 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -289,6 +289,7 @@
#define SMSG_FRIENDS_PLAYER_ONLINE 0x0206
#define SMSG_FRIENDS_LIST 0x0201
+#define SMSG_FRIENDS_REQUEST_ACK 0x0209
/**********************************
* Packets from client to server *