diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/inventoryrecv.cpp | 16 | ||||
-rw-r--r-- | src/net/eathena/inventoryrecv.h | 1 | ||||
-rw-r--r-- | src/net/eathena/packetsin.inc | 12 |
3 files changed, 29 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp index a863a0229..42a689b12 100644 --- a/src/net/eathena/inventoryrecv.cpp +++ b/src/net/eathena/inventoryrecv.cpp @@ -1656,4 +1656,20 @@ void InventoryRecv::processShowItemPreview1(Net::MessageIn &msg) } } +void InventoryRecv::processShowItemPreview2(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + msg.readInt16("inv index"); + msg.readUInt8("is damaged"); + msg.readInt16("refine"); + for (int f = 0; f < maxCards; f++) + msg.readItemId("card"); + for (int f = 0; f < 5; f ++) + { + msg.readInt16("option index"); + msg.readInt16("option value"); + msg.readUInt8("option param"); + } +} + } // namespace EAthena diff --git a/src/net/eathena/inventoryrecv.h b/src/net/eathena/inventoryrecv.h index 281a90e22..35b48de38 100644 --- a/src/net/eathena/inventoryrecv.h +++ b/src/net/eathena/inventoryrecv.h @@ -97,6 +97,7 @@ namespace EAthena const NetInventoryTypeT invType A_UNUSED); void processShowItemPreview1(Net::MessageIn &msg); + void processShowItemPreview2(Net::MessageIn &msg); } // namespace InventoryRecv } // namespace EAthena diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index 5bdfc41e3..aa30f5cfc 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -1364,6 +1364,18 @@ if (packetVersion >= 20181002) packet(SMSG_BEING_REMOVE_SPECIAL_EFFECT, 0x0b0d, 10, &BeingRecv::processBeingRemoveSpecialEffect, 20181002); } +// 20181017 main +if (packetVersionMain >= 20181017) +{ + packet(SMSG_ITEM_PREVIEW2, 0x0b13, 40, &InventoryRecv::processShowItemPreview2, 20181017); +} + +// 20181017 re +if (packetVersionRe >= 20181017) +{ + packet(SMSG_ITEM_PREVIEW2, 0x0b13, 48, &InventoryRecv::processShowItemPreview2, 20181017); +} + // 0 // evol always packets packet(SMSG_SERVER_VERSION_RESPONSE, 0x7531, -1, &LoginRecv::processServerVersion, 0); |