Good afternoon, help is needed with WA. There is a cloak https://www.wowhead.com/item=204465/voice-of-the-silent-star, getting stacks from which are not displayed in the combat log, but are displayed in the buffs. Need to add a timer of 10 seconds after receiving the 9th stack. I tried to add some timer, but nothing from Message Suffix does not work for it (because there is no message in the combat log). Maybe some custom code is needed.
#Voice of the Silent Star stacks
4 messages · Page 1 of 1 (latest)
mb there are some custom wa on the timer after the buff that you can just edit?
chatgpt wrote me this code, but it doesn't work 🙂
if event == "UNIT_AURA" then
local unit = ...
if unit == "player" then
local buffName = GetSpellInfo(409442)
local _, _, _, count, _, _, expirationTime = UnitBuff("player", buffName)
if count == 9 and expirationTime then
local remainingTime = expirationTime - GetTime()
if remainingTime > 0 then
aura_env.timer = C_Timer.NewTimer(10, function()
aura_env.endTime = expirationTime
aura_env.region:SetText("Timer: "..math.floor(aura_env.timer))
aura_env.region:SetTextColor(1, 1, 1, 1)
WeakAuras.regions[aura_env.id].region:Show()
C_Timer.After(aura_env.timer, function()
WeakAuras.regions[aura_env.id].region:Hide()
end)
end)
end
else
WeakAuras.regions[aura_env.id].region:Hide()
end
end
end
end```
chatgpt doesn't know how to do weakauras