public GetItemCostResult InventoryControlWrapper.GetItemGoldCost(int localId, out int goldCost, out bool canAfford)
Used to retrieve gold price, and a boolean describing if a item can be bought. 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
goldCostint- out, gold cost of the item.
canAffordbool- out, true if you have the golds to buy this item.
Returns: GetItemCostResult.None or the relative error.