Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Returns the item link for a loot slot.

itemLink = GetLootSlotLink(index)

Arguments[]

index
number - The index of the item in the list to retrieve info from (1 to GetNumLootItems())

Returns[]

itemLink
string - The itemLink for the specified item, or nil if index is invalid.

Example[]

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)
Advertisement