summaryrefslogtreecommitdiff
path: root/src/net/eathena/mailhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-28 13:58:12 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-29 14:10:28 +0300
commitd90b88aae13baf16083e58896a81826b2679cd6f (patch)
tree4cce51ef44ba5f24dcbcb35010b310055850a738 /src/net/eathena/mailhandler.cpp
parente7379712454c42cabdc60cf2db11a5906949330f (diff)
downloadplus-d90b88aae13baf16083e58896a81826b2679cd6f.tar.gz
plus-d90b88aae13baf16083e58896a81826b2679cd6f.tar.bz2
plus-d90b88aae13baf16083e58896a81826b2679cd6f.tar.xz
plus-d90b88aae13baf16083e58896a81826b2679cd6f.zip
Allow send money by mail.
Diffstat (limited to 'src/net/eathena/mailhandler.cpp')
-rw-r--r--src/net/eathena/mailhandler.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp
index f49cc8a5e..5e8ae486e 100644
--- a/src/net/eathena/mailhandler.cpp
+++ b/src/net/eathena/mailhandler.cpp
@@ -265,6 +265,13 @@ void MailHandler::setAttach(const int index, const int amount)
outMsg.writeInt32(amount, "amount");
}
+void MailHandler::setAttachMoney(const int money)
+{
+ createOutPacket(CMSG_MAIL_SET_ATTACH);
+ outMsg.writeInt16(static_cast<int16_t>(0), "index");
+ outMsg.writeInt32(money, "money");
+}
+
void MailHandler::resetAttach(const int flag)
{
createOutPacket(CMSG_MAIL_RESET_ATTACH);