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.
GetItemCostResultNamed values for get item cost result. Select a value when an API accepts or returns GetItemCostResult.
Parameters
localId- Parameter type:
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Item LocalId
info- Parameter type:
List<KeyValuePair<string, int>>No current DPB page is linked for this built-in, external, generic or compatibility-only type.out, list of price of the item, the gold price is tagged "Gold".
canAfford- Parameter type:
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Receives can afford.
Returns: GetItemCostResult.None or the relative error.