summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-10 01:34:40 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-10 01:34:40 +0300
commitb89bb9d7233acad1cefda6c393a930456a1f74da (patch)
treeeb98bf2d7f7589158083b41cc1e3f0754a3b77b4 /src/net/eathena/inventoryhandler.cpp
parentcbefa4969b51ec75c0ca6efd89e86ef71496f75f (diff)
downloadplus-b89bb9d7233acad1cefda6c393a930456a1f74da.tar.gz
plus-b89bb9d7233acad1cefda6c393a930456a1f74da.tar.bz2
plus-b89bb9d7233acad1cefda6c393a930456a1f74da.tar.xz
plus-b89bb9d7233acad1cefda6c393a930456a1f74da.zip
eathena: add packet CMSG_PLAYER_INSERT_CARD 0x017c.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index 86dd7ac02..9dc644fd5 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -237,6 +237,14 @@ void InventoryHandler::useCard(const int index) const
outMsg.writeInt16(index + INVENTORY_OFFSET, "index");
}
+void InventoryHandler::insertCard(const int cardIndex,
+ const int itemIndex) const
+{
+ MessageOut outMsg(CMSG_PLAYER_INSERT_CARD);
+ outMsg.writeInt16(cardIndex + INVENTORY_OFFSET, "card index");
+ outMsg.writeInt16(itemIndex + INVENTORY_OFFSET, "item index");
+}
+
void InventoryHandler::processPlayerEquipment(Net::MessageIn &msg)
{
BLOCK_START("InventoryHandler::processPlayerEquipment")