if not WeakAurasSaved.Cyka then WeakAurasSaved.Cyka = {} end WeakAurasSaved.Cyka.Stinkies = { ["Redbulka"] = true, ["Курлык"] = true, ["Riener"] = true, ["Unwashed"] = true, ["Ловилуну"] = true, ["Korovadura"] = true, ["Pizdosorkam"] = true, ["Joule"] = true, ["Rattenfenger"] = true, ["Асталабиста"] = true, ["Залупотряс"] = false, -- Муркот: I understand if one of them killed the newbies. then you did everything right. they seem friendly but I also warned them not to hit the newbies ["Чмодвенк"] = false, -- Муркот: I understand if one of them killed the newbies. then you did everything right. they seem friendly but I also warned them not to hit the newbies } aura_env.stinkies = WeakAurasSaved.Cyka.Stinkies aura_env.localStinkies = {} ---@param name string aura_env.StinkyDetected = function(name) if not aura_env.localStinkies[name] or aura_env.localStinkies[name] < GetTime() - 60 then PlaySoundFile("Interface\\Sounds\\Domination.ogg", "Master") end aura_env.localStinkies[name] = GetTime() end local friends = {} local numfriends = GetNumFriends() for i = 1, numfriends do local name = GetFriendInfo(i) friends[name] = true end for k, v in pairs(WeakAurasSaved.Cyka.Stinkies) do if not friends[k] then AddFriend(k) end end for i = 1, numfriends do local name = GetFriendInfo(i) if WeakAurasSaved.Cyka.Stinkies[name] then C_Timer.After(1, function() -- print(name .. " " .. i .. " Stinky!") SetFriendNotes(i, "STINKY") end) else C_Timer.After(1, function() -- print(name .. " " .. i .. " Not stinky") SetFriendNotes(i, "Not stinky?") end) end end -- /dump WeakAurasSaved.Cyka.Stinkies