if not WeakAurasSaved.Cyka then WeakAurasSaved.Cyka = {} end if not WeakAurasSaved.Cyka.PlayerFactionCache then WeakAurasSaved.Cyka.PlayerFactionCache = {} end WeakAurasSaved.Cyka.Stinkies = { ["Redbulka"] = true, ["Курлык"] = true, ["Riener"] = true, ["Unwashed"] = true, ["Ловилуну"] = true, ["Фоська"] = true, -- if she comes here to orgrimmar. then she will be with 1 or 2 friends. they can be killed. but it may be difficult ["Korovadura"] = true, ["Pizdosorkam"] = true, ["Неонанируй"] = true, ["Bunkkeer"] = true, ["Dewdew"] = true, ["Empanao"] = true, ["Стелсон"] = false, -- Apyr ["Trafik"] = false, -- Has agreed to behave, is french (also horde) ["Aye"] = true, -- Actually a pretty good player, sadly... Part of DNF, says murkot ["Paskoo"] = false, -- Really stinky but he's horde... Many false alarms ["Армагид"] = true, ["Психопаточка"] = true, ["Hmor"] = false, ["Паладийпал"] = true, -- Possibly related to Oakskin ["Oakskin"] = true, ["Шпека"] = true, ["Yunami"] = false, -- He is a loser but he's also horde... So I can't kill him even if I wanted to ["Joule"] = true, ["Rattenfenger"] = true, ["Blessly"] = true, ["Ramáladni"] = false, -- Does not cause trouble and the guy is a behemoth... It is a lot of effort to remove him ["Асталабиста"] = true, ["Srakonyh"] = false, -- Agreed to leave him alone until he kills someone again ["Залупотряс"] = 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 ["Zawaz"] = nil, ["Totleta"] = nil, } local toNotify = { "Succpotato", "Extazyk", "Smokefire", "Smokemantra", "Хихихантер", "Муркот", "Растафаркрай" } -- local toNotify = { "Succpotato" } aura_env.whisperQueue = {} local killSpamTime = 30 local recentlyKilled = {} aura_env.RegisterKill = function(source, destination, spellName, overkill) if recentlyKilled[source] and recentlyKilled[source] > GetTime() - killSpamTime then print("Death already reported") end if overkill <= 0 then return end local faction = "Неизвестная фракция" if WeakAurasSaved.Cyka.PlayerFactionCache[source] then faction = WeakAurasSaved.Cyka.PlayerFactionCache[source] end local msg = string.format("%s %s убил %s с помощью %s с переполнением %d", faction, source, destination, spellName, overkill) for k, v in pairs(toNotify) do -- SendChatMessage(msg, "WHISPER", nil, v) table.insert(aura_env.whisperQueue, { to = v, msg = msg }) end SendChatMessage(msg, "GUILD", "Orcish") recentlyKilled[source] = GetTime() end 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") local msg = string.format("%s в Оргриммаре!", name) for k, v in pairs(toNotify) do -- SendChatMessage(msg, "WHISPER", nil, v) table.insert(aura_env.whisperQueue, { to = v, msg = msg }) end SendChatMessage(msg, "GUILD", "Orcish") 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 --/run WeakAurasSaved.Cyka.Stinkies["Totleta"] = true -- /dump WeakAurasSaved.Cyka.Stinkies