Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GameTooltip SetBagItem

Last wiki revision 2008-07-14

hasCooldown, repairCost = GameTooltip:SetBagItem(bag, slot);

Sets the GameTooltip to contain text information about the specified item, as well as returning whether the item is "cooling down" and the cost to repair the item (which may be 0 (or nil?) if non-applicable).

  • Arguments
  • (bag, slot)
  • bag: Numeric - the ID of the bag
  • slot: Numeric - the ID of the slot
  • Returns
  • hasCooldown, repairCost
  • hasCooldown : Boolean - if the item currently has a cooldown
  • repairCost : Integer - the cost to repair the item, may be 0 or nil if the item cannot be repaired.
  • Details
  • This simply sets the text of the game tooltip to contain various information about the item under the given slot.

Source

https://warcraft.wiki.gg/wiki/API_GameTooltip_SetBagItem · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.