WoW:API GetZonePVPInfo: Difference between revisions
Jump to navigation
Jump to search
GetZonePVPInfo -Documentation by Meog-
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
:String pvpType, String factionName, Boolean isArena | :String pvpType, String factionName, Boolean isArena | ||
:;pvpType : "friendly", if the zone is controlled by the faction the player belongs to<br>"contested", if the zone is contested<br>"hostile", if the zone is controlled by the opposing faction | :;pvpType : "friendly", if the zone is controlled by the faction the player belongs to<br>"contested", if the zone is contested<br>"hostile", if the zone is controlled by the opposing faction<br>"sanctuary", if the zone is a sanctuary and does not allow pvp combat (2.0.x) | ||
:;factionName : the faction, that controls the zone, if pypType is "friendly" or "hostile" | :;factionName : the faction, that controls the zone, if pypType is "friendly" or "hostile" | ||
:;isArena : true, if the player is in an arena, false otherwise | :;isArena : true, if the player is in an arena, false otherwise |
Revision as of 04:13, 21 December 2006
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
"sanctuary", if the zone is a sanctuary and does not allow pvp combat (2.0.x) - 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.