summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-03 01:18:07 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-03 01:18:07 +0300
commit6490c4cffbf326ad8044c149d7ce100c94c02b8d (patch)
tree31eb4aa353e80f908da51cd047824309349dcfd5 /src
parent661b65eb1c652ca9cd14ab3dae4adf619168028b (diff)
downloadmv-6490c4cffbf326ad8044c149d7ce100c94c02b8d.tar.gz
mv-6490c4cffbf326ad8044c149d7ce100c94c02b8d.tar.bz2
mv-6490c4cffbf326ad8044c149d7ce100c94c02b8d.tar.xz
mv-6490c4cffbf326ad8044c149d7ce100c94c02b8d.zip
Add packet SMSG_ITEM_PREVIEW2 0x0b13.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/inventoryrecv.cpp16
-rw-r--r--src/net/eathena/inventoryrecv.h1
-rw-r--r--src/net/eathena/packetsin.inc12
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);