From e61466ca3f2af0b3c7354d42c7f10d40ecea9d08 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 Jan 2016 23:38:20 +0300 Subject: Impliment packet CMSG_SELECT_CART 0x0980. --- src/net/eathena/inventoryhandler.cpp | 8 ++++++++ src/net/eathena/inventoryhandler.h | 3 +++ src/net/eathena/packetsout.inc | 3 +++ 3 files changed, 14 insertions(+) (limited to 'src/net/eathena') 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(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); -- cgit v1.2.3-70-g09d2