Remove siege of orgrimmar ffs

This commit is contained in:
2024-11-01 00:13:20 +01:00
parent eec1d46ed8
commit 89191b54a4
2 changed files with 28 additions and 26 deletions

View File

@@ -2,34 +2,36 @@
function() function()
for i = 1, GetNumWhoResults() do for i = 1, GetNumWhoResults() do
local name, guild, level, race, class, zone = GetWhoInfo(i) local name, guild, level, race, class, zone = GetWhoInfo(i)
local faction = aura_env.raceMap[race] if zone ~= "Siege of Orgrimmar" then
if not faction then print("Unknown faction for race", race) end local faction = aura_env.raceMap[race]
if faction == "Alliance" then if not faction then print("Unknown faction for race", race) end
local player = aura_env.alliance[name] if faction == "Alliance" then
if not player then local player = aura_env.alliance[name]
player = Player.new(name, guild, race, class, zone) if not player then
local timestamp = date("%Y-%m-%dT%H:%M:%S") player = Player.new(name, guild, race, class, zone)
if not WeakAurasSaved.Cyka.WhoSniffer[name] then WeakAurasSaved.Cyka.WhoSniffer[name] = {} end local timestamp = date("%Y-%m-%dT%H:%M:%S")
WeakAurasSaved.Cyka.WhoSniffer[name][timestamp] = { if not WeakAurasSaved.Cyka.WhoSniffer[name] then WeakAurasSaved.Cyka.WhoSniffer[name] = {} end
["name"] = name, WeakAurasSaved.Cyka.WhoSniffer[name][timestamp] = {
["guild"] = guild, ["name"] = name,
["race"] = race, ["guild"] = guild,
["class"] = class, ["race"] = race,
["zone"] = zone, ["class"] = class,
} ["zone"] = zone,
}
local stinky = WeakAurasSaved.Cyka.stinkies[name] local stinky = WeakAurasSaved.Cyka.stinkies[name]
if stinky then if stinky then
PlaySoundFile("Interface\\Sounds\\Domination.ogg", "Master") PlaySoundFile("Interface\\Sounds\\Domination.ogg", "Master")
else else
PlaySoundFile("Interface\\Sounds\\Cloak.ogg", "Master") PlaySoundFile("Interface\\Sounds\\Cloak.ogg", "Master")
end
aura_env.Notify(player)
end end
player:Touch()
aura_env.Notify(player) player.zone = zone
aura_env.alliance[name] = player
end end
player:Touch()
player.zone = zone
aura_env.alliance[name] = player
end end
end end
-- Turns out WA cannot do this ( -- Turns out WA cannot do this (

View File

@@ -57,7 +57,7 @@ local function padString(input, targetLength, left)
end end
aura_env.messageQueue = {} aura_env.messageQueue = {}
aura_env.ttl = 60 aura_env.ttl = 6
aura_env.whoQueryIdx = 1 aura_env.whoQueryIdx = 1
aura_env.whoQueries = { aura_env.whoQueries = {
"g-\"БеспредеЛ\"", "g-\"БеспредеЛ\"",