end |
|
local function CheckControl() |
local wintergrasp = select(11,GetMapZones(4)) |
local continent,zone = GetCurrentMapContinent(),GetCurrentMapZone() |
SetMapZoom(4) |
for i=1,GetNumMapLandmarks() do |
local name, description, textureIndex, x, y, mapLinkID = GetMapLandmarkInfo(i); |
if name == wintergrasp then |
if textureIndex == 48 then |
InvataxiDB.wgfaction = "Horde controlled" |
elseif textureIndex == 46 then |
InvataxiDB.wgfaction = "Alliance controlled" |
elseif textureIndex == 101 then |
InvataxiDB.wgfaction = "Battle on!" |
else |
InvataxiDB.wgfaction = "???" |
-- instanssissa GetWintergraspWaitTime() näyttää nil |
if select(2,GetInstanceInfo()) == "raid" or select(2,GetInstanceInfo()) == "party" then |
--if InvataxiDB.wgstart - time() => 0 and InvataxiDB.wgfaction ~= nil then |
|
--end |
else |
if GetWintergraspWaitTime() == nil then |
InvataxiDB.wgfaction = "" |
else |
local wintergrasp = select(11,GetMapZones(4)) |
local continent,zone = GetCurrentMapContinent(),GetCurrentMapZone() |
SetMapZoom(4) |
for i=1,GetNumMapLandmarks() do |
local name, description, textureIndex, x, y, mapLinkID = GetMapLandmarkInfo(i); |
if name == wintergrasp then |
if textureIndex == 48 then |
InvataxiDB.wgfaction = "(Horde controlled)" |
elseif textureIndex == 46 then |
InvataxiDB.wgfaction = "(Alliance controlled)" |
else |
InvataxiDB.wgfaction = "" |
end |
end |
end |
end |
SetMapZoom(continent,zone) |
end |
|
end |
SetMapZoom(continent,zone) |
end |
|
local function WGQueueTime() |
if select(2,GetInstanceInfo()) == "none" then -- out of everything. |
if GetWintergraspWaitTime() == nil then |
return "" |
return "lol" |
elseif GetWintergraspWaitTime() < 900 then |
return "Queue up!",true |
else |