summaryrefslogtreecommitdiff
path: root/src/net
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
parent30a8ec57bb01a17f27a25ed9e4d8ec036039ae33 (diff)
downloadmanaverse-f4adf3093ce086549eb8d4bed228dee1d62f5e9d.tar.gz
manaverse-f4adf3093ce086549eb8d4bed228dee1d62f5e9d.tar.bz2
manaverse-f4adf3093ce086549eb8d4bed228dee1d62f5e9d.tar.xz
manaverse-f4adf3093ce086549eb8d4bed228dee1d62f5e9d.zip
eathena: add packet CMSG_PLAYER_SET_EQUIPMENT_VISIBLE 0x02d8.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/playerhandler.cpp7
-rw-r--r--src/net/eathena/playerhandler.h1
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/playerhandler.h2
-rw-r--r--src/net/tmwa/playerhandler.cpp4
-rw-r--r--src/net/tmwa/playerhandler.h2
6 files changed, 17 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
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
diff --git a/src/net/playerhandler.h b/src/net/playerhandler.h
index 764d52936..7f02ab625 100644
--- a/src/net/playerhandler.h
+++ b/src/net/playerhandler.h
@@ -97,6 +97,8 @@ class PlayerHandler notfinal
virtual void requestPvpInfo() const = 0;
virtual void revive() const = 0;
+
+ virtual void setViewEquipment(const bool allow) const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp
index 3fdf081ff..c2791e0d9 100644
--- a/src/net/tmwa/playerhandler.cpp
+++ b/src/net/tmwa/playerhandler.cpp
@@ -468,4 +468,8 @@ void PlayerHandler::revive() const
{
}
+void PlayerHandler::setViewEquipment(const bool allow A_UNUSED) const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/playerhandler.h b/src/net/tmwa/playerhandler.h
index 213d8596d..3fb89db83 100644
--- a/src/net/tmwa/playerhandler.h
+++ b/src/net/tmwa/playerhandler.h
@@ -79,6 +79,8 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler
void revive() const override final;
+ void setViewEquipment(const bool allow) const override final;
+
protected:
void processPlayerStatUpdate5(Net::MessageIn &msg);