WoW:API GetLootSlotInfo: Difference between revisions

m
no edit summary
No edit summary
 
mNo edit summary
Line 3: Line 3:
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->


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


<!-- Describe the purpose of the function, though exhausting detail can be saved for a later section -->
<!-- Describe the purpose of the function, though exhausting detail can be saved for a later section -->
Line 26: Line 26:
: lootQuantity
: lootQuantity
:; lootQuantity: Number - The quantity of the item in a stack. ''Note: Quantity for coin is always 0.''
:; lootQuantity: Number - The quantity of the item in a stack. ''Note: Quantity for coin is always 0.''
: unknown
: rarity
:; unknown: Number - It is currently unknown what this value is.
:; 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.


----
----
Line 33: Line 33:


<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory -->
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory -->
  local lootIcon, lootName, lootQuantity, unknown = GetLootSlotInfo(1);
  local lootIcon, lootName, lootQuantity, rarity= GetLootSlotInfo(1);


;''Result''
;''Result''
Line 40: Line 40:
: lootName is "3 silver 40 copper"
: lootName is "3 silver 40 copper"
: lootQuantity is 0
: lootQuantity is 0
: unknown is 0
: rarity is 0


----
----
{{Template:WoW API}}
{{Template:WoW API}}
Anonymous user