/// <summary> /// Handles WorldItemAction (0x9c) packets. Keeps track of items in player's main inventory. /// </summary> /// <param name="packet">The packet.</param> private void OnWorldItemAction(GameServerPacket packet) { WorldItemEventIn fromServer; try { fromServer = new WorldItemEventIn(packet); } catch (Exception) { LogError("Failed to parse item: " + Util.GetPacketDump(packet.Data, true)); } //StringBuilder sb = new StringBuilder(); // //sb.AppendLine("Item: " + fromServer.item); //foreach (var item in fromServer.item.Properties) //{ // sb.AppendLine(" " + item); //} //sb.AppendLine(" " ); //LogDebug(sb); //if (fromServer.item.Location == Item.ItemLocation.Stored && fromServer.item.StorageId == Item.StorageType.Inventory) //{ // items.Add(fromServer.item); //} }