Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetWorldPVPAreaInfo

Last wiki revision 2022-07-21

Returns info for a world PvP zone (e.g. Wintergrasp or Tol Barad).

pvpID, localizedName, isActive, canQueue, startTime, canEnter, minLevel, maxLevel = GetWorldPVPAreaInfo(index)

  • index: - the zone's index, from 1 to
  • 1 - Wintergrasp
  • 2 - Tol Barad
  • 3 - Ashran
  • pvpID, localizedName, isActive, canQueue, startTime, canEnter, minLevel, maxLevel
  • pvpID: - the PvP queue ID for the specified world PvP area
  • localizedName: - the zone's name, in the current locale
  • isActive: - whether a battle is currently taking place in the zone
  • canQueue: - whether players can currently queue for the next or current battle
  • startTime: - time until the next battle starts, in seconds
  • canEnter: - whether the player meets the necessary requirements to participate in the zone's battle
  • minLevel: - minimum character level required to join the battle
  • maxLevel: - maximum character level allowed

local _, localizedName, _, canQueue, startTime, canEnter = GetWorldPVPAreaInfo(2) if startTime > 0 then print("Cool your jets, " .. localizedName .. " doesn't start for another " .. SecondsToTime(startTime) .. ".") elif canEnter and canQueue then print("Get over to " .. localizedName .. ", quick!") else print("They're fighting over in " .. localizedName .. ". Don't you wish you could join in?") end

Result -- if the battle hasn't started yet "Cool your jets, Tol Barad doesn't start for another 12:34."

-- if the battle is active and the player can join it "Get over to Tol Barad, quick!"

-- if the battle is active but the player cannot join "They're fighting over in Tol Barad. Don't you wish you could join in?"

  • Note that there is some redundancy in the return values. For example, isActive will always be false when startTime is greater than 0.

Source

https://warcraft.wiki.gg/wiki/API_GetWorldPVPAreaInfo · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.