diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-09 23:37:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-10 00:42:33 +0300 |
commit | cbefa4969b51ec75c0ca6efd89e86ef71496f75f (patch) | |
tree | 2fb3e12eff7cba77334816fbcf1c6d51c4bd4926 /src/net/eathena/inventoryhandler.cpp | |
parent | 1192016bf685cdba9bee4b6578e578661f689803 (diff) | |
download | manaverse-cbefa4969b51ec75c0ca6efd89e86ef71496f75f.tar.gz manaverse-cbefa4969b51ec75c0ca6efd89e86ef71496f75f.tar.bz2 manaverse-cbefa4969b51ec75c0ca6efd89e86ef71496f75f.tar.xz manaverse-cbefa4969b51ec75c0ca6efd89e86ef71496f75f.zip |
eathena: add packet CMSG_PLAYER_USE_CARD 0x017a.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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") |