Returns basic scoreboard information for a battleground/arena participant. Does not include battleground-specific score data (e.g. flags captured in Warsong Gulch, towers assaulted in Alterac Valley, etc); see
GetBattlefieldStatData() for such information.
Signature:
Code
name, killingBlows, honorableKills, deaths, honorGained, faction, race, class, classToken, damageDone, healingDone, bgRating, ratingChange, preMatchMMR, mmrChange, talentSpec = GetBattlefieldScore(index)
Arguments:
index - Index of a participant in the battleground/arena scoreboard (between 1 and GetNumBattlefieldScores() ) (number ) Returns:
name - Name of the participant (string ) killingBlows - Number of killing blows scored by the participant during the match (number ) honorableKills - Number of honorable kills scored by the participant during the match (number ) deaths - Number of times the participant died during the match (number ) honorGained - Amount of honor points gained by the participant during the match (number ) faction - Faction or team to which the participant belongs (number ) 0 - Horde (Battleground) / Green Team (Arena)1 - Alliance (Battleground) / Gold Team (Arena) race - Localized name of the participant's race (string ) class - Localized token representing the participant's class (string ) classToken - Non-localized token representing the participant's class (string ) damageDone - Total amount of damage done by the participant during the match (number ) healingDone - Total amount of healing done by the participant during the match (number ) bgRating - Personal battleground rating at the start of the match (number ) ratingChange - Amount of rating gained/lost during the match (number ) preMatchMMR - After 4.2 update is always zero (number ) mmrChange - After 4.2 update is always zero (number ) talentSpec - Localized name of player build (string )
Также смотрите: Поля сражений
, Battlefield functions
Ссылки: http://wowprogramming.com/docs/api/GetBattlefieldScore