diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-16 11:49:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-16 11:49:43 +0300 |
commit | 3ff2ba0b4a6bf7e0f693d0d72ca5360767d3cc2c (patch) | |
tree | e91b6f167d8e062b4cc23efb3ca4ce194a088877 /src/net/eathena/inventoryhandler.cpp | |
parent | f1d3e3325d28a43f838052385ad798527dff9c2d (diff) | |
download | manaverse-3ff2ba0b4a6bf7e0f693d0d72ca5360767d3cc2c.tar.gz manaverse-3ff2ba0b4a6bf7e0f693d0d72ca5360767d3cc2c.tar.bz2 manaverse-3ff2ba0b4a6bf7e0f693d0d72ca5360767d3cc2c.tar.xz manaverse-3ff2ba0b4a6bf7e0f693d0d72ca5360767d3cc2c.zip |
eathena: add packet CMSG_PLAYER_FAVORITE_ITEM 0x0907.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 7666825de..610b27194 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -258,6 +258,16 @@ void InventoryHandler::insertCard(const int cardIndex, "item index"); } +void InventoryHandler::favoriteItem(const Item *const item, + const bool favorite) const +{ + MessageOut outMsg(CMSG_PLAYER_FAVORITE_ITEM); + outMsg.writeInt16(static_cast<int16_t>(item->getInvIndex() + + INVENTORY_OFFSET), + "item index"); + outMsg.writeInt8(favorite, "favorite flag"); +} + void InventoryHandler::processPlayerEquipment(Net::MessageIn &msg) { BLOCK_START("InventoryHandler::processPlayerEquipment") |