WoW:API GetBattlefieldInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Formatting, also updated what it does to be accurate)
Line 6: Line 6:
:arg1 - arg9
:arg1 - arg9


:;arg1 : String - The name of the Battlefield you are in queue for
:;arg1 : String - The name of the Battlefield you opened the window for.
:;arg2 : String - The story text in the information for the Battlefield.
:;arg2 : String - The story text in the information for the Battlefield.
:;arg3 : Integer - The lowest level to join in the Battlegrounds.
:;arg3 : Integer - The lowest level to join in the Battlegrounds.
:;arg4 : Integer - The highest level to join in the Battlegrounds.
:;arg4 : Integer - The highest level to join in the Battlegrounds.
:;arg5 : Integer - Unknown. Returned -1 on test.
:;arg5 : Integer - Unknown. Returned -1 on test. Named in Blizzard code as mapID.
:;arg6 : Unknown - Returned 0.
:;arg6 : Unknown - Returned 0. Named in Blizzard code as mapX.
:;arg7 : Unknown - Returned 0.
:;arg7 : Unknown - Returned 0. Named in Blizzard code as mapY.
:;arg8 : Integer - Lowest level for the instance you will be joining (eg: in [[Warsong Gulch]], lvl40-49 game, returns 40).
:;arg8 : Integer - Lowest level for the instance you will be joining (eg: in [[Warsong Gulch]], lvl40-49 game, returns 40).
:;arg9 : Integer - Highest level for the instance you will be joining.
:;arg9 : Integer - Highest level for the instance you will be joining.

Revision as of 07:27, 22 July 2006

Returns information for the last Battlefield queue window you viewed.

GetBattlefieldInfo()

Returns

arg1 - arg9
arg1
String - The name of the Battlefield you opened the window for.
arg2
String - The story text in the information for the Battlefield.
arg3
Integer - The lowest level to join in the Battlegrounds.
arg4
Integer - The highest level to join in the Battlegrounds.
arg5
Integer - Unknown. Returned -1 on test. Named in Blizzard code as mapID.
arg6
Unknown - Returned 0. Named in Blizzard code as mapX.
arg7
Unknown - Returned 0. Named in Blizzard code as mapY.
arg8
Integer - Lowest level for the instance you will be joining (eg: in Warsong Gulch, lvl40-49 game, returns 40).
arg9
Integer - Highest level for the instance you will be joining.

Details

Appears to get the battleground info for the last battlefield window open, meaning if you just opened the Warsong Gulch queue window then this will return info for that battleground.

WoW API < GetBattlefieldInfo