summaryrefslogtreecommitdiff
path: root/src/net/eathena/beingrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-08-19 21:48:05 +0300
committerAndrei Karas <akaras@inbox.ru>2019-08-19 21:48:05 +0300
commitc1183f13c3964f7000f13ce407759d145775dd7d (patch)
treec528e3b4691a5158503d30067c3cdb9774255d5e /src/net/eathena/beingrecv.cpp
parent4e5d11c6d14dc255070c61d5bb867d2c52039f30 (diff)
downloadmv-c1183f13c3964f7000f13ce407759d145775dd7d.tar.gz
mv-c1183f13c3964f7000f13ce407759d145775dd7d.tar.bz2
mv-c1183f13c3964f7000f13ce407759d145775dd7d.tar.xz
mv-c1183f13c3964f7000f13ce407759d145775dd7d.zip
Update packet SMSG_RANKS_LIST
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-rw-r--r--src/net/eathena/beingrecv.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index cbc295a5b..ea4fc096a 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -1393,13 +1393,27 @@ void BeingRecv::processSkillAutoCast(Net::MessageIn &msg)
}
}
-void BeingRecv::processRanksList(Net::MessageIn &msg)
+void BeingRecv::processRanksList1(Net::MessageIn &msg)
{
UNIMPLEMENTEDPACKET;
// +++ here need window with rank tables.
+ const int count = (msg.readInt16("len") - 4) / 28;
msg.readInt16("rank type");
- for (int f = 0; f < 10; f ++)
+ for (int f = 0; f < count; f ++)
+ {
msg.readString(24, "name");
+ msg.readInt32("points");
+ }
+ msg.readInt32("my points");
+}
+
+void BeingRecv::processRanksList2(Net::MessageIn &msg)
+{
+ UNIMPLEMENTEDPACKET;
+ // +++ here need window with rank tables.
+ msg.readInt16("rank type");
+ for (int f = 0; f < 10; f ++)
+ msg.readBeingId("char id");
for (int f = 0; f < 10; f ++)
msg.readInt32("points");
msg.readInt32("my points");