m
Move page script moved page API GetWorldPVPAreaInfo to WoW:API GetWorldPVPAreaInfo without leaving a redirect
(The redundancies listed are not accurate. The passed index value does not equal the return ID value. The start time in seconds equals the start of the following battle when the zone is active.) |
m (Move page script moved page API GetWorldPVPAreaInfo to WoW:API GetWorldPVPAreaInfo without leaving a redirect) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 18: | Line 18: | ||
== Example == | == Example == | ||
local _, localizedName, | local _, localizedName, isActive, canQueue, startTime, canEnter = GetWorldPVPAreaInfo(2) | ||
if isActive then | if isActive then | ||
if canEnter and canQueue then | if canEnter and canQueue then | ||
print("Get over to " .. | print("Get over to " .. localizedName .. ", quick!") | ||
else | else | ||
print("They're fighting over in " .. | print("They're fighting over in " .. localizedName .. ". Don't you wish you could join in?") | ||
end | end | ||
else | else | ||
print("Cool your jets, " .. | print("Cool your jets, " .. localizedName .. " doesn't start for another " .. SecondsToTime(startTime) .. ".") | ||
end | end | ||
| Line 45: | Line 45: | ||
: The return value pvpID does not equal the passed value of "index". There are currently (09FEB2011) only two zones - | : 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 #1 = Wintergrasp with pvpID = 1 | ||
::Index #2 = Tol Barad with pvpID = | ::Index #2 = Tol Barad with pvpID = 2 | ||