summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/mail2handler.cpp10
-rw-r--r--src/net/eathena/mail2handler.h2
-rw-r--r--src/net/eathena/packetsout.inc7
3 files changed, 19 insertions, 0 deletions
diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp
index b4b6de984..4797eaf82 100644
--- a/src/net/eathena/mail2handler.cpp
+++ b/src/net/eathena/mail2handler.cpp
@@ -216,4 +216,14 @@ void Mail2Handler::openMailBox(const int openType) const
outMsg.writeInt64(0, "mail id");
}
+void Mail2Handler::closeMailBox() const
+{
+ if (packetVersion < 20131211 ||
+ serverVersion < 19)
+ {
+ return;
+ }
+ createOutPacket(CMSG_MAIL2_CLOSE_MAILBOX);
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/mail2handler.h b/src/net/eathena/mail2handler.h
index 4ad44870b..acd32dfd6 100644
--- a/src/net/eathena/mail2handler.h
+++ b/src/net/eathena/mail2handler.h
@@ -67,6 +67,8 @@ class Mail2Handler final : public Net::Mail2Handler
const int64_t mailId) const override final;
void openMailBox(const int openType) const override final;
+
+ void closeMailBox() const override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc
index dfe9808a2..136d3f20d 100644
--- a/src/net/eathena/packetsout.inc
+++ b/src/net/eathena/packetsout.inc
@@ -329,6 +329,7 @@ packet(CMSG_MAIL2_REQUEST_MONEY, 0x0000, 0, nullptr);
packet(CMSG_MAIL2_REQUEST_ITEMS, 0x0000, 0, nullptr);
packet(CMSG_MAIL2_REFRESH_MAIL_LIST, 0x0000, 0, nullptr);
packet(CMSG_MAIL2_OPEN_MAILBOX, 0x0000, 0, nullptr);
+packet(CMSG_MAIL2_CLOSE_MAILBOX, 0x0000, 0, nullptr);
#else
// 20040713
if (packetVersion >= 20040713)
@@ -1138,6 +1139,12 @@ if (packetVersion >= 20130814)
packet(CMSG_ADMIN_MONSTER_ITEM, 0x09ce, 102, clif->pGM_Monster_Item);
}
+// 20131211
+if (packetVersion >= 20131211)
+{
+ packet(CMSG_MAIL2_CLOSE_MAILBOX, 0x09e9, 2, clif->pRodexCloseMailbox);
+}
+
// 20131218
if (packetVersion >= 20131218)
{