SetLootMethod
Jump to navigation
Jump to search
Set the current loot method.
SetLootMethod(method [,PlayerName, threshold])
Arguments
- method
- string - Any one of the following self-explanatory and case insensitive arguments:
Value |
---|
"group" |
"freeforall" |
"master" |
"needbeforegreed" |
"roundrobin" |
- masterLootPlayerName
- string -- Any valid player name that is in group or raid, only used if first argument is "master"
- threshold
- number - The loot quality to start using the current loot method with.
Value | Description |
---|---|
1 | Common |
2 | Uncommon |
3 | Rare |
4 | Epic |
5 | Legendary |
6 | Artifact |
Additionally, if method is "master", the second argument must be a player name, followed by the optional third argument. The third argument is set to 1 if you're promoting a new master looter, as in the case where you right click on a raid member and select "Promote to Master Looter".
To only change the loot threshold, use SetLootThreshold
Example
/script SetLootMethod("master", "name", 1);
Result
If you are the party or raid leader, the script will set the loot method to "Master Looter", promote the named char to loot master and the loot threshold to Common Quality.
This specific script was often used in AQ40 in Classic to control who got Scarab Keys