public int Item.StackCount { get; }
Reads stack count on Item as int. The exact type and accessors are shown below.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Read an item's identity, rarity, stack and other properties. Use its owning inventory or interface API for item actions.
Namespace: DreamPoeBot.Loki.Game.Objects
public class Itempublic int Item.StackCount { get; }
Reads stack count on Item as int. The exact type and accessors are shown below.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Only examples explicitly associated with this declaration are shown.
using System;
using System.Linq;
using DreamPoeBot.Loki.Game;
using DreamPoeBot.Loki.Game.Objects;
using DreamPoeBot.Loki.Bot;
using DreamPoeBot.Loki.Bot.Pathfinding;
using DreamPoeBot.Loki.Common;if (!LokiPoe.IsInGame || !LokiPoe.InGameState.InventoryUi.IsOpened)
return;
var inventory = LokiPoe.InGameState.InventoryUi.InventoryControl_Main?.Inventory;
if (inventory == null)
return;
foreach (var item in inventory.Items)
{
var name = item.FullName;
var rarity = item.Rarity;
var count = item.StackCount;
}Read on the bot thread. This only reads item data; it does not pick up, move or consume items. A visible panel can still be loading its contents.
These guides refer to Item as a whole and may use other members. They are not dedicated examples of the selected member.
See how these APIs fit together. Labs include complete source; the FollowBot walkthrough teaches you to build your own bot from selected fragments and checkpoints.
DPB1 0.3.29.56 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.