summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-15 12:35:41 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-15 12:35:41 +0300
commitd23ec275ea4b350dc616e592714724d66de4599a (patch)
tree61665cefe98218929ed85647c7669b4b3a662102 /src/net/eathena
parenta0f83483c5d9ae0a6b809c93e62697ba399ac246 (diff)
downloadmanaplus-d23ec275ea4b350dc616e592714724d66de4599a.tar.gz
manaplus-d23ec275ea4b350dc616e592714724d66de4599a.tar.bz2
manaplus-d23ec275ea4b350dc616e592714724d66de4599a.tar.xz
manaplus-d23ec275ea4b350dc616e592714724d66de4599a.zip
eathena: add packet CMSG_MAIL_RESET_ATTACH 0x0246.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/mailhandler.cpp6
-rw-r--r--src/net/eathena/mailhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp
index ea420cfc4..23e959538 100644
--- a/src/net/eathena/mailhandler.cpp
+++ b/src/net/eathena/mailhandler.cpp
@@ -113,4 +113,10 @@ void MailHandler::setAttach(const int index, const int amount)
outMsg.writeInt32(amount, "amount");
}
+void MailHandler::resetAttach(const int flag)
+{
+ MessageOut outMsg(CMSG_MAIL_RESET_ATTACH);
+ outMsg.writeInt16(static_cast<int16_t>(flag), "flag");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/mailhandler.h b/src/net/eathena/mailhandler.h
index b6d2b9080..1b4f9f2b5 100644
--- a/src/net/eathena/mailhandler.h
+++ b/src/net/eathena/mailhandler.h
@@ -50,6 +50,8 @@ class MailHandler final : public MessageHandler, public Net::MailHandler
void setAttach(const int index, const int amount) override final;
+ void resetAttach(const int flag) override final;
+
protected:
void processMailOpen(Net::MessageIn &msg) const;
};
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index d28806559..70ffd74e5 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -372,6 +372,7 @@
#define CMSG_MAIL_DELETE_MESSAGE 0x0243
#define CMSG_MAIL_RETURN_MESSAGE 0x0273
#define CMSG_MAIL_SET_ATTACH 0x0247
+#define CMSG_MAIL_RESET_ATTACH 0x0246
#define SMSG_SOLVE_CHAR_NAME 0x0194
#define SMSG_SKILL_CASTING 0x07fb