summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-22 15:33:53 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-22 15:33:53 +0300
commit65c80b4219378cf3e18a6d6beb09ec9913a01d53 (patch)
tree15fedd47422c06a10c2522d00688860d747d30ee /src
parent6a6ae903a648396a7e684f1443ee5a7d7a6dbaa7 (diff)
downloadmanaplus-65c80b4219378cf3e18a6d6beb09ec9913a01d53.tar.gz
manaplus-65c80b4219378cf3e18a6d6beb09ec9913a01d53.tar.bz2
manaplus-65c80b4219378cf3e18a6d6beb09ec9913a01d53.tar.xz
manaplus-65c80b4219378cf3e18a6d6beb09ec9913a01d53.zip
Add packet CMSG_QUICK_IDENTIFY_ITEM 0x0a35.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/inventoryhandler.cpp7
-rw-r--r--src/net/eathena/inventoryhandler.h2
-rw-r--r--src/net/eathena/packetsout.inc3
-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, 20 insertions, 0 deletions
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<int16_t>(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);
diff --git a/src/net/inventoryhandler.h b/src/net/inventoryhandler.h
index b4786fb94..77d2a526f 100644
--- a/src/net/inventoryhandler.h
+++ b/src/net/inventoryhandler.h
@@ -89,6 +89,8 @@ class InventoryHandler notfinal
virtual void selectCart(const BeingId accountId,
const int type) const = 0;
+
+ virtual void identifyItem(const Item *const item) const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp
index efe307775..24d76eab7 100644
--- a/src/net/tmwa/inventoryhandler.cpp
+++ b/src/net/tmwa/inventoryhandler.cpp
@@ -169,4 +169,8 @@ void InventoryHandler::selectCart(const BeingId accountId A_UNUSED,
{
}
+void InventoryHandler::identifyItem(const Item *const item A_UNUSED) const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/inventoryhandler.h b/src/net/tmwa/inventoryhandler.h
index 3b42c5f4c..f818a875b 100644
--- a/src/net/tmwa/inventoryhandler.h
+++ b/src/net/tmwa/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 10; }