WoW:API SetLootMethod: Difference between revisions

m
Move page script moved page API SetLootMethod to WoW:API SetLootMethod without leaving a redirect
No edit summary
m (Move page script moved page API SetLootMethod to WoW:API SetLootMethod without leaving a redirect)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{wowapi}}


  SetLootMethod("method"{,"masterPlayer" or ,threshold})  
  SetLootMethod("method"{,"masterPlayer" or ,threshold})  


=Arguments=
=Arguments=
"method" may be any one of the following self-explanatory and case insensitive arguments: "group", "freeforall", "master", "neeedbeforegreed", "roundrobin".
"method" may be any one of the following self-explanatory and case insensitive arguments: "group", "freeforall", "master", "needbeforegreed", "roundrobin".


An optional final argument to any loot method is "threshold" which is an int value ranging from 0 to 6.  The effect the threshold has varies based on loot method.
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".


Threshold:
To change the loot threshold, use [[API_SetLootThreshold|SetLootThreshold]]
0 poor
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 of "threshold"; e.g. SetLootMethod("Master","Hank",2) would set Hank as the master looter with an uncommon threshold.
=Example=
/script SetLootMethod("master", "name");


<big>'''Result'''</big>


----
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 report its new status.
{{WoW API}}
Anonymous user