WoW:API GetLootThreshold: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(upgraded deprecated template)
(Made the page content consistent with the API Function template and transferred information on acquiring localized names to API TYPE Quality.)
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
Returns the currently active loot threshold as a number.<br>
Returns the currently active loot threshold as a number.
<br>
0 - Poor<br>
1 - Common<br>
2 - Uncommon<br>
3 - Rare<br>
4 - Epic<br>
5 - Legendary<br>
6 - Artifact<br>
<br>
You can get the localized text for the loot quality from ITEM_QUALITYx_DESC.


  /script message(getglobal("ITEM_QUALITY"..GetLootThreshold().."_DESC"))
  threshold = GetLootThreshold()


The example above will show a message box of the current loot threshold.<br>
==Returns==
;threshold : Integer - The minimum [[API TYPE Quality|quality]] of item which will be rolled for or assigned by the master looter. The value is 0 to 7, which represents Poor to Heirloom.

Revision as of 19:09, 6 October 2010

WoW API < GetLootThreshold

Returns the currently active loot threshold as a number.

threshold = GetLootThreshold()

Returns

threshold
Integer - The minimum quality of item which will be rolled for or assigned by the master looter. The value is 0 to 7, which represents Poor to Heirloom.