summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/packetsout.inc4
-rw-r--r--src/net/eathena/refinehandler.cpp5
-rw-r--r--src/net/eathena/refinehandler.h2
-rw-r--r--src/net/refinehandler.h2
-rw-r--r--src/net/tmwa/refinehandler.cpp4
-rw-r--r--src/net/tmwa/refinehandler.h2
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