diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-12 13:43:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-12 13:43:49 +0300 |
commit | 789aac29caf90e3eabe2f912fb0e0653ee290797 (patch) | |
tree | 0a607e26775aba9f39213e8d4fb734536ef8be00 /src/net/eathena/inventoryhandler.cpp | |
parent | 16958b5635ab990881039ea71bca15e90088b12f (diff) | |
download | mv-789aac29caf90e3eabe2f912fb0e0653ee290797.tar.gz mv-789aac29caf90e3eabe2f912fb0e0653ee290797.tar.bz2 mv-789aac29caf90e3eabe2f912fb0e0653ee290797.tar.xz mv-789aac29caf90e3eabe2f912fb0e0653ee290797.zip |
eathena: add partial support for packet SMSG_PLAYER_REFINE_LIST 0x0221.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 5e1a7fd95..c42e31903 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -109,6 +109,7 @@ InventoryHandler::InventoryHandler() : SMSG_PLAYER_REFINE, SMSG_PLAYER_REPAIR_LIST, SMSG_PLAYER_REPAIR_EFFECT, + SMSG_PLAYER_REFINE_LIST, 0 }; handledMessages = _messages; @@ -253,6 +254,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) processPlayerRepairEffect(msg); break; + case SMSG_PLAYER_REFINE_LIST: + processPlayerRefineList(msg); + break; + default: break; } @@ -1020,4 +1025,21 @@ void InventoryHandler::processPlayerRepairEffect(Net::MessageIn &msg) msg.readUInt8("flag"); } +void InventoryHandler::processPlayerRefineList(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + const int count = (msg.readInt16("len") - 4) / 13; + + for (int f = 0; f < count; f ++) + { + msg.readInt16("item index"); + msg.readInt16("item id"); + msg.readUInt8("refine"); + for (int d = 0; d < 4; d ++) + msg.readInt16("card"); + } + menu = MenuType::WeaponeRefine; +} + } // namespace EAthena |