summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-01-25 03:29:47 +0300
committerAndrei Karas <akaras@inbox.ru>2019-01-25 03:29:47 +0300
commitca2c1a3e20d9cf16fd77649bfd48a26b2f7d9390 (patch)
tree419bf82eef0ad201ff45b230e8bc1d4dbb89bfcd /src
parent1b0b820965425d1e5a40668faf75b3e41e870e45 (diff)
downloadManaVerse-ca2c1a3e20d9cf16fd77649bfd48a26b2f7d9390.tar.gz
ManaVerse-ca2c1a3e20d9cf16fd77649bfd48a26b2f7d9390.tar.bz2
ManaVerse-ca2c1a3e20d9cf16fd77649bfd48a26b2f7d9390.tar.xz
ManaVerse-ca2c1a3e20d9cf16fd77649bfd48a26b2f7d9390.zip
Add packet CMSG_INVENTORY_EXPAND_REJECT 0x0b19
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/inventoryhandler.cpp11
-rw-r--r--src/net/eathena/inventoryhandler.h2
-rw-r--r--src/net/eathena/packetsout.inc4
-rw-r--r--src/net/inventoryhandler.h2
-rw-r--r--src/net/tmwa/inventoryhandler.cpp4
-rw-r--r--src/net/tmwa/inventoryhandler.h2
6 files changed, 25 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index f484afac9..67a91edfb 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -625,4 +625,15 @@ void InventoryHandler::expandInventoryConfirm() const
createOutPacket(CMSG_INVENTORY_EXPAND_CONFIRM);
}
+void InventoryHandler::expandInventoryReject() const
+{
+ if (packetVersionMain < 20181031 &&
+ packetVersionRe < 20181031 &&
+ packetVersionZero < 20181114)
+ {
+ return;
+ }
+ createOutPacket(CMSG_INVENTORY_EXPAND_REJECT);
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h
index 3494cd6c1..ce230e67d 100644
--- a/src/net/eathena/inventoryhandler.h
+++ b/src/net/eathena/inventoryhandler.h
@@ -86,6 +86,8 @@ class InventoryHandler final : public Ea::InventoryHandler
void expandInventoryConfirm() const override final;
+ void expandInventoryReject() const override final;
+
int getProjectileSlot() const override final
{ return 10; }
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc
index ef2358500..8811c8a4a 100644
--- a/src/net/eathena/packetsout.inc
+++ b/src/net/eathena/packetsout.inc
@@ -346,6 +346,7 @@ packet(CMSG_LOGIN_MOBILE_OTP, 0x0000, 0, nullptr);
packet(CMSG_LOGIN_OTP_CODE, 0x0000, 0, nullptr);
packet(CMSG_INVENTORY_EXPAND, 0x0000, 0, nullptr);
packet(CMSG_INVENTORY_EXPAND_CONFIRM, 0x0000, 0, nullptr);
+packet(CMSG_INVENTORY_EXPAND_REJECT, 0x0000, 0, nullptr);
#else
// 20040713
if (packetVersion >= 20040713)
@@ -1471,6 +1472,7 @@ if (packetVersionMain >= 20181031)
{
packet(CMSG_INVENTORY_EXPAND, 0x0b14, 2, clif->pInventoryExpansion);
packet(CMSG_INVENTORY_EXPAND_CONFIRM, 0x0b16, 2, clif->pInventoryExpansionConfirm);
+ packet(CMSG_INVENTORY_EXPAND_REJECT, 0x0b19, 2, clif->pInventoryExpansionReject);
}
// 20181031 re
@@ -1478,6 +1480,7 @@ if (packetVersionRe >= 20181031)
{
packet(CMSG_INVENTORY_EXPAND, 0x0b14, 2, clif->pInventoryExpansion);
packet(CMSG_INVENTORY_EXPAND_CONFIRM, 0x0b16, 2, clif->pInventoryExpansionConfirm);
+ packet(CMSG_INVENTORY_EXPAND_REJECT, 0x0b19, 2, clif->pInventoryExpansionReject);
}
// 20181114 main
@@ -1499,6 +1502,7 @@ if (packetVersionZero >= 20181114)
{
packet(CMSG_INVENTORY_EXPAND, 0x0b14, 2, clif->pInventoryExpansion);
packet(CMSG_INVENTORY_EXPAND_CONFIRM, 0x0b16, 2, clif->pInventoryExpansionConfirm);
+ packet(CMSG_INVENTORY_EXPAND_REJECT, 0x0b19, 2, clif->pInventoryExpansionReject);
}
#endif
diff --git a/src/net/inventoryhandler.h b/src/net/inventoryhandler.h
index 3fa58f93f..b7bd313a9 100644
--- a/src/net/inventoryhandler.h
+++ b/src/net/inventoryhandler.h
@@ -109,6 +109,8 @@ class InventoryHandler notfinal
virtual void expandInventory() const = 0;
virtual void expandInventoryConfirm() const = 0;
+
+ virtual void expandInventoryReject() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp
index 3f5e93d75..ab8f45ecf 100644
--- a/src/net/tmwa/inventoryhandler.cpp
+++ b/src/net/tmwa/inventoryhandler.cpp
@@ -201,4 +201,8 @@ void InventoryHandler::expandInventoryConfirm() const
{
}
+void InventoryHandler::expandInventoryReject() const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/inventoryhandler.h b/src/net/tmwa/inventoryhandler.h
index 5dfa2d230..be0427462 100644
--- a/src/net/tmwa/inventoryhandler.h
+++ b/src/net/tmwa/inventoryhandler.h
@@ -83,6 +83,8 @@ class InventoryHandler final : public Ea::InventoryHandler
void expandInventoryConfirm() const override final;
+ void expandInventoryReject() const override final;
+
int getProjectileSlot() const override final
{ return 10; }