Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:API GetLootSlotInfo
(section)
Jump to navigation
Jump to search
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}} <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> lootIcon, lootName, lootQuantity, rarity, locked, isQuestItem, questId, isActive = GetLootSlotInfo(''index''); <!-- Describe the purpose of the function, though exhausting detail can be saved for a later section --> Returns the information for a loot slot. ---- ;''Arguments'' <!-- List each argument, together with its type --> :; slot: Number - the index of the item (1 is the first item) ---- ;''Returns'' <!-- List each return value, together with its type --> :; lootIcon: String - The path of the graphical icon for the item. :; lootName: String - The name of the item. :; lootQuantity: Number - The quantity of the item in a stack. ''Note: Quantity for coin is always 0.'' :; rarity: Number - 0 for grey, 1 for white items and quest items, 2 for green, 3 for blue and have not seen output with epics yet presumably it would be 4 as it has incremented so far. :; locked: Whether you are eligible to loot this item or not. Locked items are by default shown tinted red. :; isQuestItem: Whether or not this item is used for a quest. :; questId: Number - the quest ID that this item is related to if isQuestId is true. :; isActive: Unknown. ---- ;''Example'' <!-- If it helps, include an example here, though it's not required if the usage is self-explanatory --> local lootIcon, lootName, lootQuantity, rarity, locked = GetLootSlotInfo(1); ;''Result'' : lootIcon is "Interface\Icons\INV_Misc_Coin_06" : lootName is "3 silver 40 copper" : lootQuantity is 0 : rarity is 0 : locked is 0 ---- ;''Notes'' When returning coin data, the 'quanity' is always 0 and the 'item' contains the amount and text. It also includes a line break after each type of coin. The linebreak can be removed by string substitution. DEFAULT_CHAT_FRAME:AddMessage("coins: "..string.gsub(item,"\n"," "),1,1,1);
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)