diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-11 01:39:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-11 01:39:28 +0300 |
commit | f9274c991314efefbc2efeca0beaa561603095de (patch) | |
tree | 3ecb3cb0ca597ec90584c58629494f26fa28159a /src/net/eathena | |
parent | 302519fb539d17a10061d590f051a23633be6cc4 (diff) | |
download | manaplus-f9274c991314efefbc2efeca0beaa561603095de.tar.gz manaplus-f9274c991314efefbc2efeca0beaa561603095de.tar.bz2 manaplus-f9274c991314efefbc2efeca0beaa561603095de.tar.xz manaplus-f9274c991314efefbc2efeca0beaa561603095de.zip |
Add packet SMSG_RODEX_ADD_ITEM_RESULT 0x0a05.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/mail2recv.cpp | 29 | ||||
-rw-r--r-- | src/net/eathena/mail2recv.h | 1 | ||||
-rw-r--r-- | src/net/eathena/packetsin.inc | 3 |
3 files changed, 33 insertions, 0 deletions
diff --git a/src/net/eathena/mail2recv.cpp b/src/net/eathena/mail2recv.cpp index 30cf22cd4..8e7c00ba8 100644 --- a/src/net/eathena/mail2recv.cpp +++ b/src/net/eathena/mail2recv.cpp @@ -24,6 +24,8 @@ #include "net/messagein.h" +#include "const/resources/item/cards.h" + #include "debug.h" namespace EAthena @@ -42,4 +44,31 @@ void Mail2Recv::processOpenNewMailWindow(Net::MessageIn &msg) msg.readUInt8("result"); } +void Mail2Recv::processAddItemResult(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + msg.readUInt8("result"); + msg.readInt16("index"); + msg.readInt16("count"); + msg.readInt16("itid"); + msg.readUInt8("type"); + msg.readUInt8("identify"); + msg.readUInt8("damaged"); + msg.readUInt8("refine"); + for (int f = 0; f < maxCards; f++) + msg.readUInt16("card"); + for (int f = 0; f < 5; f ++) + { + msg.readInt16("option index"); + msg.readInt16("option value"); + msg.readUInt8("option param"); + } + msg.readInt16("weight"); + msg.readUInt8("unknown 1"); + msg.readUInt8("unknown 2"); + msg.readUInt8("unknown 3"); + msg.readUInt8("unknown 4"); + msg.readUInt8("unknown 5"); +} + } // namespace EAthena diff --git a/src/net/eathena/mail2recv.h b/src/net/eathena/mail2recv.h index 7a5287047..4d0e8bc34 100644 --- a/src/net/eathena/mail2recv.h +++ b/src/net/eathena/mail2recv.h @@ -32,6 +32,7 @@ namespace EAthena { void processMailIcon(Net::MessageIn &msg); void processOpenNewMailWindow(Net::MessageIn &msg); + void processAddItemResult(Net::MessageIn &msg); } // namespace MailRecv } // namespace EAthena diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index 391491d5d..988c6ca16 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -820,6 +820,9 @@ if (packetVersion >= 20141022) packet(SMSG_VENDING_OPEN_STATUS, 0x0a28, 3, &VendingRecv::processOpenStatus, 20141022); } +// 20141119 +packet(SMSG_RODEX_ADD_ITEM_RESULT, 0x0a05, 53, &Mail2Recv::processAddItemResult, 20141119); + // 0 // evol packets if (serverVersion > 0) |