WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   GetBattlefieldArenaFaction() - Feedback (https://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 06:55 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI