DPB1Class ยท World, character and items

Item

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 ItemView DPB2 version โ†’

Examples

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 backpack item details

if (!LokiPoe.IsInGame || !LokiPoe.InGameState.InventoryUi.IsOpened)
    return;

var inventory = LokiPoe.InGameState.InventoryUi.InventoryControl_Main.Inventory;
foreach (var item in inventory.Items)
{
    var name = item.FullName;
    var rarity = item.Rarity;
    var count = item.StackCount;
}

This only reads item data; it does not pick up, move or consume items.

Members and overloads

1 results
Show all members

SkillSocketIndex

PropertyLink โ†—
public int Item.SkillSocketIndex { get; }

Return the Socket Index where this skill gem is socketed in the Item sockets. PLS NOTE! This only work for Skill Gems, it do not work for Support gems. Go get the Index of a support gem, or in general to get a more satisfaing result, use public int GetSocketIndexOfGem(Item gem).

DPB1 0.3.29.47 ยท Reference reviewed 2026-10-02. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.