summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-12 18:23:50 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-12 18:23:50 +0300
commit16a57526fbe271bd067cfa4ec44f2da9494bfa1f (patch)
tree167815cde7bd5961ed2b0e3f0c821227387e132a /src/net/eathena/inventoryhandler.cpp
parent38cef34addb9685d6f30e32b657917df98095d02 (diff)
downloadmanaplus-16a57526fbe271bd067cfa4ec44f2da9494bfa1f.tar.gz
manaplus-16a57526fbe271bd067cfa4ec44f2da9494bfa1f.tar.bz2
manaplus-16a57526fbe271bd067cfa4ec44f2da9494bfa1f.tar.xz
manaplus-16a57526fbe271bd067cfa4ec44f2da9494bfa1f.zip
eathena: add partial support for packet SMSG_ITEM_DAMAGED 0x02bb.
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 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