From cbefa4969b51ec75c0ca6efd89e86ef71496f75f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Sep 2014 23:37:07 +0300 Subject: eathena: add packet CMSG_PLAYER_USE_CARD 0x017a. --- src/net/eathena/inventoryhandler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net/eathena/inventoryhandler.cpp') diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 74fcb920b..86dd7ac02 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -231,6 +231,12 @@ void InventoryHandler::moveItem2(const int source, const int slot, } } +void InventoryHandler::useCard(const int index) const +{ + MessageOut outMsg(CMSG_PLAYER_USE_CARD); + outMsg.writeInt16(index + INVENTORY_OFFSET, "index"); +} + void InventoryHandler::processPlayerEquipment(Net::MessageIn &msg) { BLOCK_START("InventoryHandler::processPlayerEquipment") -- cgit v1.2.3-60-g2f50