12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

652 Part IV ■ <strong>Reference</strong>GetArenaTeamReturns in<strong>for</strong>mation about one <strong>of</strong> the player’s arena teams.teamName, teamSize, teamRating, teamPlayed, teamWins, iseasonTeamPlayed, seasonTeamWins, playerPlayed, seasonPlayerPlayed, iteamRank, playerRating, bg_red, bg_green, bg_blue, emblem, iemblem_red, emblem_green, emblem_blue, border, border_red, iborder_green, border_blue = GetArenaTeam(team)Arguments:team—Index <strong>of</strong> one <strong>of</strong> the player’s arena teams (number, arenaTeamID)Returns:teamName—Name <strong>of</strong> the arena team (string)teamSize—Size <strong>of</strong> the team (2 <strong>for</strong> 2v2, 3 <strong>for</strong> 3v3, or 5 <strong>for</strong> 5v5) (number)teamRating—The team’s current rating (number)teamPlayed—Number <strong>of</strong> games played by the team in the current week(number)teamWins—Number <strong>of</strong> games won by the team in the current week (number)seasonTeamPlayed—Number <strong>of</strong> games played by the team in the current arenaseason (number)seasonTeamWins—Number <strong>of</strong> games won by the team in the current arena season(number)playerPlayed—Number <strong>of</strong> games in which the player has participated in thecurrent week (number)seasonPlayerPlayed—Number <strong>of</strong> games in which the player has participatedin the current arena season (number)teamRank—The team’s current rank among same-size teams in its battlegroup(number)playerRating—The player’s personal rating with this team (number)bg_red—Red component <strong>of</strong> the color value <strong>for</strong> the team banner’s background(number)bg_green—Green component <strong>of</strong> the color value <strong>for</strong> the team banner’s background(number)bg_blue—Blue component <strong>of</strong> the color value <strong>for</strong> the team banner’s background(number)emblem—Index <strong>of</strong> the team’s emblem graphic; full path to the emblem texturecan be found using the <strong>for</strong>mat “Interface\PVPFrame\Icons\PVP-Banner-Emblem-“..emblem (number)emblem_red—Red component <strong>of</strong> the color value <strong>for</strong> the team banner’s emblem(number)emblem_green—Green component <strong>of</strong> the color value <strong>for</strong> the team banner’semblem (number)emblem_blue—Blue component <strong>of</strong> the color value <strong>for</strong> the team banner’semblem (number)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!