WoW:API GetLootMethod: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
Returns the currently active loot method.<br>
<center>'''GetLootMethod''' - ''Documentation by [[User:Kaso|Kaso]]''</center>
'''arg1''' -- the loot method.("freeforall", "roundrobin", "master", "group", "needbeforegreed")<br>
'''arg2''' -- (only used for "master") returns the looter index, or nil. If the master looter is in your party (not always true in a raid) then it will return 0 for yourself, or >0 for another party member. If the master looter is NOT in your party it will return nil.


Retrieves the Loot Method and (if applicable) Master Looter idenity.
lootmethod, masterlooterID = GetLootMethod()
=== Returns ===
:lootmethod, masterlooterID
:;lootmethod : String - One of 'freeforall', 'roundrobin', 'master', 'group', 'needbeforegreed'.
:;masterlooterID : Number - (When In 'master', nil otherwise) returns 0 if player is masterLooter, 1-4 if party memeber is masterLooter (corresponding to party1-4) and nil if masterLooter is in another Party of the raid.
----
__NOTOC__
{{Template:WoW API}}
{{Template:WoW API}}
Anonymous user