summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-15 23:18:50 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-15 23:18:50 +0300
commitf4adf3093ce086549eb8d4bed228dee1d62f5e9d (patch)
tree50cfa08d2fa8049fea70bfc7f7767dd34e5007a6 /src/net/eathena/playerhandler.cpp
parent30a8ec57bb01a17f27a25ed9e4d8ec036039ae33 (diff)
downloadplus-f4adf3093ce086549eb8d4bed228dee1d62f5e9d.tar.gz
plus-f4adf3093ce086549eb8d4bed228dee1d62f5e9d.tar.bz2
plus-f4adf3093ce086549eb8d4bed228dee1d62f5e9d.tar.xz
plus-f4adf3093ce086549eb8d4bed228dee1d62f5e9d.zip
eathena: add packet CMSG_PLAYER_SET_EQUIPMENT_VISIBLE 0x02d8.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r--src/net/eathena/playerhandler.cpp7
1 files changed, 7 insertions, 0 deletions
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