Salanex49625@legacy41569066 (talk | contribs) (Created this documentation for new arena functionality) |
mNo edit summary |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{wowapi}} |
||
− | + | Returns information regarding an Arena team |
|
− | |||
+ | |||
− | + | teamName, oldTeamRating, newTeamRating, teamRating = GetBattlefieldTeamInfo( index ); |
|
==Parameters== |
==Parameters== |
||
===Arguments=== |
===Arguments=== |
||
+ | :( index ) |
||
− | index |
+ | :;index : Integer - Which team to get information on, 0 is Green team and 1 is Gold Team |
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
− | :; teamName - String representing the Registered team's name |
||
− | :; teamRating - Integer representing the team's arena rating points when they entered the arena. |
||
⚫ | |||
− | |||
− | ==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. |
||
⚫ | |||
⚫ | |||
+ | :;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) |
||
⚫ | |||
+ | :;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
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
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.