WoW:API GetRaidRosterInfo: Difference between revisions

m
Add new parameters for raid role and master looter
No edit summary
m (Add new parameters for raid role and master looter)
Line 3: Line 3:
Gets information about a raid member.
Gets information about a raid member.


  name, rank, subgroup, level, class, fileName, zone, online, isDead = GetRaidRosterInfo(raidIndex);
  name, rank, subgroup, level, class, fileName, zone, online, isDead, role, isML = GetRaidRosterInfo(raidIndex);


== Parameters ==
== Parameters ==
Line 41: Line 41:


:;isDead: [[Boolean]] - Returns if raid member is dead or not
:;isDead: [[Boolean]] - Returns if raid member is dead or not
::'''Possible values:'''  1, nil
::Note: this does not show hunters as being dead when they have Feign Death.)
::Note: this does not show hunters as being dead when they have Feign Death.)


:;role: String - The player's role within the raid
::'''Possible values:'''  "maintank", "mainassist"


 
:;isML: [[Boolean]] - Returns if the raid member is master looter
::'''Possible values:'''  1, nil


== Details ==
== Details ==


:Regarding the correspondance of raid indices to players:  Let C be the list of players in a raid ordered by their raid index.  It appears that after any series of changes is made to the raid, at the end all players from C still in the raid will retain their original ordering (even if they left and rejoined the raid), with new members existing at any index 1<i<=40.
:Regarding the correspondance of raid indices to players:  Let C be the list of players in a raid ordered by their raid index.  It appears that after any series of changes is made to the raid, at the end all players from C still in the raid will retain their original ordering (even if they left and rejoined the raid), with new members existing at any index 1<i<=40.
Anonymous user