Wikia

WoWWiki

API GetBattlefieldStatData

Talk0
100,547pages on
this wiki
Revision as of 00:32, July 13, 2006 by Shadowed (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)

Get data from the custom battlefield scoreboard columns

GetBattlefieldStatData(playerIndex,slotIndex)

Parameters Edit

Arguments Edit

playerIndex 
Integer - Player you want to grab the data for
slotIndex 
Integer - Column you want to grab the data from

Details Edit

Used to retrieve data from battleground specific scoreboard columns like flag captures in Warsong Gulch. If you want to make sure you have the most recent data you will have to call RequestBattlefieldScoreData and then wait for UPDATE_BATTLEFIELD_SCORE.


Example Edit

Get how many flags captures and returns a player has inside Warsong Gulch.

for i=1, GetNumBattlefieldScores() do
	local playerName = GetBattlefieldScore(i);
	local flagCaptures = GetBattlefieldStatData(i, 1);
	local flagReturns = GetBattlefieldStatData(i, 2);
end

WoW API < GetBattlefieldStatData
Advertisement | Your ad here

Around Wikia's network

Random Wiki