DPB1Class · Interface and panels

LokiPoe.InGameState.InventoryUi

This class let you intercat and retrieve informations about your inventory and all equipped items.

Namespace: DreamPoeBot.Loki.Game

public static class LokiPoe.InGameState.InventoryUi
Reference: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

1 declared here
Show all members

InventoryControl_Main

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_Main { get; }

Return a InventoryControlWrapper describing your main inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

Examples for this member

Only examples explicitly associated with this declaration are shown.

Imports used by these examples
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;

Read the open backpack

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 itemName = item.Name;
    var localId = item.LocalId;
}

Run on the bot thread. Read items from the grid that owns them; reacquire the inventory after an action or a wait.

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.