WoW:API GetLootThreshold: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(upgraded deprecated template)
m (Move page script moved page API GetLootThreshold to API GetLootThreshold without leaving a redirect)
 
(One intermediate revision by one other user not shown)
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.

Latest revision as of 04:46, 15 August 2023

WoW API < GetLootThreshold

Returns the currently active loot threshold as a number.

threshold = GetLootThreshold()

Returns[edit]

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.