DPB2Class ยท Game state and actions

InventoryControlWrapper

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

Namespace: DreamPoeBot.Loki.Game

public class InventoryControlWrapperView DPB1 version โ†’

Members and overloads

1 results
Show all members

GetItemCost

MethodLink โ†—
public GetItemCostResult InventoryControlWrapper.GetItemCost(int localId, out List<KeyValuePair<string, int>> info, out bool canAfford)

Used to retrieve price for item in trade inventory, for example the merchant Ui or buy/sell Ui. This also include the gold price, tagged as Gold. PLEASE NOTE! the price is built over the tooltip, and the Tooltip is not built till you over over an item at least once, so to make this function work, you need to use the function 'ViewItemsInInventory' that does exactly that, move the mouse over an item and allow the game to build the tooltip.

localIdint
Item LocalId
infoList<KeyValuePair<string, int>>
out, list of price of the item, the gold price is tagged "Gold".
canAffordbool
Receives can afford.

Returns: GetItemCostResult.None or the relative error.

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.