diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 8 | ||||
-rw-r--r-- | src/net/eathena/inventoryhandler.h | 3 | ||||
-rw-r--r-- | src/net/eathena/packetsout.inc | 3 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 8220bd2e6..c27bf1c8c 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -213,4 +213,12 @@ int InventoryHandler::convertFromServerSlot(const int serverSlot) const return static_cast<int>(EQUIP_CONVERT[serverSlot]); } +void InventoryHandler::selectCart(const BeingId accountId, + const int type) const +{ + createOutPacket(CMSG_SELECT_CART); + outMsg.writeBeingId(accountId, "account id"); + outMsg.writeInt8(type, "type"); +} + } // namespace EAthena diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h index d2d7f100f..5f7439133 100644 --- a/src/net/eathena/inventoryhandler.h +++ b/src/net/eathena/inventoryhandler.h @@ -66,6 +66,9 @@ class InventoryHandler final : public Ea::InventoryHandler int convertFromServerSlot(const int serverSlot) const override final A_WARN_UNUSED; + void selectCart(const BeingId accountId, + const int type) const override final; + int getProjectileSlot() const override final { return 23; } diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index 9e1efc065..a8fe50a14 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -274,3 +274,6 @@ if (packetVersion >= 20150513) packet(CMSG_BUYINGSTORE_CLOSE, 0x022d); } #endif + +// introduced in 20150805 +packet(CMSG_SELECT_CART, 0x0980); |