Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetLootSlotLink
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} Retrieves the [[itemLink]] of one item in the current loot window. "itemLink" = GetLootSlotLink(index) == Argument == :(index) :;index : Number - The index of the item in the list to retrieve info from (1 to GetNumLootItems()) == Returns == ;"itemLink" : [[itemLink]] - The itemLink for the specified item or :: nil, if index is invalid or if the slot contains money. == Example == 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)
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)