To join one specific BG:
Code:
/run for i=1,GetNumBattlegroundTypes()do local name,_,_,_,_=GetBattlegroundInfo(i)if name=="Name of BG"then JoinBattlefield(i)end end
Replace "Name of BG" with the full name of the BG you want to join enclosed in quotation marks. e.g. "Warsong Gulch" or "Arathi Basin".
To join multiple specific BGs:
Code:
/run for i=1,GetNumBattlegroundTypes()do local _,_,_,_,BGID=GetBattlegroundInfo(i)function JB(I)JoinBattlefield(BGID==I and i)end JB(ID#1)JB(ID#2)JB(ID#3)end
Replace ID#X with the Battleground ID of the BG you want to join.
1 = Alterac Valley
2 = Warsong Gulch
3 = Arathi Basin
7 = Eye of the Storm
9 = Strand of the Ancients
30 = Isle of Conquest
32 = Random
You can join as many BGs as the PvP system will let you by adding JB(ID) for each new one between the last JB() tag and end.
Examples:
Code:
Join 1 BG:
/run for i=1,GetNumBattlegroundTypes()do local _,_,_,_,BGID=GetBattlegroundInfo(i)function JB(I)JoinBattlefield(BGID==I and i)end JB(ID#1)end
Join 2 BGs:
/run for i=1,GetNumBattlegroundTypes()do local _,_,_,_,BGID=GetBattlegroundInfo(i)function JB(I)JoinBattlefield(BGID==I and i)end JB(ID#1)JB(ID#2)end
Join 3 BGs:
/run for i=1,GetNumBattlegroundTypes()do local _,_,_,_,BGID=GetBattlegroundInfo(i)function JB(I)JoinBattlefield(BGID==I and i)end JB(ID#1)JB(ID#2)JB(ID#3)end
Join 4 BGs:
/run for i=1,GetNumBattlegroundTypes()do local _,_,_,_,BGID=GetBattlegroundInfo(i)function JB(I)JoinBattlefield(BGID==I and i)end JB(ID#1)JB(ID#2)JB(ID#3)JB(ID#4)end
try this, This is verbatim copy and pasted from the wow forums.