WoW:API GetLootSlotInfo

From AddOn Studio
Revision as of 21:15, 1 March 2005 by WoWWiki>Popsikle
Jump to navigation Jump to search
GetLootSlotInfo - Documentation by tsigo -


lootIcon, lootName, lootQuantity, rarity = GetLootSlotInfo(index);


Returns the information for a loot slot.


Arguments
slot
slot
Number - the index of the item (1 is the first item)

Returns
lootIcon
lootIcon
String - The path of the graphical icon for the item.
lootName
lootName
String - The name of the item.
lootQuantity
lootQuantity
Number - The quantity of the item in a stack. Note: Quantity for coin is always 0.
rarity
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.

Example
local lootIcon, lootName, lootQuantity, rarity= GetLootSlotInfo(1);
Result
lootIcon is "Interface\Icons\INV_Misc_Coin_06"
lootName is "3 silver 40 copper"
lootQuantity is 0
rarity is 0

Template:WoW API