Fills the tooltip with information about an equipped item
Signature:
hasItem, hasCooldown, repairCost = GameTooltip:SetInventoryItem("unit", slot [, nameOnly])
Arguments:
unit- A unit to query; only valid for 'player' or the unit currently being inspected (string, unitID)slot- An inventory slot number, as can be obtained fromGetInventorySlotInfo(number, inventoryID)nameOnly- True to omit much of the item's information (stat bonuses, sockets, and binding) from the tooltip; false to show all of the item's information (boolean)
Returns:
hasItem-1if the unit has an item in the given slot; otherwisenil(number, 1nil)hasCooldown-1if the item is currently on cooldown; otherwisenil(number, 1nil)repairCost- Cost to repair the item (in copper, ignoring faction discounts) (number)