From edd3c87f697c6c0c33a2291cf70016ec56c84f54 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 Mar 2015 16:55:45 +0300 Subject: eathena: add partial support for packet SMSG_MAIL_SEND_MAIL_ACK 0x0249. --- src/net/eathena/mailhandler.cpp | 12 ++++++++++++ src/net/eathena/mailhandler.h | 2 ++ src/net/eathena/packets.h | 2 +- src/net/eathena/protocol.h | 1 + 4 files changed, 16 insertions(+), 1 deletion(-) (limited to 'src/net') 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 -- cgit v1.2.3-60-g2f50