(temporarily?) add a quack on battlepass to be claimed

This commit is contained in:
2024-04-13 16:23:29 +02:00
parent 0e98ef5d2d
commit 1f632207c8
2 changed files with 7 additions and 1 deletions

View File

@@ -5,5 +5,12 @@ function(e)
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

View File

@@ -1,4 +1,3 @@
-- TICKER_500
function(e)
return math.floor(time() - aura_env.AfkSince), math.floor(aura_env.KickTime - aura_env.AfkSince), 1
end