WoWInterface SVN NotBloated

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 3 to Rev 4
    Reverse comparison

Rev 3 → Rev 4

trunk/NotBloated/main.lua
1,10 → 1,8
--[[
 
NotBloated.004.1
Sliker, Auchindoun EU
NotBloated.4
Kesava, Auchindoun EU
 
TODO: add way to ignore a bg
 
--]]
 
-- Initialize
28,6 → 26,12
[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()
72,6 → 76,15
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
96,8 → 109,6
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)
107,6 → 118,9
a.waitTime = 0
a.inProgress = true
end
else
-- ah dunno wut to do
a['invalid'] = true
end
end
 
150,8 → 164,9
 
-- 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