Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetLootSlotLink

Last wiki revision 2022-07-21

Returns the item link for a loot slot. itemLink = GetLootSlotLink(index)

  • index: - The index of the item in the list to retrieve info from (1 to GetNumLootItems)
  • itemLink: - The itemLink for the specified item, or nil if is invalid.

The example below will display the item links into your chat window.

local linkstext = "" for index = 1, GetNumLootItems do if LootSlotHasItem(index) then local itemLink = GetLootSlotLink(index) linkstext = linkstext .. itemLink end end print(linkstext)

Source

https://warcraft.wiki.gg/wiki/API_GetLootSlotLink · 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.