WoW:API SetLootThreshold: Difference between revisions
Jump to navigation
Jump to search
(upgraded deprecated template) |
m (Move page script moved page API SetLootThreshold to API SetLootThreshold without leaving a redirect) |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} __NOTOC__ | ||
Sets the loot quality threshold as a number for the party | |||
; | Sets the loot quality threshold as a number for the party or raid. | ||
: | SetLootThreshold(threshold) | ||
0 - Poor | |||
1 - Common | == Arguments == | ||
2 - Uncommon | :; threshold : Number - The loot quality to start using the current loot method with. | ||
3 - Rare | :;:* 0 - Poor | ||
4 - Epic | :;:* 1 - Common | ||
5 - Legendary | :;:* 2 - Uncommon | ||
6 - Artifact | :;:* 3 - Rare | ||
:;:* 4 - Epic | |||
:;:* 5 - Legendary | |||
:;:* 6 - Artifact | |||
== Example == | |||
/script SetLootThreshold(2) | /script SetLootThreshold(2) | ||
If you | |||
<big>'''Result'''</big> | |||
If you are the party or raid leader, the script will set the loot threshold to Uncommon(green) items or better and report its new status. | |||
== Notes == | |||
* Setting loot threshold below Uncommon(green) will result in an error. | |||
* Calling this while the loot method is changing will revert to the original loot method. To account for this I simply set the loot threshold 1 second after calling [[API_SetLootMethod]] |
Latest revision as of 04:47, 15 August 2023
Sets the loot quality threshold as a number for the party or raid.
SetLootThreshold(threshold)
Arguments[edit]
- threshold
- Number - The loot quality to start using the current loot method with.
- 0 - Poor
- 1 - Common
- 2 - Uncommon
- 3 - Rare
- 4 - Epic
- 5 - Legendary
- 6 - Artifact
Example[edit]
/script SetLootThreshold(2)
Result
If you are the party or raid leader, the script will set the loot threshold to Uncommon(green) items or better and report its new status.
Notes[edit]
- Setting loot threshold below Uncommon(green) will result in an error.
- Calling this while the loot method is changing will revert to the original loot method. To account for this I simply set the loot threshold 1 second after calling API_SetLootMethod