Count how many times who visit orgrimmar and display in alert

This commit is contained in:
2024-11-26 22:09:58 +01:00
parent 1c70cabc9a
commit 9f3ddebcee
3 changed files with 191 additions and 157 deletions

View File

@@ -3,22 +3,12 @@
function(allstates)
local now = GetTime()
for k, v in pairs(aura_env.stinkies) do
local ago = now - v.lastSeen
local ago = now - v.lastSeenInternal
if ago > aura_env.ttl then
allstates[k] = { show = false, changed = true }
aura_env.stinkies[k] = nil
PlaySoundFile("Interface\\Sounds\\Uncloak.ogg", "Master")
aura_env.NotifyGone(v)
local timestamp = date("%Y-%m-%dT%H:%M:%S")
WeakAurasSaved.Cyka.WhoSniffer[v.name][timestamp] = {
["name"] = v.name,
["guild"] = v.guild,
["race"] = v.race,
["class"] = v.class,
["zone"] = v.zone,
["left"] = true,
}
else
if allstates[k] then
allstates[k].ago = string.format("%6.1fs", ago)