summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-12 14:52:12 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-12 14:53:23 +0300
commitc4ffef0103507c8f514d1a395b630e21b9b9541b (patch)
treebc4af40a984d9b7982428a863778fead484aa29c /src/net/eathena/beinghandler.cpp
parent43fb66a1610aeca72dab2527da95abdadb826697 (diff)
downloadplus-c4ffef0103507c8f514d1a395b630e21b9b9541b.tar.gz
plus-c4ffef0103507c8f514d1a395b630e21b9b9541b.tar.bz2
plus-c4ffef0103507c8f514d1a395b630e21b9b9541b.tar.xz
plus-c4ffef0103507c8f514d1a395b630e21b9b9541b.zip
eathena: add partial support for packet SMSG_PK_RANKS_LIST 0x0238.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r--src/net/eathena/beinghandler.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index ef22b4178..4082d85ef 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -129,6 +129,7 @@ BeingHandler::BeingHandler(const bool enableSync) :
SMSG_BLACKSMITH_RANKS_LIST,
SMSG_ALCHEMIST_RANKS_LIST,
SMSG_TAEKWON_RANKS_LIST,
+ SMSG_PK_RANKS_LIST,
0
};
handledMessages = _messages;
@@ -373,6 +374,10 @@ void BeingHandler::handleMessage(Net::MessageIn &msg)
processTaekwonRanksList(msg);
break;
+ case SMSG_PK_RANKS_LIST:
+ processPkRanksList(msg);
+ break;
+
default:
break;
}
@@ -1370,6 +1375,16 @@ void BeingHandler::processTaekwonRanksList(Net::MessageIn &msg)
msg.readInt32("points");
}
+void BeingHandler::processPkRanksList(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+ // +++ here need window with rank tables.
+ for (int f = 0; f < 10; f ++)
+ msg.readString(24, "name");
+ for (int f = 0; f < 10; f ++)
+ msg.readInt32("points");
+}
+
void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg)
{
BLOCK_START("BeingHandler::processBeingChangeDirection")