diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-15 23:00:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-15 23:00:00 +0300 |
commit | 30a8ec57bb01a17f27a25ed9e4d8ec036039ae33 (patch) | |
tree | d61fd7d5c84dfe09679ebe3cf102833d753d2461 /src/net/eathena | |
parent | 9743b3341693f71bcaf62a979ec25b249eb0d39b (diff) | |
download | plus-30a8ec57bb01a17f27a25ed9e4d8ec036039ae33.tar.gz plus-30a8ec57bb01a17f27a25ed9e4d8ec036039ae33.tar.bz2 plus-30a8ec57bb01a17f27a25ed9e4d8ec036039ae33.tar.xz plus-30a8ec57bb01a17f27a25ed9e4d8ec036039ae33.zip |
eathena: add packet CMSG_PLAYER_VIEW_EQUIPMENT 0x02d6.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 9 | ||||
-rw-r--r-- | src/net/eathena/beinghandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 02ceb0334..76debad6d 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -1674,6 +1674,15 @@ void BeingHandler::applyPlayerAction(Being *const being, const uint8_t type) } } +void BeingHandler::viewPlayerEquipment(const Being *const being) +{ + if (!being) + return; + + MessageOut outMsg(CMSG_PLAYER_VIEW_EQUIPMENT); + outMsg.writeInt32(being->getId(), "account id"); +} + void BeingHandler::processSkillGroundNoDamage(Net::MessageIn &msg) const { msg.readInt16("skill id"); diff --git a/src/net/eathena/beinghandler.h b/src/net/eathena/beinghandler.h index 607e42acf..991374d6f 100644 --- a/src/net/eathena/beinghandler.h +++ b/src/net/eathena/beinghandler.h @@ -95,6 +95,8 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler static void applyPlayerAction(Being *const being, const uint8_t type); + void viewPlayerEquipment(const Being *const being) override final; + protected: void processSkillGroundNoDamage(Net::MessageIn &msg) const; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 123db93f8..d1f52f9e2 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -256,6 +256,7 @@ #define CMSG_PLAYER_UNEQUIP 0x00ab #define CMSG_PLAYER_USE_CARD 0x017a #define CMSG_PLAYER_INSERT_CARD 0x017c +#define CMSG_PLAYER_VIEW_EQUIPMENT 0x02d6 #define CMSG_ITEM_PICKUP 0x07e4 #define CMSG_PLAYER_CHANGE_DIR 0x0202 |