From f4adf3093ce086549eb8d4bed228dee1d62f5e9d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 15 Sep 2014 23:18:50 +0300 Subject: eathena: add packet CMSG_PLAYER_SET_EQUIPMENT_VISIBLE 0x02d8. --- src/net/eathena/playerhandler.cpp | 7 +++++++ src/net/eathena/playerhandler.h | 1 + src/net/eathena/protocol.h | 1 + 3 files changed, 9 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 7df050cfd..d31fd5f0d 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -417,4 +417,11 @@ void PlayerHandler::revive() const MessageOut outMsg(CMSG_PLAYER_AUTO_REVIVE); } +void PlayerHandler::setViewEquipment(const bool allow) const +{ + MessageOut outMsg(CMSG_PLAYER_SET_EQUIPMENT_VISIBLE); + outMsg.writeInt32(0, "unused"); + outMsg.writeInt32(allow ? 1 : 0); +} + } // namespace EAthena diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h index 9ff59dcc9..9f63a639c 100644 --- a/src/net/eathena/playerhandler.h +++ b/src/net/eathena/playerhandler.h @@ -70,6 +70,7 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler void explosionSpirits() const override final; void requestPvpInfo() const override final; void revive() const override final; + void setViewEquipment(const bool allow) const override final; protected: void processPlayerStatUpdate5(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index d1f52f9e2..55d179d21 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -257,6 +257,7 @@ #define CMSG_PLAYER_USE_CARD 0x017a #define CMSG_PLAYER_INSERT_CARD 0x017c #define CMSG_PLAYER_VIEW_EQUIPMENT 0x02d6 +#define CMSG_PLAYER_SET_EQUIPMENT_VISIBLE 0x02d8 #define CMSG_ITEM_PICKUP 0x07e4 #define CMSG_PLAYER_CHANGE_DIR 0x0202 -- cgit v1.2.3-60-g2f50