summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-14 01:54:02 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-14 01:54:02 +0300
commit37976a30f4f6ae3cb7fa25a54b640ae37b608bdf (patch)
tree787e862ce3c48be339906baeb13dd3bbf513e380 /src/net/eathena
parent21ff910b7b30b1a515db24e890d3a7b443b2d859 (diff)
downloadmanaverse-37976a30f4f6ae3cb7fa25a54b640ae37b608bdf.tar.gz
manaverse-37976a30f4f6ae3cb7fa25a54b640ae37b608bdf.tar.bz2
manaverse-37976a30f4f6ae3cb7fa25a54b640ae37b608bdf.tar.xz
manaverse-37976a30f4f6ae3cb7fa25a54b640ae37b608bdf.zip
Rename packet CMSG_PLAYER_SET_EQUIPMENT_VISIBLE into CMSG_SET_CONFIG_OPTION.
For now unused.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/packetsout.inc2
-rw-r--r--src/net/eathena/playerhandler.cpp9
-rw-r--r--src/net/eathena/playerhandler.h3
3 files changed, 8 insertions, 6 deletions
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc
index b480c16f4..f74a59ac8 100644
--- a/src/net/eathena/packetsout.inc
+++ b/src/net/eathena/packetsout.inc
@@ -92,7 +92,7 @@ packet(CMSG_PLAYER_UNEQUIP, 0x00ab, 4, clif->pUnequipItem);
packet(CMSG_PLAYER_USE_CARD, 0x017a, 4, clif->pUseCard);
packet(CMSG_PLAYER_INSERT_CARD, 0x017c, 6, clif->pInsertCard);
packet(CMSG_PLAYER_VIEW_EQUIPMENT, 0x02d6, 6, clif->pViewPlayerEquip);
-packet(CMSG_PLAYER_SET_EQUIPMENT_VISIBLE, 0x02d8, 10, clif->pEquipTick);
+packet(CMSG_SET_CONFIG_OPTION, 0x02d8, 10, clif->pEquipTick);
packet(CMSG_ITEM_PICKUP, 0x009f, 6, clif->pTakeItem);
packet(CMSG_PLAYER_CHANGE_DIR, 0x009b, 5, clif->pChangeDir);
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index e22ca822b..d82e28a05 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -503,11 +503,12 @@ void PlayerHandler::revive() const
createOutPacket(CMSG_PLAYER_AUTO_REVIVE);
}
-void PlayerHandler::setViewEquipment(const bool allow) const
+void PlayerHandler::setConfigOption(const int id,
+ const int data) const
{
- createOutPacket(CMSG_PLAYER_SET_EQUIPMENT_VISIBLE);
- outMsg.writeInt32(0, "unused");
- outMsg.writeInt32(allow ? 1 : 0, "allow");
+ createOutPacket(CMSG_SET_CONFIG_OPTION);
+ outMsg.writeInt32(id, "config option");
+ outMsg.writeInt32(data, "config data");
}
#define setStatComplex(stat) \
diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h
index c98b7f885..1a46a6427 100644
--- a/src/net/eathena/playerhandler.h
+++ b/src/net/eathena/playerhandler.h
@@ -68,7 +68,8 @@ class PlayerHandler final : 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;
+ void setConfigOption(const int id,
+ const int data) const override final;
void selectStyle(const int headColor,
const int headStyle,
const int bodyColor,