WoW:API GetRaidRosterInfo: Difference between revisions
Jump to navigation
Jump to search
GetRaidRosterInfo Documentation by Totem
(Added a warning to the "RaidIndex" argument concerning running out of bounds.) |
No edit summary |
||
Line 51: | Line 51: | ||
;''isDead'' | ;''isDead'' | ||
:Returns if raid member is dead or not | :Returns if raid member is dead or not | ||
:(note: this does not show hunters as being dead when they have Feign Death.) | |||
---- | ---- |
Revision as of 23:58, 4 July 2006
Gets information about a raid member.
GetRaidRosterInfo();
- Arguments
- (Integer RaidIndex)
- RaidIndex
- Index of raid member between 1 and 40. (Game seems to crash if you use an index larger than the amount of players in the raid. Use GetNumRaidMembers to make sure you don't run out of bounds.)
- Returns
- name, rank, subgroup, level, class, fileName, zone, online, isDead
- name
- Provides the name of the character as a string.
- Possible values: Any valid character name
- rank
- Provides an integer of the character's current rank in the raid. 0 is a standard member of the raid. 1 is the Assistant - labeled (A) in the standard raid window. 2 is the Leader of the raid - labeled (L) in the standard raid window.
- Possible values: 0, 1, 2
- subgroup
- Provides the raid group this character is currently a member of. Raid subgroups are numbered on the standard raid window.
- Possible values: 1, 2, 3, 4, 5, 6, 7, 8
- level
- Provides the level of the character. If this character is offline, the level will show as 0 (not nil).
- Possible values: 0, any valid character level
- class
- Provides a string of the class of character. Capitalization seems to be standard (ex: Priest). This function works as normal for offline characters.
- Possible values: Any valid character class
- fileName
- This seems to also provide the character class, but fully capitalized in English (ex: PRIEST). This function works as normal for offline characters. And useful to determine class regardless of localization.
- Possible values: Any valid character class, but capitalized and always in English.
- zone
- Provides the name of the zone this character is currently in. This is the same value you see if you mouseover their portrait (if in group). If the character is offline, this value will be the string 'Offline'.
- BUG (as of 2/26/2005): It seems that the person calling this function will have their Zone value returned as nil if they have not changed locations since last reloading their UI. Once you change locations (get the name to popup on screen), it seems to return as normal. This only seems to affect when you look at the zone value of yourself from the raid.
- Possible values: nil, 'Offline', any valid location
- online
- Player's current online status
- Possible values: 1, nil
- isDead
- Returns if raid member is dead or not
- (note: this does not show hunters as being dead when they have Feign Death.)
- Example
name, rank, subgroup, level, class, fileName, zone, online = GetRaidRosterInfo(Raid_Member_ID_Number);
- Result
- Description
- Regarding the corrispondance of raid indecies 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 0<i<=40.