From d90b88aae13baf16083e58896a81826b2679cd6f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 28 Apr 2015 13:58:12 +0300 Subject: Allow send money by mail. --- src/net/eathena/mailhandler.cpp | 7 +++++++ src/net/eathena/mailhandler.h | 2 ++ 2 files changed, 9 insertions(+) (limited to 'src/net/eathena') 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(0), "index"); + outMsg.writeInt32(money, "money"); +} + void MailHandler::resetAttach(const int flag) { createOutPacket(CMSG_MAIL_RESET_ATTACH); diff --git a/src/net/eathena/mailhandler.h b/src/net/eathena/mailhandler.h index 92ecc9eef..3b0d17574 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 setAttachMoney(const int money) override final; + void resetAttach(const int flag) override final; void send(const std::string &name, -- cgit v1.2.3-70-g09d2