From b89bb9d7233acad1cefda6c393a930456a1f74da Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Sep 2014 01:34:40 +0300 Subject: eathena: add packet CMSG_PLAYER_INSERT_CARD 0x017c. --- src/net/eathena/inventoryhandler.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/net/eathena/inventoryhandler.cpp') 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") -- cgit v1.2.3-70-g09d2