WoW:API GetZonePVPInfo: Difference between revisions

→‎Returns: -> also returns arena
(→‎Returns: "combat" return added)
(→‎Returns: -> also returns arena)
Line 6: Line 6:
===Returns===
===Returns===
:;pvpType : String - One of the following values:
:;pvpType : String - One of the following values:
:::*"arena", if you are in an arena
:::*"friendly", if the zone is controlled by the faction the player belongs to.
:::*"friendly", if the zone is controlled by the faction the player belongs to.
:::*"contested" if the zone is contested (PvP server only)
:::*"contested" if the zone is contested (PvP server only)
Line 14: Line 15:
:;isFFA : Integer - 1 if in a free-for-all arena, nil otherwise.
:;isFFA : Integer - 1 if in a free-for-all arena, nil otherwise.
:;faction : String - the name of the faction controlling the zone if pvpType is "friendly" or "hostile".
:;faction : String - the name of the faction controlling the zone if pvpType is "friendly" or "hostile".


==Example==
==Example==
Anonymous user