diff options
Diffstat (limited to 'src/net/eathena')
-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 |
3 files changed, 11 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 |