#Help please mini Lua Code not working

7 messages · Page 1 of 1 (latest)

echo night
#

Unfortunately I don't know the Lua language but maybe someone can help me.

I thought if instead of:
if WA_GetUnitBuff("player", "Trinken" ) then

so that no matter if I drink, eat or eat from feast it should trigger:

if WA_GetUnitBuff("player", "Trinken" or "Essen" or "Speis & Trank") then

but unfortunately this does not work. Does anyone know what I would have to rewrite?

Here is the weakaura I want to change

https://wago.io/q9f0bidnX

Wago.io is a database of sharable World of Warcraft addon elements

golden garden
#

why code?

echo night
# golden garden why code?

it should disapear after 10 seconds and should not show the whole 20 sec, i saw many weakauras and thought this is the best option for what it have to do

golden garden
#

you can set a min progress in the display tab to for example 20

echo night
echo night
#

I think this is the important thing

function()
local _, _, _, _, _, expirationTime = WA_GetUnitBuff("player", "Trinken")
if expirationTime then
return 10.0, expirationTime-10
else
return false
end
end

but i need it not only for drinking instead like above : "Trinken" or "Essen" or "Speis & Trank"