Files
wow-weakauras/FreshShit/AfkTimer/event2.lua
2024-05-19 20:02:04 +02:00

16 lines
621 B
Lua

-- TICKER_500
function(e)
local timeToKick = aura_env.KickTime - time()
if timeToKick > 0 and timeToKick < 10 * 60 then
WeakAuras.ScanEvents("PLAY_SOUND", "Interface\\Sounds\\quack.ogg")
-- SendChatMessage("QUACK", "WHISPER", nil, UnitName("player"))
end
local rewardClaimed = WeakAurasSaved.Cyka.LoginInfo[Today][UnitName("player")].claimed
local onlineTime = WeakAurasSaved.Cyka.LoginInfo[Today][UnitName("player")].onlineTimeInMinutes
if rewardClaimed == 0 and onlineTime >= 120 then
WeakAuras.ScanEvents("PLAY_SOUND", "Interface\\Sounds\\quack.ogg")
end
return aura_env.KickTime > 0
end