summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/packetsout.inc2
-rw-r--r--src/net/eathena/playerhandler.cpp7
-rw-r--r--src/net/eathena/playerhandler.h2
3 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc
index 6b45709ef..6cc8117ad 100644
--- a/src/net/eathena/packetsout.inc
+++ b/src/net/eathena/packetsout.inc
@@ -355,6 +355,7 @@ packet(CMSG_NPC_BARTER_CLOSE, 0x0000, 0, nullptr);
packet(CMSG_CAMERA_INFO, 0x0000, 0, nullptr);
packet(CMSG_NPC_BARTER_BUY, 0x0000, 0, nullptr);
packet(CMSG_CLIENT_VERSION, 0x0000, 0, nullptr);
+packet(CMSG_PLAYER_STYLE_CLOSE, 0x0000, 0, nullptr);
#else
// 20040713
if (packetVersion >= 20040713)
@@ -1372,6 +1373,7 @@ if (packetVersion >= 20151001)
if (packetVersion >= 20151104)
{
packet(CMSG_PLAYER_SELECT_STYLE, 0x0a46, 14, clif->pReqStyleChange);
+ packet(CMSG_PLAYER_STYLE_CLOSE, 0x0a48, 2, clif->pStyleClose);
}
// 20160323
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index 19146a836..cefbcf285 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -836,6 +836,13 @@ void PlayerHandler::setTitle(const int titleId) const
outMsg.writeInt32(titleId, "title");
}
+void PlayerHandler::closeStyleWindow() const
+{
+ if (packetVersion < 20151104)
+ return;
+ createOutPacket(CMSG_PLAYER_STYLE_CLOSE);
+}
+
#undef setStatComplex
} // namespace EAthena
diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h
index a438fdac2..bb5facaa9 100644
--- a/src/net/eathena/playerhandler.h
+++ b/src/net/eathena/playerhandler.h
@@ -85,6 +85,8 @@ class PlayerHandler final : public Ea::PlayerHandler
const Notify notify) const override final;
void setTitle(const int titleId) const override final;
+
+ void closeStyleWindow() const override final;
};
} // namespace EAthena