Fandom

WoWWiki

API GetBattlegroundInfo

104,635pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetBattlegroundInfo

Returns information about a battleground type.

local name, canEnter, isHoliday, isRandom, BattleGroundID = GetBattlegroundInfo(BGindex);

ArgumentsEdit

index 
Number: battleground type index, 1 to GetNumBattlegroundTypes().

Returns Edit

name 
String - Localized battleground name.
canEnter 
Flag - 1 if the player can queue for this battleground, nil otherwise.
isHoliday 
Flag - 1 if this battleground is currently granting bonus honor due to a battleground holiday, nil otherwise.
isRandom 
Flag - 1 if this battleground is the random
BattleGroundID 
Number - the ID associated with the Battleground ( 1 for Alterac Valley, 2 for Warsong Gulch, 3 for Arathi Basin, 7 for Eye of the Storm, 9 for Strand of the Ancients, 30 for Isle of Conquest, and 32 for the random)

Also on Fandom

Random Wiki