summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/beinghandler.cpp9
-rw-r--r--src/net/eathena/beinghandler.h2
-rw-r--r--src/net/eathena/protocol.h1
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