Thread Tools Display Modes
05-09-11, 02:23 AM   #1
AcidWeb
A Theradrim Guardian
 
AcidWeb's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 68
GetBattlefieldArenaFaction() - Feedback

Hello,

I'm currently unable to test it myself so I would greatly appreciate if somebody check output of this script.
Code:
/script print(UnitFactionGroup("player").." - "..GetBattlefieldArenaFaction())
I need output from CROSS-FACTION RATED BG - In other words: Rated battleground in which you started in base of opposite faction.
  Reply With Quote
05-09-11, 12:22 PM   #2
AcidWeb
A Theradrim Guardian
 
AcidWeb's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 68
Done,

As I predicted in cross-faction rated BG GetBattlefieldArenaFaction() return ID of played faction not real one.
  Reply With Quote
11-13-12, 05:24 AM   #3
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Rbg

Just wrote this.

Code:
local IsRated
IsRated = IsRatedBattleground()
if IsRated == true then
	local AllianceSpellName = select(1, GetSpellInfo(81748))
	local HordeSpellName = select(1, GetSpellInfo(81744))
	-- Alliance RBG buff
	if AllianceSpellName ~= nil and select(11, UnitBuff("player", AllianceSpellName)) == 81748 then

	 -- Horde RBG buff
	elseif HordeSpellName ~= nil and select(11, UnitBuff("player", HordeSpellName)) == 81744 then

	end
end

Last edited by Resike : 11-23-12 at 03:37 PM.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » GetBattlefieldArenaFaction() - Feedback

Thread Tools
Display Modes

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