Thread Tools Display Modes
08-23-15, 12:17 PM   #1
Tercioo
An Aku'mai Servant
 
Tercioo's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 38
How to get arena team color at the beginning of an arena duel?

Is there a way to know if the player is in the yellow or green team when he enters in the arena or when the match starts?

So far I've searched but only found out-dated api calls, Bliizard_ArenaUI don't give this information either, WorldStateScore tells, but can only be opened when the battle ends.

Any ideas?, thank you.
  Reply With Quote
08-23-15, 08:05 PM   #2
Mazzop
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 74
just a shot, desc is about horde/ally, but you can check in arena

GetBattlefieldArenaFaction()
  Reply With Quote
08-23-15, 10:24 PM   #3
Tercioo
An Aku'mai Servant
 
Tercioo's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 38
Originally Posted by Mazzop View Post
just a shot, desc is about horde/ally, but you can check in arena

GetBattlefieldArenaFaction()
Thanks, worked well.

Returns 0 when the player is on green team and 1 when in the yellow team.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How to get arena team color at the beginning of an arena duel?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off