m
Move page script moved page API GetWorldPVPAreaInfo to WoW:API GetWorldPVPAreaInfo without leaving a redirect
m (→Details) |
m (Move page script moved page API GetWorldPVPAreaInfo to WoW:API GetWorldPVPAreaInfo without leaving a redirect) |
||
| (2 intermediate revisions by 2 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 | ||