Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
No edit summary
(Added Example)
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
  +
{{wowapi}}
{{API/Uncategorized}}
 
  +
 
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".
  +
  +
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 change the loot threshold, use [[API_SetLootThreshold|SetLootThreshold]]
   
  +
=Example=
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.
 
  +
/script SetLootMethod("master", "name");
   
  +
<big>'''Result'''</big>
Threshold:
 
0 poor
 
1 common
 
2 uncommon
 
3 rare
 
4 epic
 
5 legendary
 
6 artifact
 
   
  +
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.
Additionally, if method is "master", the second argument must be "masterPlayer" (the name of the master looter) followed by the optional third argument of "threshold"; e.g. SetLootMethod("Master","masterPlayer",threshold)
 

Revision as of 02:16, 13 February 2009

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

Arguments

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

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 change the loot threshold, use SetLootThreshold

Example

/script SetLootMethod("master", "name");

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 report its new status.