Replace this section of code:
Code:
if (event == "UPDATE_BATTLEFIELD_STATUS") then
local status, mapName = GetBattlefieldStatus(1)
if (status == "confirm" and string.find(string.lower(mapName),"arena")) then
AudioWarn("queue")
UnsavedVar["warned"] = true
StopWatch:SetTimer("15 second warning", 15-.5, nil, AudioWarn, 15) -- remove partial time to sync
StopWatch:SetTimer("10 second warning", 20-.5, nil, AudioWarn, 10)
StopWatch:SetTimer("5 second warning", 25-.5, nil, AudioWarn, 5)
StopWatch:SetTimer("4 second warning", 26-.5, nil, AudioWarn, 4)
StopWatch:SetTimer("3 second warning", 27-.5, nil, AudioWarn, 3)
StopWatch:SetTimer("2 second warning", 28-.5, nil, AudioWarn, 2)
StopWatch:SetTimer("1 second warning", 29-.5, nil, AudioWarn, 1)
StopWatch:SetTimer("Missed queue", 30, nil, AudioWarn, "missed")
end
if (status == "confirm" and string.find(string.lower(mapName),"rated battleground")) then
AudioWarn("RBG")
end
if (status ~= "confirm") then
if (UnsavedVar["warned"]) then -- consider adding a 25s time check here
--AudioWarn("missed")
end
SetNormalCVars()
end
... with this:
Code:
if (event == "UPDATE_BATTLEFIELD_STATUS") then
local index = ...
local status, mapName, teamSize, registeredMatch, suspendedQueue, queueType, gameType, role = GetBattlefieldStatus(index)
if registeredMatch and status == "confirm" then
if queueType == "ARENA" then
AudioWarn("queue")
UnsavedVar["warned"] = true
StopWatch:SetTimer("15 second warning", 15-.5, nil, AudioWarn, 15) -- remove partial time to sync
StopWatch:SetTimer("10 second warning", 20-.5, nil, AudioWarn, 10)
StopWatch:SetTimer("5 second warning", 25-.5, nil, AudioWarn, 5)
StopWatch:SetTimer("4 second warning", 26-.5, nil, AudioWarn, 4)
StopWatch:SetTimer("3 second warning", 27-.5, nil, AudioWarn, 3)
StopWatch:SetTimer("2 second warning", 28-.5, nil, AudioWarn, 2)
StopWatch:SetTimer("1 second warning", 29-.5, nil, AudioWarn, 1)
StopWatch:SetTimer("Missed queue", 30, nil, AudioWarn, "missed")
elseif queueType == "BATTLEGROUND" then
AudioWarn("RBG")
end
elseif status ~= "confirm" then
if (UnsavedVar["warned"]) then -- consider adding a 25s time check here
--AudioWarn("missed")
end
SetNormalCVars()
end