Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:API GetWorldPVPAreaInfo
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} __NOTOC__ Get information regarding a world PvP zone (e.g. Wintergrasp or Tol Barad). pvpID, localizedName, isActive, canQueue, startTime, canEnter = GetWorldPVPAreaInfo(index) == Arguments == ;index : Number - the zone's index, from 1 to {{api|GetNumWorldPVPAreas}}() == Returns == :pvpID, localizedName, isActive, canQueue, startTime, canEnter ;pvpID : Number - ID number of the zone assigned by Blizzard. (see "Details" below) ;localizedName : String - the zone's name, in the current locale (e.g. Wintergrasp or Tol Barad) ;isActive : Boolean - whether a battle is currently taking place in the zone ;canQueue : Boolean - whether players can currently queue for the next or current battle ;startTime : Number - time until the next battle starts, in seconds ;canEnter : Boolean - whether the player meets the necessary requirements to participate in the zone's battle == Example == local _, localizedName, isActive, canQueue, startTime, canEnter = GetWorldPVPAreaInfo(2) if isActive then if 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 else print("Cool your jets, " .. localizedName .. " doesn't start for another " .. SecondsToTime(startTime) .. ".") end <big>'''Result'''</big> -- 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 with you could join in?" == Details == Notes: : The "startTime" is always greater than 0. Once a battle begins, the "startTime" will be the number of seconds until the NEXT battle begins. : The return value pvpID does not equal the passed value of "index". There are currently (09FEB2011) only two zones - ::Index #1 = Wintergrasp with pvpID = 1 ::Index #2 = Tol Barad with pvpID = 2
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Api
(
edit
)
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)