diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-05-15 00:22:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-05-15 00:22:37 +0300 |
commit | 55824ba9e550787d92fda8dda8fa27c21abc42f0 (patch) | |
tree | ac836816985dcaa33619b187dfa9982463c69630 | |
parent | e651fb2b52d64c78ec9d5bd01ba449fa0a70afc9 (diff) | |
download | mv-55824ba9e550787d92fda8dda8fa27c21abc42f0.tar.gz mv-55824ba9e550787d92fda8dda8fa27c21abc42f0.tar.bz2 mv-55824ba9e550787d92fda8dda8fa27c21abc42f0.tar.xz mv-55824ba9e550787d92fda8dda8fa27c21abc42f0.zip |
Add packet CMSG_REFINE_CLOSE 0x0aa4
-rw-r--r-- | src/net/eathena/packetsout.inc | 4 | ||||
-rw-r--r-- | src/net/eathena/refinehandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/refinehandler.h | 2 | ||||
-rw-r--r-- | src/net/refinehandler.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/refinehandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/refinehandler.h | 2 |
6 files changed, 19 insertions, 0 deletions
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index 479e1687c..5f5aa4847 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -360,6 +360,7 @@ packet(CMSG_MAP_PING2, 0x0000, 0, nullptr); packet(CMSG_ADMIN_RESET_COOLDOWNS, 0x0000, 0, nullptr); packet(CMSG_REFINE_ADD_ITEM, 0x0000, 0, nullptr); packet(CMSG_REFINE_ITEM, 0x0000, 0, nullptr); +packet(CMSG_REFINE_CLOSE, 0x0000, 0, nullptr); #else // 20040713 if (packetVersion >= 20040713) @@ -1403,6 +1404,7 @@ if (packetVersionMain >= 20161005) { packet(CMSG_REFINE_ADD_ITEM, 0x0aa1, 4, clif->pAddItemRefineryUI); packet(CMSG_REFINE_ITEM, 0x0aa3, 7, clif->pRefineryUIRefine); + packet(CMSG_REFINE_CLOSE, 0x0aa4, 2, clif->pRefineryUIClose); } // 20161005 re @@ -1410,6 +1412,7 @@ if (packetVersionRe >= 20161005) { packet(CMSG_REFINE_ADD_ITEM, 0x0aa1, 4, clif->pAddItemRefineryUI); packet(CMSG_REFINE_ITEM, 0x0aa3, 7, clif->pRefineryUIRefine); + packet(CMSG_REFINE_CLOSE, 0x0aa4, 2, clif->pRefineryUIClose); } // 20170419 @@ -1425,6 +1428,7 @@ if (packets_zero >= true) packet(CMSG_PRIVATE_AIRSHIP_REQUEST, 0x0a49, 20, clif->pPrivateAirshipRequest); packet(CMSG_REFINE_ADD_ITEM, 0x0aa1, 4, clif->pAddItemRefineryUI); packet(CMSG_REFINE_ITEM, 0x0aa3, 7, clif->pRefineryUIRefine); + packet(CMSG_REFINE_CLOSE, 0x0aa4, 2, clif->pRefineryUIClose); } // 20171214 zero diff --git a/src/net/eathena/refinehandler.cpp b/src/net/eathena/refinehandler.cpp index d602250a3..35f441600 100644 --- a/src/net/eathena/refinehandler.cpp +++ b/src/net/eathena/refinehandler.cpp @@ -66,4 +66,9 @@ void RefineHandler::refineItem(const Item *const item1, outMsg.writeInt8(blessing, "blessing"); } +void RefineHandler::close() const +{ + createOutPacket(CMSG_REFINE_CLOSE); +} + } // namespace EAthena diff --git a/src/net/eathena/refinehandler.h b/src/net/eathena/refinehandler.h index aefb8783c..1f163f7e1 100644 --- a/src/net/eathena/refinehandler.h +++ b/src/net/eathena/refinehandler.h @@ -39,6 +39,8 @@ class RefineHandler final : public Net::RefineHandler void refineItem(const Item *const item1, const Item *const item2, int blessing) const override final; + + void close() const override final; }; } // namespace EAthena diff --git a/src/net/refinehandler.h b/src/net/refinehandler.h index 8e966e477..5a67e47fc 100644 --- a/src/net/refinehandler.h +++ b/src/net/refinehandler.h @@ -44,6 +44,8 @@ class RefineHandler notfinal virtual void refineItem(const Item *const item1, const Item *const item2, int blessing) const = 0; + + virtual void close() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/refinehandler.cpp b/src/net/tmwa/refinehandler.cpp index 2120dd0fd..b4842ce86 100644 --- a/src/net/tmwa/refinehandler.cpp +++ b/src/net/tmwa/refinehandler.cpp @@ -46,4 +46,8 @@ void RefineHandler::refineItem(const Item *const item1 A_UNUSED, { } +void RefineHandler::close() const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/refinehandler.h b/src/net/tmwa/refinehandler.h index aa8479037..beaedb83f 100644 --- a/src/net/tmwa/refinehandler.h +++ b/src/net/tmwa/refinehandler.h @@ -39,6 +39,8 @@ class RefineHandler final : public Net::RefineHandler void refineItem(const Item *const item1, const Item *const item2, int blessing) const override final; + + void close() const override final; }; } // namespace TmwAthena |