summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-01-24 20:13:06 +0300
committerAndrei Karas <akaras@inbox.ru>2019-01-25 02:39:13 +0300
commitd2fb1e8fe58821c598b88906b919a36fb29a72e9 (patch)
treed125c41a7a95b42f0fdc3819ae868818eb5a3e07
parentf08d73feaf8ff09b9a7eb3caceeea8e8b1f93ee6 (diff)
downloadmanaverse-d2fb1e8fe58821c598b88906b919a36fb29a72e9.tar.gz
manaverse-d2fb1e8fe58821c598b88906b919a36fb29a72e9.tar.bz2
manaverse-d2fb1e8fe58821c598b88906b919a36fb29a72e9.tar.xz
manaverse-d2fb1e8fe58821c598b88906b919a36fb29a72e9.zip
Add packet SMSG_INVENTORY_EXPANSION_ACK 0x0b15
-rw-r--r--src/net/eathena/inventoryrecv.cpp8
-rw-r--r--src/net/eathena/inventoryrecv.h1
-rw-r--r--src/net/eathena/packetsin.inc3
3 files changed, 11 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp
index 388a8fe10..9a0b85c3c 100644
--- a/src/net/eathena/inventoryrecv.cpp
+++ b/src/net/eathena/inventoryrecv.cpp
@@ -1674,7 +1674,6 @@ void InventoryRecv::processShowItemPreview2(Net::MessageIn &msg)
void InventoryRecv::processInventoryExpansionInfo(Net::MessageIn &msg)
{
- UNIMPLEMENTEDPACKET;
const int newSize = msg.readInt16("expansion size") +
settings.fixedInventorySize;
Inventory *const inv = PlayerInfo::getInventory();
@@ -1684,4 +1683,11 @@ void InventoryRecv::processInventoryExpansionInfo(Net::MessageIn &msg)
}
}
+void InventoryRecv::processInventoryExpansionAck(Net::MessageIn &msg)
+{
+ UNIMPLEMENTEDPACKET;
+ msg.readUInt8("result");
+ msg.readItemId("item id");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/inventoryrecv.h b/src/net/eathena/inventoryrecv.h
index 72f6ffbe2..a0d1aa46f 100644
--- a/src/net/eathena/inventoryrecv.h
+++ b/src/net/eathena/inventoryrecv.h
@@ -99,6 +99,7 @@ namespace EAthena
void processShowItemPreview1(Net::MessageIn &msg);
void processShowItemPreview2(Net::MessageIn &msg);
void processInventoryExpansionInfo(Net::MessageIn &msg);
+ void processInventoryExpansionAck(Net::MessageIn &msg);
} // namespace InventoryRecv
} // namespace EAthena
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc
index b9dc5c645..fa6c6c827 100644
--- a/src/net/eathena/packetsin.inc
+++ b/src/net/eathena/packetsin.inc
@@ -1499,18 +1499,21 @@ if (packetVersionMain >= 20181128)
if (packetVersionZero >= 20181212)
{
packet(SMSG_INVENTORY_EXPANSION_INFO, 0x0b18, 4, &InventoryRecv::processInventoryExpansionInfo, 20181212);
+ packet(SMSG_INVENTORY_EXPANSION_ACK, 0x0b15, 7, &InventoryRecv::processInventoryExpansionAck, 20181212);
}
// 20181219 main
if (packetVersionMain >= 20181219)
{
packet(SMSG_INVENTORY_EXPANSION_INFO, 0x0b18, 4, &InventoryRecv::processInventoryExpansionInfo, 20181219);
+ packet(SMSG_INVENTORY_EXPANSION_ACK, 0x0b15, 7, &InventoryRecv::processInventoryExpansionAck, 20181219);
}
// 20181219 re
if (packetVersionRe >= 20181219)
{
packet(SMSG_INVENTORY_EXPANSION_INFO, 0x0b18, 4, &InventoryRecv::processInventoryExpansionInfo, 20181219);
+ packet(SMSG_INVENTORY_EXPANSION_ACK, 0x0b15, 7, &InventoryRecv::processInventoryExpansionAck, 20181219);
}
// 0