Fandom

WoWWiki

API GetLootSlotLink

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetLootSlotLink

Retrieves the itemLink of one item in the current loot window.

"itemLink" = GetLootSlotLink(index)

Argument Edit

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

Returns Edit

"itemLink" 
itemLink - The itemLink for the specified item or
nil, if index is invalid or if the slot contains money.

Example Edit

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

  local linkstext
  for index = 1, GetNumLootItems() do
     if (LootSlotIsItem(index)) then
       local iteminfo = GetLootSlotLink(index);
       if linkstext == nil then
          linkstext = iteminfo
       else
          linkstext = linkstext..iteminfo
       end
     end
   end
   DEFAULT_CHAT_FRAME:AddMessage(linkstext)

Also on Fandom

Random Wiki