summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-08 23:54:29 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-08 23:54:29 +0300
commitdf01c98c8a7c0b45de0b67cf484994e5886fef4d (patch)
tree98506d900dcb71a82879cd7de120953641b64f18 /src/net/eathena/beinghandler.cpp
parent08b9e2ba4a42a87e58465565e373bb01f1a95cdd (diff)
downloadmv-df01c98c8a7c0b45de0b67cf484994e5886fef4d.tar.gz
mv-df01c98c8a7c0b45de0b67cf484994e5886fef4d.tar.bz2
mv-df01c98c8a7c0b45de0b67cf484994e5886fef4d.tar.xz
mv-df01c98c8a7c0b45de0b67cf484994e5886fef4d.zip
eathena: add partial support for packet SMSG_RANKS_LIST 0x097d.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r--src/net/eathena/beinghandler.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index 7a45bb346..958cd1391 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -97,6 +97,7 @@ BeingHandler::BeingHandler(const bool enableSync) :
SMSG_MONSTER_HP,
SMSG_PLAYER_HP,
SMSG_SKILL_AUTO_CAST,
+ SMSG_RANKS_LIST,
0
};
handledMessages = _messages;
@@ -235,6 +236,10 @@ void BeingHandler::handleMessage(Net::MessageIn &msg)
processMonsterHp(msg);
break;
+ case SMSG_RANKS_LIST:
+ processRanksList(msg);
+ break;
+
default:
break;
}
@@ -1093,4 +1098,16 @@ void BeingHandler::processSkillAutoCast(Net::MessageIn &msg) const
msg.readInt8("unused");
}
+void BeingHandler::processRanksList(Net::MessageIn &msg) const
+{
+ // +++ here need window with rank tables.
+ msg.readInt16("rank type");
+ for (int f = 0; f < 10; f ++)
+ {
+ msg.readString(24, "name");
+ msg.readInt32("points");
+ }
+ msg.readInt32("my points");
+}
+
} // namespace EAthena