diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-11 03:28:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-11 15:51:49 +0300 |
commit | b69cc890606be77416d1e1031c0041754fa51c52 (patch) | |
tree | 4f8c2b908d909800020baeb3ece07dbc086fc356 /src/net/eathena/mail2recv.cpp | |
parent | 6597e683da916a47705a23e67087b19a89bb0778 (diff) | |
download | ManaVerse-b69cc890606be77416d1e1031c0041754fa51c52.tar.gz ManaVerse-b69cc890606be77416d1e1031c0041754fa51c52.tar.bz2 ManaVerse-b69cc890606be77416d1e1031c0041754fa51c52.tar.xz ManaVerse-b69cc890606be77416d1e1031c0041754fa51c52.zip |
Add packet SMSG_RODEX_READ_MAIL 0x09eb.
Diffstat (limited to 'src/net/eathena/mail2recv.cpp')
-rw-r--r-- | src/net/eathena/mail2recv.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/net/eathena/mail2recv.cpp b/src/net/eathena/mail2recv.cpp index 1cc66e0de..3f2049d18 100644 --- a/src/net/eathena/mail2recv.cpp +++ b/src/net/eathena/mail2recv.cpp @@ -115,4 +115,35 @@ void Mail2Recv::processMailListPage(Net::MessageIn &msg) } } +void Mail2Recv::processReadMail(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + msg.readInt16("len"); + msg.readUInt8("open type"); + msg.readInt64("mail id"); + const int textLen = msg.readInt16("text len"); + msg.readInt64("money"); + const int itemsCount = msg.readUInt8("item count"); + msg.readString(textLen, "text message"); + for (int f = 0; f < itemsCount; f ++) + { + msg.readInt16("amount"); + msg.readInt16("item id"); + msg.readUInt8("identify"); + msg.readUInt8("damaged"); + msg.readUInt8("refine"); + for (int d = 0; d < maxCards; d ++) + msg.readUInt16("card"); + msg.readInt32("unknown"); + msg.readUInt8("type"); + msg.readInt32("unknown"); + for (int d = 0; d < 5; d ++) + { + msg.readInt16("option index"); + msg.readInt16("option value"); + msg.readUInt8("option param"); + } + } +} + } // namespace EAthena |