DPB2Class · 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 DPB1 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

168 results

Item

MethodLink ↗
public Item.Item()

Creates a new Item instance.

Item

MethodLink ↗
public Item.Item(Item item, bool hasInventoryLocation, Vector2i locationBottomRight, Vector2i locationTopLeft)

Creates a new Item instance using the supplied arguments.

itemItem
Specifies item.
hasInventoryLocationbool
Specifies has inventory location.
locationBottomRightVector2i
Specifies location bottom right.
locationTopLeftVector2i
Specifies location top left.

AnyMetadataFlags

MethodLink ↗
public bool Item.AnyMetadataFlags(params MetadataFlags[] flags)

Executes the any metadata flags operation with the supplied arguments.

flagsMetadataFlags[]
Specifies flags.

Returns: A Boolean result. The member description explains the condition being checked.

CalcGemStatReq

MethodLink ↗
public static int Item.CalcGemStatReq(string name, int level, int multi)

Executes the calc gem stat req operation with the supplied arguments.

namestring
Specifies name.
levelint
Specifies level.
multiint
Specifies multi.

Returns: The int result.

Dump

MethodLink ↗
public string Item.Dump()

Executes the dump operation.

Returns: The string result.

GetGemInSocket

MethodLink ↗
public Item Item.GetGemInSocket(int index)

Returns gem in socket using the supplied arguments.

indexint
Specifies index.

Returns: The Item result.

GetSocketIndexForSkilGem

MethodLink ↗
public int Item.GetSocketIndexForSkilGem(Item sg)

Returns socket index for skil gem using the supplied arguments.

sgItem
Specifies sg.

Returns: The int result.

GetSocketIndexOfGem

MethodLink ↗
public int Item.GetSocketIndexOfGem(Item gem)

Returns socket index of gem using the supplied arguments.

gemItem
Specifies gem.

Returns: The int result.

HasMetadataFlags

MethodLink ↗
public bool Item.HasMetadataFlags(params MetadataFlags[] flags)

Checks for metadata flags using the supplied arguments.

flagsMetadataFlags[]
Specifies flags.

Returns: A Boolean result. The member description explains the condition being checked.

RequiredDexForLevel

MethodLink ↗
public int Item.RequiredDexForLevel(int level)

Executes the required dex for level operation with the supplied arguments.

levelint
Specifies level.

Returns: The int result.

RequiredIntForLevel

MethodLink ↗
public int Item.RequiredIntForLevel(int level)

Executes the required int for level operation with the supplied arguments.

levelint
Specifies level.

Returns: The int result.

RequiredLevelForLevel

MethodLink ↗
public int Item.RequiredLevelForLevel(int level)

Executes the required level for level operation with the supplied arguments.

levelint
Specifies level.

Returns: The int result.

RequiredStrForLevel

MethodLink ↗
public int Item.RequiredStrForLevel(int level)

Executes the required str for level operation with the supplied arguments.

levelint
Specifies level.

Returns: The int result.

ToString

MethodLink ↗
public override string Item.ToString()

Returns a text representation of this value.

Returns: The string result.

AbsorbedCorruption

PropertyLink ↗
public int Item.AbsorbedCorruption { get; }

Gets absorbed corruption for Item.

Affixes

PropertyLink ↗
public IEnumerable<ModAffix> Item.Affixes { get; }

Gets the affixes collection. Its element types are linked below.

AlternateQualityType

PropertyLink ↗
public string Item.AlternateQualityType { get; }

Gets alternate quality type for Item.

AlternateQualityTypeValue

PropertyLink ↗
public int Item.AlternateQualityTypeValue { get; }

Gets alternate quality type value for Item.

AppliesToCurrentAreaByLevel

PropertyLink ↗
public bool Item.AppliesToCurrentAreaByLevel { get; }

Gets applies to current area by level for Item.

ArmorValue

PropertyLink ↗
public int Item.ArmorValue { get; }

Gets armor value for Item.

AttacksPerSecond

PropertyLink ↗
public double Item.AttacksPerSecond { get; }

Gets attacks per second for Item.

BaseArmor

PropertyLink ↗
public int Item.BaseArmor { get; }

Gets base armor for Item.

BaseAttacksPerSecond

PropertyLink ↗
public double Item.BaseAttacksPerSecond { get; }

Gets base attacks per second for Item.

BaseCritialStrikeChance

PropertyLink ↗
public double Item.BaseCritialStrikeChance { get; }

Gets base critial strike chance for Item.

BaseEnergyShield

PropertyLink ↗
public int Item.BaseEnergyShield { get; }

Gets base energy shield for Item.

BaseEvasion

PropertyLink ↗
public int Item.BaseEvasion { get; }

Gets base evasion for Item.

BaseMaxPhysicalDamage

PropertyLink ↗
public int Item.BaseMaxPhysicalDamage { get; }

Gets base max physical damage for Item.

BaseMinPhysicalDamage

PropertyLink ↗
public int Item.BaseMinPhysicalDamage { get; }

Gets base min physical damage for Item.

BaseRequiredLevel

PropertyLink ↗
public int Item.BaseRequiredLevel { get; }

Gets base required level for Item.

DPB2 0.4.5.88 · 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.