diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/adminhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 13 | ||||
-rw-r--r-- | src/net/eathena/adminhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/packetsout.inc | 13 | ||||
-rw-r--r-- | src/net/tmwa/adminhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/adminhandler.h | 2 |
6 files changed, 36 insertions, 0 deletions
diff --git a/src/net/adminhandler.h b/src/net/adminhandler.h index 98ef1687a..45be57395 100644 --- a/src/net/adminhandler.h +++ b/src/net/adminhandler.h @@ -183,6 +183,8 @@ class AdminHandler notfinal virtual void breakGuild(const std::string &name) const = 0; virtual void guildRecall(const std::string &name) const = 0; + + virtual void changeDress() const = 0; }; } // namespace Net diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index a3cb53fa9..757f1df4d 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -32,6 +32,9 @@ #include "debug.h" +extern int packetVersion; +extern int packetVersionZero; + namespace EAthena { @@ -376,4 +379,14 @@ void AdminHandler::slide(const int x, const int y) const strprintf("%d %d", x, y)); } +void AdminHandler::changeDress() const +{ + if (packetVersionZero < 20171214 && + packetVersion < 20171220) + { + return; + } + createOutPacket(CMSG_CHANGE_DRESS); +} + } // namespace EAthena diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h index d499e5536..e29de781a 100644 --- a/src/net/eathena/adminhandler.h +++ b/src/net/eathena/adminhandler.h @@ -158,6 +158,8 @@ class AdminHandler final : public Ea::AdminHandler void slide(const int x, const int y) const override final; + void changeDress() const override final; + protected: static std::string mStatsName; }; diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index 527c8511a..0bff320dd 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -339,6 +339,7 @@ packet(CMSG_PLAYER_SELECT_STYLE, 0x0000, 0, nullptr); packet(CMSG_PLAYER_SELECT_STYLE2, 0x0000, 0, nullptr); packet(CMSG_PET_EVOLUTION, 0x0000, 0, nullptr); packet(CMSG_PLAYER_SET_TITLE, 0x0000, 0, nullptr); +packet(CMSG_CHANGE_DRESS, 0x0000, 0, nullptr); #else // 20040713 if (packetVersion >= 20040713) @@ -1369,6 +1370,18 @@ if (packetVersion >= 20170419) packet(CMSG_MAIL2_REFRESH_MAIL_LIST, 0x0ac1, 26, clif->pRodexRefreshMaillist); } +// 20171214 zero +if (packetVersionZero >= 20171214) +{ + packet(CMSG_CHANGE_DRESS, 0x0ae8, 2, clif->pChangeDress); +} + +// 20171220 +if (packetVersion >= 20171220) +{ + packet(CMSG_CHANGE_DRESS, 0x0ae8, 2, clif->pChangeDress); +} + // zero 20180131 if (packetVersionZero >= 20180131) { diff --git a/src/net/tmwa/adminhandler.cpp b/src/net/tmwa/adminhandler.cpp index 36c0d1488..c064a2e22 100644 --- a/src/net/tmwa/adminhandler.cpp +++ b/src/net/tmwa/adminhandler.cpp @@ -296,4 +296,8 @@ void AdminHandler::slide(const int x, const int y) const warp(Game::instance()->getCurrentMapName(), x, y); } +void AdminHandler::changeDress() const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/adminhandler.h b/src/net/tmwa/adminhandler.h index 79eb3ed55..122c90d82 100644 --- a/src/net/tmwa/adminhandler.h +++ b/src/net/tmwa/adminhandler.h @@ -157,6 +157,8 @@ class AdminHandler final : public Ea::AdminHandler void guildRecall(const std::string &name) const override final; void slide(const int x, const int y) const override final; + + void changeDress() const override final; }; } // namespace TmwAthena |