Reply
 
Thread Tools Display Modes
Unread 05-09-11, 02:23 AM   #1
AcidWeb
A Wyrmkin Dreamwalker
 
AcidWeb's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 56
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.
__________________
Livarax - Karazhan
Vox Rootis, Vox Dei!
AcidWeb is offline   Reply With Quote
Unread 05-09-11, 12:22 PM   #2
AcidWeb
A Wyrmkin Dreamwalker
 
AcidWeb's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 56
Done,

As I predicted in cross-faction rated BG GetBattlefieldArenaFaction() return ID of played faction not real one.
__________________
Livarax - Karazhan
Vox Rootis, Vox Dei!
AcidWeb is offline   Reply With Quote
Unread 11-13-12, 05:24 AM   #3
Resike
A Molten Giant
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 592
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.
Resike is online now   Reply With Quote
Reply

Go BackWoWInterface » 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