WoW:API GetBattlefieldTeamInfo

Revision as of 10:51, 16 February 2007 by WoWWiki>Shadowed (→‎Remarks: Removed the sign/documented by. See http://www.wowwiki.com/WoWWiki_talk:Village_pump#Stop_the_signing_and_discussing_please)

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.