WoW:API GetZonePVPInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
  <center>'''GetZonePVPInfo''' ''-Documentation by [[user:Meog|Meog]]-''</center>
  <center>'''GetZonePVPInfo''' ''-Documentation by [[user:Meog|Meog]]-''</center>


Returns PVP info for the current zone
Returns PVP info for the current zone - doesnt seems to work at pve servers


  GetZonePVPInfo();
  GetZonePVPInfo();

Revision as of 05:29, 28 June 2005

GetZonePVPInfo -Documentation by Meog-

Returns PVP info for the current zone - doesnt seems to work at pve servers

GetZonePVPInfo();

Arguments
none

Returns
String pvpType, String factionName, Boolean isArena
pvpType
"friendly", if the zone is controlled by the faction the player belongs to
"contested", if the zone is contested
"hostile", if the zone is controlled by the opposing faction
factionName
the faction, that controls the zone, if pypType is "friendly" or "hostile"
isArena
true, if the player is in an arena, false otherwise

Example
local pvpType, factionName, isArena = GetZonePVPInfo();

Result
"friendly", "Alliance", false

Description
Returns PVP info for the current zone.

Template:WoW API