summaryrefslogtreecommitdiff
path: root/src/net/eathena/mailhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-15 12:28:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-15 12:28:16 +0300
commita0f83483c5d9ae0a6b809c93e62697ba399ac246 (patch)
tree7c4f2bd2804d98ecf177ed73f0a6351783efb81a /src/net/eathena/mailhandler.cpp
parented9ca814f58dff6e676a052ac67766fd1af451fb (diff)
downloadManaVerse-a0f83483c5d9ae0a6b809c93e62697ba399ac246.tar.gz
ManaVerse-a0f83483c5d9ae0a6b809c93e62697ba399ac246.tar.bz2
ManaVerse-a0f83483c5d9ae0a6b809c93e62697ba399ac246.tar.xz
ManaVerse-a0f83483c5d9ae0a6b809c93e62697ba399ac246.zip
eathena: add packet CMSG_MAIL_SET_ATTACH 0x0247.
Diffstat (limited to 'src/net/eathena/mailhandler.cpp')
-rw-r--r--src/net/eathena/mailhandler.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp
index 006c5e9a2..ea420cfc4 100644
--- a/src/net/eathena/mailhandler.cpp
+++ b/src/net/eathena/mailhandler.cpp
@@ -22,6 +22,8 @@
#include "logger.h"
+#include "net/ea/eaprotocol.h"
+
#include "net/eathena/messageout.h"
#include "net/eathena/protocol.h"
@@ -104,4 +106,11 @@ void MailHandler::returnMessage(const int msgId)
outMsg.writeString("", 24, "unused");
}
+void MailHandler::setAttach(const int index, const int amount)
+{
+ MessageOut outMsg(CMSG_MAIL_SET_ATTACH);
+ outMsg.writeInt16(static_cast<int16_t>(index + INVENTORY_OFFSET), "index");
+ outMsg.writeInt32(amount, "amount");
+}
+
} // namespace EAthena