From 65c80b4219378cf3e18a6d6beb09ec9913a01d53 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 22 Jan 2016 15:33:53 +0300 Subject: Add packet CMSG_QUICK_IDENTIFY_ITEM 0x0a35. --- src/net/eathena/inventoryhandler.cpp | 7 +++++++ src/net/eathena/inventoryhandler.h | 2 ++ src/net/eathena/packetsout.inc | 3 +++ 3 files changed, 12 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index c27bf1c8c..fa2905c28 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -221,4 +221,11 @@ void InventoryHandler::selectCart(const BeingId accountId, outMsg.writeInt8(type, "type"); } +void InventoryHandler::identifyItem(const Item *const item) const +{ + createOutPacket(CMSG_QUICK_IDENTIFY_ITEM); + outMsg.writeInt16(static_cast(item->getInvIndex()), + "item index"); +} + } // namespace EAthena diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h index 5f7439133..e54704cfb 100644 --- a/src/net/eathena/inventoryhandler.h +++ b/src/net/eathena/inventoryhandler.h @@ -69,6 +69,8 @@ class InventoryHandler final : public Ea::InventoryHandler void selectCart(const BeingId accountId, const int type) const override final; + void identifyItem(const Item *const item) 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 a8fe50a14..d974e4e53 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -275,5 +275,8 @@ if (packetVersion >= 20150513) } #endif +// introduced in 20150513 +packet(CMSG_QUICK_IDENTIFY_ITEM, 0x0a35); + // introduced in 20150805 packet(CMSG_SELECT_CART, 0x0980); -- cgit v1.2.3-70-g09d2