WoW:API GetBattlefieldWinner: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
(→‎Returns: Returns nil, 0 or 1 not nil, 1, 2)
Line 16: Line 16:
:winnerCode
:winnerCode


:;winnerCode : integer - A code indicating the battleground winner. (nil for no one; 1 for Alliance; 2 for Horde)
:;winnerCode : integer - A code indicating the battleground winner. (nil for no one; 0 for Horde; 1 for Alliance)


==Details==
==Details==
<!-- Details not appropriate for the main description can go here -->
<!-- Details not appropriate for the main description can go here -->


: Returns an integer value which can be either nil, 1 or 2 indicating the winner of the current battleground the player is in. If the player isn't in a battleground or it's still not finished nil is returned.
: Returns an interger value which can be nil, 0 or 1 indicating the winner of the current battleground the player is in. If the battleground isn't finished or they aren't inside one nil is returned.


----
----
__NOTOC__
__NOTOC__
{{Template:WoW API}}
{{Template:WoW API}}

Revision as of 04:32, 12 July 2006

GetBattlefieldWinner() -Documentation by Klishu-

Returns an integer value based on the winner of the Battleground.

winnerCode = GetBattlefieldWinner()

Parameters

Arguments

None

Returns

winnerCode
winnerCode
integer - A code indicating the battleground winner. (nil for no one; 0 for Horde; 1 for Alliance)

Details

Returns an interger value which can be nil, 0 or 1 indicating the winner of the current battleground the player is in. If the battleground isn't finished or they aren't inside one nil is returned.

Template:WoW API