WoW:API GetBattlefieldWinner: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(→‎Returns: Returns nil, 0 or 1 not nil, 1, 2)
No edit summary
Line 1: Line 1:
{{wowapi}}
<center>'''GetBattlefieldWinner()''' ''-Documentation by [[user:Klishu|Klishu]]-''</center>
<center>'''GetBattlefieldWinner()''' ''-Documentation by [[user:Klishu|Klishu]]-''</center>


Line 16: Line 18:
:winnerCode
:winnerCode


:;winnerCode : integer - A code indicating the battleground winner. (nil for no one; 0 for Horde; 1 for Alliance)
:;winnerCode : integer - A code indicating if you've won the current battleground. (nil for no; 1 for yes)


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


: 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.
: Returns an interger value which can be nil or 1 indicating whether the player has won the current battleground he is in. Returns nil if the player is not in a battleground or the battle still hasn't ended yet.


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

Revision as of 15:29, 12 July 2006

WoW API < GetBattlefieldWinner

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 if you've won the current battleground. (nil for no; 1 for yes)

Details

Returns an interger value which can be nil or 1 indicating whether the player has won the current battleground he is in. Returns nil if the player is not in a battleground or the battle still hasn't ended yet.