From 16a57526fbe271bd067cfa4ec44f2da9494bfa1f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 Mar 2015 18:23:50 +0300 Subject: eathena: add partial support for packet SMSG_ITEM_DAMAGED 0x02bb. --- src/net/eathena/inventoryhandler.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/net/eathena/inventoryhandler.cpp') diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 4cbe83027..63799f8db 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -113,6 +113,7 @@ InventoryHandler::InventoryHandler() : SMSG_PLAYER_STORAGE_PASSWORD, SMSG_PLAYER_STORAGE_PASSWORD_RESULT, SMSG_PLAYER_COOKING_LIST, + SMSG_ITEM_DAMAGED, 0 }; handledMessages = _messages; @@ -273,6 +274,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) processPlayerCookingList(msg); break; + case SMSG_ITEM_DAMAGED: + processItemDamaged(msg); + break; + default: break; } @@ -1082,4 +1087,12 @@ void InventoryHandler::processPlayerCookingList(Net::MessageIn &msg) msg.readInt16("item id"); } +void InventoryHandler::processItemDamaged(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + msg.readInt16("position"); + msg.readInt32("account id"); +} + } // namespace EAthena -- cgit v1.2.3-60-g2f50