diff options
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 |