diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-08 22:52:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-08 22:52:45 +0300 |
commit | 08b9e2ba4a42a87e58465565e373bb01f1a95cdd (patch) | |
tree | 20fb95e9471efa5122ada96591b8817259e5608b /src/net/eathena | |
parent | 571ff6e1401876cb775b827f6af25e14b1f59c6f (diff) | |
download | plus-08b9e2ba4a42a87e58465565e373bb01f1a95cdd.tar.gz plus-08b9e2ba4a42a87e58465565e373bb01f1a95cdd.tar.bz2 plus-08b9e2ba4a42a87e58465565e373bb01f1a95cdd.tar.xz plus-08b9e2ba4a42a87e58465565e373bb01f1a95cdd.zip |
eathena: add packet CMSG_REQUEST_RANKS 0x097c.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/beinghandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 267ed3f7b..7a45bb346 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -250,6 +250,12 @@ void BeingHandler::undress(Being *const being) const // being->setSprite(SPRITE_WEAPON, 0, "", true); } +void BeingHandler::requestRanks(const Rank::Rank rank) const +{ + MessageOut outMsg(CMSG_REQUEST_RANKS); + outMsg.writeInt16(static_cast<int16_t>(rank), "type"); +} + void BeingHandler::processBeingChangeLook(Net::MessageIn &msg) const { if (!actorManager) diff --git a/src/net/eathena/beinghandler.h b/src/net/eathena/beinghandler.h index ce0fe8636..e17ea3306 100644 --- a/src/net/eathena/beinghandler.h +++ b/src/net/eathena/beinghandler.h @@ -43,6 +43,8 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler void undress(Being *const being) const override final; + void requestRanks(const Rank::Rank rank) const override final; + protected: void processBeingChangeLook(Net::MessageIn &msg) const; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 243e2ed6c..ca29b44b3 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -304,6 +304,7 @@ #define CMSG_SOLVE_CHAR_NAME 0x0368 #define CMSG_IGNORE_ALL 0x00d0 +#define CMSG_REQUEST_RANKS 0x097c #define SMSG_SOLVE_CHAR_NAME 0x0194 #define SMSG_SKILL_CASTING 0x07fb |