/
--[[ |
NotBloated.004.1 |
Sliker, Auchindoun EU |
NotBloated.4 |
Kesava, Auchindoun EU |
TODO: add way to ignore a bg |
--]] |
-- Initialize |
[0] = { false, false } |
} |
-- Battlezones to ignore. |
-- Current indexes: 1 = Wintergrasp, 2 = Tol'Barad |
local Ignore = { |
[1] = true -- so just remove this line if you want Wintergrasp back |
} |
local Times = {} |
local lastUpdate, lUpTime = 1, GetTime() |
local a, i |
for i = 1, #Times do |
if Ignore[i] then |
-- fake continue |
i = i + 1 |
end |
if not Times[i] then |
break |
end |
a = Times[i] |
a['lastTime'] = a.waitTime or 0 |
print('you have zoned into an area where the waitTime for ' .. a.n .. ' cannot be fetched') |
end |
a['invalid'] = true |
if a.waitTime and a.waitTime > 0 then |
-- try to emulate the timer |
a.waitTime = a.waitTime - (GetTime() - lUpTime) |
a.waitTime = 0 |
a.inProgress = true |
end |
else |
-- ah dunno wut to do |
a['invalid'] = true |
end |
end |
-- Prints the time remainng/status of the battle |
function NotBloated:PrintTime(index) |
if Ignore[index] then return end |
local a, seconds, minutes, hours, warnText |
a = Times[index] |
if not a.waitTime or (a.waitTime <= 0 and a.invalid) then |