Refine the stinker

This commit is contained in:
2024-10-04 23:35:55 +02:00
parent cddb0e157f
commit 841365e8f9
2 changed files with 28 additions and 17 deletions

View File

@@ -1,20 +1,21 @@
if not WeakAurasSaved.Cyka then WeakAurasSaved.Cyka = {} end
if not WeakAurasSaved.Cyka.Stinkies then
WeakAurasSaved.Cyka.Stinkies = {
["Redbulka"] = true,
["Курлык"] = true,
["Riener"] = true,
["Unwashed"] = true,
["Ловилуну"] = true,
["Korovadura"] = true,
["Pizdosorkam"] = true,
["Joule"] = true,
["Rattenfenger"] = true
}
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.stinkies[UnitName("player")] = true
aura_env.localStinkies = {}
---@param name string
@@ -35,9 +36,19 @@ 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()
SetFriendNotes(k, "STINKY")
print("AAAAAAAAAAA")
-- 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