Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
(Created this documentation for new arena functionality)
 
mNo edit summary
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  +
{{wowapi}}
Gets information about an Arena Team
+
Returns information regarding an Arena team
 
  +
teamName, teamRating, newTeamRating = GetBattlefieldTeamInfo(index);
+
teamName, oldTeamRating, newTeamRating, teamRating = GetBattlefieldTeamInfo( index );
   
 
==Parameters==
 
==Parameters==
 
===Arguments===
 
===Arguments===
  +
:( index )
   
index - The index of the team to return. Values are 0 and 1. For unregistered games, 0 = Green team and 1 = Gold Team
+
:;index : Integer - Which team to get information on, 0 is Green team and 1 is 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.
 
 
===Returns===
 
: teamName, oldTeamRating, newTeamRating
   
  +
:;teamName : String - Teams name inside a rated arena match.
At this stage, the colours used for both skirmish and ranked games are gold and green.
 
  +
:;oldTeamRating : Integer - Old rating that the team entered with (0 is no team is found)
 
:;newTeamRating : Integer - New rating that the team is leaving with
  +
:;teamRating : Integer - Formerly known as ''match making rating''
   
  +
----
Created by :[[User:Salanex|Salanex]] 23:55, 15 February 2007 (EST)
 
  +
===Details===
  +
This cannot be used until the arena has ended and UPDATE_BATTLEFIELD_SCORE is fired, if for some reason a game ends as soon as it starts with no enemy team joining, oldTeamRating will be 0.

Revision as of 10:38, 8 September 2017

Returns information regarding an Arena team

teamName, oldTeamRating, newTeamRating, teamRating = GetBattlefieldTeamInfo( index );

Parameters

Arguments

( index )
index
Integer - Which team to get information on, 0 is Green team and 1 is Gold Team

Returns

teamName, oldTeamRating, newTeamRating
teamName
String - Teams name inside a rated arena match.
oldTeamRating
Integer - Old rating that the team entered with (0 is no team is found)
newTeamRating
Integer - New rating that the team is leaving with
teamRating
Integer - Formerly known as match making rating

Details

This cannot be used until the arena has ended and UPDATE_BATTLEFIELD_SCORE is fired, if for some reason a game ends as soon as it starts with no enemy team joining, oldTeamRating will be 0.