Tumble files around a bit
This commit is contained in:
16
WeakAuras/Projects/AfkTimer/event2.lua
Normal file
16
WeakAuras/Projects/AfkTimer/event2.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
-- 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
|
||||
Reference in New Issue
Block a user