From f9274c991314efefbc2efeca0beaa561603095de Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 11 Aug 2017 01:39:28 +0300 Subject: Add packet SMSG_RODEX_ADD_ITEM_RESULT 0x0a05. --- src/net/eathena/mail2recv.cpp | 29 +++++++++++++++++++++++++++++ src/net/eathena/mail2recv.h | 1 + src/net/eathena/packetsin.inc | 3 +++ 3 files changed, 33 insertions(+) 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) -- cgit v1.2.3-70-g09d2