#Trigger on login

33 messages · Page 1 of 1 (latest)

solemn sorrel
#

i need my weak aura to activate once when i've logged in, any help?

tepid tinsel
#

when first arg is true

solemn sorrel
tepid tinsel
#

click on accept there, then go into "Custom Trigger" and enter

function(e, login)
  if e == "PLAYER_ENTERING_WORLD" then
    return login
  end
end
#

and below you can set a time for how long it should be active

solemn sorrel
tepid tinsel
#

no, that is correct and it works

#

it could be that the sound doesn't play for some reason, but the aura shows just fine on login.

solemn sorrel
#

i tried to do just a chat message and that won't work unfortunately

honest compass
#

you cant send automated messages in public channels

tepid tinsel
#

first one is a print from within the trigger, 2nd one is a print from actions -> on show

#

it shows just fine

solemn sorrel
#

im just tryna test it with this and this isnt even working

#

is it possible ive got the duration mixed up, or the wrong event type?

tepid tinsel
#

no

solemn sorrel
#

how did u do the print thing might i ask

tepid tinsel
#

chat message, print to chat frame from on show

solemn sorrel
tepid tinsel
#

that's delayed twice.

#

once via WA_DELAYED_PLAYER_ENTERING_WORLD (provided by WA) and then once 10 seconds even after that

#

if you hear the sound twice you can delete the second event

solemn sorrel
#

ok you're a chad it works

#

idk how you were so patient 😂 but thank you

honest compass
#

(weakauras mutes its own sounds for X seconds after loading in to avoid massive blast from on show sounds)

#

half a second? second? i forgot it

#
      local isInitialLogin, isReloadingUi = ...
      -- Schedule events that need to be handled some time after login
      local now = GetTime()
      callback = function()
        local elapsed = GetTime() - now
        local remainingSquelch = db.login_squelch_time - elapsed
        if remainingSquelch > 0 then
          timer:ScheduleTimer(function() squelch_actions = false; end, remainingSquelch); -- No sounds while loading
        end```
#

10, editable in the saved vars file

#

10ms? i think it was ms

solemn sorrel
#

oh nice thanks!

tepid tinsel
#

it should be seconds