summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-18 13:47:35 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-18 13:47:35 +0300
commitf9e82c92f796efe40ebf9bf7477690784f77d3b5 (patch)
tree98b071da2a70a3db249acab01465c083abff134e /src/net/eathena/inventoryhandler.cpp
parente1aaae7552565cc2289312e180489459178b0e36 (diff)
downloadmv-f9e82c92f796efe40ebf9bf7477690784f77d3b5.tar.gz
mv-f9e82c92f796efe40ebf9bf7477690784f77d3b5.tar.bz2
mv-f9e82c92f796efe40ebf9bf7477690784f77d3b5.tar.xz
mv-f9e82c92f796efe40ebf9bf7477690784f77d3b5.zip
eathena: add partial support for packet SMSG_PLAYER_FAVORITE_ITEM 0x0908.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index 820f9f71a..b0dbab786 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -114,6 +114,7 @@ InventoryHandler::InventoryHandler() :
SMSG_PLAYER_STORAGE_PASSWORD_RESULT,
SMSG_PLAYER_COOKING_LIST,
SMSG_ITEM_DAMAGED,
+ SMSG_PLAYER_FAVORITE_ITEM,
0
};
handledMessages = _messages;
@@ -278,6 +279,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg)
processItemDamaged(msg);
break;
+ case SMSG_PLAYER_FAVORITE_ITEM:
+ processFavoriteItem(msg);
+ break;
+
default:
break;
}
@@ -1095,4 +1100,12 @@ void InventoryHandler::processItemDamaged(Net::MessageIn &msg)
msg.readInt32("account id");
}
+void InventoryHandler::processFavoriteItem(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+
+ msg.readInt16("item index");
+ msg.readUInt8("favorite (0 - favorite)");
+}
+
} // namespace EAthena