From 3ff2ba0b4a6bf7e0f693d0d72ca5360767d3cc2c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Sep 2014 11:49:43 +0300 Subject: eathena: add packet CMSG_PLAYER_FAVORITE_ITEM 0x0907. --- src/net/eathena/inventoryhandler.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/net/eathena/inventoryhandler.cpp') 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(item->getInvIndex() + + INVENTORY_OFFSET), + "item index"); + outMsg.writeInt8(favorite, "favorite flag"); +} + void InventoryHandler::processPlayerEquipment(Net::MessageIn &msg) { BLOCK_START("InventoryHandler::processPlayerEquipment") -- cgit v1.2.3-70-g09d2