diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-12 16:55:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-12 16:55:45 +0300 |
commit | edd3c87f697c6c0c33a2291cf70016ec56c84f54 (patch) | |
tree | 1ae791658cdf2083d86833db11ab30ecd60bfe49 /src/net/eathena | |
parent | ca54c8874b631b392366f98731704db6177b14a6 (diff) | |
download | manaplus-edd3c87f697c6c0c33a2291cf70016ec56c84f54.tar.gz manaplus-edd3c87f697c6c0c33a2291cf70016ec56c84f54.tar.bz2 manaplus-edd3c87f697c6c0c33a2291cf70016ec56c84f54.tar.xz manaplus-edd3c87f697c6c0c33a2291cf70016ec56c84f54.zip |
eathena: add partial support for packet SMSG_MAIL_SEND_MAIL_ACK 0x0249.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/mailhandler.cpp | 12 | ||||
-rw-r--r-- | src/net/eathena/mailhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/packets.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
4 files changed, 16 insertions, 1 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp index d0d361170..c27c3c894 100644 --- a/src/net/eathena/mailhandler.cpp +++ b/src/net/eathena/mailhandler.cpp @@ -43,6 +43,7 @@ MailHandler::MailHandler() : SMSG_MAIL_MAILS_LIST, SMSG_MAIL_READ_MAIL, SMSG_MAIL_GET_ATTACHMENT, + SMSG_MAIL_SEND_MAIL_ACK, 0 }; handledMessages = _messages; @@ -69,6 +70,10 @@ void MailHandler::handleMessage(Net::MessageIn &msg) processGetAttachment(msg); break; + case SMSG_MAIL_SEND_MAIL_ACK: + processSendMailAck(msg); + break; + default: break; } @@ -142,6 +147,13 @@ void MailHandler::processGetAttachment(Net::MessageIn &msg) msg.readUInt8("flag"); } +void MailHandler::processSendMailAck(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + msg.readUInt8("fail flag"); +} + void MailHandler::refresh() { createOutPacket(CMSG_MAIL_REFRESH_INBOX); diff --git a/src/net/eathena/mailhandler.h b/src/net/eathena/mailhandler.h index e098a0540..079c7f590 100644 --- a/src/net/eathena/mailhandler.h +++ b/src/net/eathena/mailhandler.h @@ -64,6 +64,8 @@ class MailHandler final : public MessageHandler, public Net::MailHandler static void processReadMail(Net::MessageIn &msg); static void processGetAttachment(Net::MessageIn &msg); + + static void processSendMailAck(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index 70d7db83a..5bd49c386 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -88,7 +88,7 @@ int16_t packet_lengths[] = -1, -1, 0, 8, 10, 0, 282, 0, 0, 15, 0, 0, 0, 19, 71, 5, 12, 0, 0, 0, 0, -1, 0, 0, 282, 0, 4, 0, 6, 0, 0, 0, // #0x0240 - -1, 0, -1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + -1, 0, -1, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 3, 0, -1, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 4, 0, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 575e52246..35e72298d 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -308,6 +308,7 @@ #define SMSG_MAIL_MAILS_LIST 0x0240 #define SMSG_MAIL_READ_MAIL 0x0242 #define SMSG_MAIL_GET_ATTACHMENT 0x0245 +#define SMSG_MAIL_SEND_MAIL_ACK 0x0249 #define SMSG_MAIL_OPEN_WINDOW 0x0260 #define SMSG_FAMILY_ASK_FOR_CHILD 0x01f6 |