diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-12 17:49:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-12 17:49:22 +0300 |
commit | dca1d63c7734846844fd3d322d1b6927cfa7d913 (patch) | |
tree | d31112ae6e308e84fcd81a9321119274988647d9 /src/net/eathena/inventoryhandler.cpp | |
parent | 16c4b0ef4fb76431563f09b147662b81788fa6c6 (diff) | |
download | plus-dca1d63c7734846844fd3d322d1b6927cfa7d913.tar.gz plus-dca1d63c7734846844fd3d322d1b6927cfa7d913.tar.bz2 plus-dca1d63c7734846844fd3d322d1b6927cfa7d913.tar.xz plus-dca1d63c7734846844fd3d322d1b6927cfa7d913.zip |
eathena: add partial support for packet SMSG_PLAYER_COOKING_LIST 0x025a.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
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 |