WoW:API GetRaidRosterInfo: Difference between revisions

Snip outdated discussion about raidids remaining the same. Put in warning about making no assumptions about it instead.
(Snip outdated discussion about raidids remaining the same. Put in warning about making no assumptions about it instead.)
Line 28: Line 28:


== Details ==
== Details ==
(As of 3.1, this no longer accurate. Raid indices now reorder themselves every time the raid layout changes.)


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.
Do not make any assumptions about raidid (raid1, raid2, etc) to name mappings remaining the same or not. When the raid changes, people MAY retain it or not, depending on raid size and WoW patch. Yes, this behavior has changed with patches in the past and may do it again.
 
It also appears that your character's index will always be equal to GetNumRaidMembers() for the purposes of GetRaidRosterInfo.  In other words, your character's index will always be n in a raid of size n.  All other members will have indices less than n.
Anonymous user