WoW:API GetBattlefieldTeamInfo

From AddOn Studio
Revision as of 04:55, 16 February 2007 by WoWWiki>Salanex (Created this documentation for new arena functionality)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Gets information about an Arena Team

     teamName, teamRating, newTeamRating = GetBattlefieldTeamInfo(index);

Parameters

Arguments

index - The index of the team to return. Values are 0 and 1. For unregistered games, 0 = Green team and 1 = Gold Team

Returns

teamName, teamRating, newTeamRating
teamName - String representing the Registered team's name
teamRating - Integer representing the team's arena rating points when they entered the arena.
newTeamRating - Integer representing the team's rating calculated at the end of the match.

Remarks

This function seems to only work for registered team games. if the function returns the value 0 for teamRating then the team is not a registered team. Taking the difference of newTeamRating and teamRating will give the net gain of arena rating points. Take note that arena rating points are the currency used to buy Arena Vendored items. These points don't directly relate to the team's rank on the server.

At this stage, the colours used for both skirmish and ranked games are gold and green.

Created by :Salanex 23:55, 15 February 2007 (EST)