WoWInterface

WoWInterface (http://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (http://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   GetBattlefieldArenaFaction() - Feedback (http://www.wowinterface.com/forums/showthread.php?t=40062)

AcidWeb 05-09-11 02:23 AM

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.

AcidWeb 05-09-11 12:22 PM

Done,

As I predicted in cross-faction rated BG GetBattlefieldArenaFaction() return ID of played faction not real one.

Resike 11-13-12 05:24 AM

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



All times are GMT -6. The time now is 08:33 PM.

vBulletin © 2014, Jelsoft Enterprises Ltd
©2012 ZAM Network LLC