From dca1d63c7734846844fd3d322d1b6927cfa7d913 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 Mar 2015 17:49:22 +0300 Subject: eathena: add partial support for packet SMSG_PLAYER_COOKING_LIST 0x025a. --- src/net/eathena/inventoryhandler.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/net/eathena/inventoryhandler.cpp') diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index c60af4755..4cbe83027 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -112,6 +112,7 @@ InventoryHandler::InventoryHandler() : SMSG_PLAYER_REFINE_LIST, SMSG_PLAYER_STORAGE_PASSWORD, SMSG_PLAYER_STORAGE_PASSWORD_RESULT, + SMSG_PLAYER_COOKING_LIST, 0 }; handledMessages = _messages; @@ -268,6 +269,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) processPlayerStoragePasswordResult(msg); break; + case SMSG_PLAYER_COOKING_LIST: + processPlayerCookingList(msg); + break; + default: break; } @@ -1067,4 +1072,14 @@ void InventoryHandler::processPlayerStoragePasswordResult(Net::MessageIn &msg) msg.readInt16("error count"); } +void InventoryHandler::processPlayerCookingList(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + const int count = (msg.readInt16("len") - 6) / 2; + msg.readInt16("list type"); + for (int f = 0; f < count; f ++) + msg.readInt16("item id"); +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2