Returns information about a given world PvP zone


See also PvP functions.

Signature:

pvpID, localizedName, isActive, canQueue, waitTime, canEnter = GetWorldPVPAreaInfo(pvpMapID)

Arguments:

  • pvpMapID - A numeric identifier representing a world PvP zone (number)
    • 1 - Wintergrasp
    • 2 - Tol Barad

Returns:

  • pvpID - The PvP queue ID for the specified World PvP area (number)
  • localizedName - The localized name for the specified World PvP area (string)
  • isActive - Whether there is currently a battle in the specified World PvP area (boolean)
  • canQueue - Whether queueing for the specified World PvP area is currently available (15 minutes before the battle starts for WG/TB) (boolean)
  • waitTime - The number of seconds until the next battle in the specified World PvP area starts (number)
  • canEnter - Whether the player has the required level to be eligible for the specified World PvP area [unconfirmed] (boolean)

Examples:

local pvpID, localizedName, isActive, canQueue, startTime, canEnter = GetWorldPVPAreaInfo(1);