#Trigger on login
33 messages · Page 1 of 1 (latest)
ive got this but its not working im clueless
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
the weak aura is just so when i login, it does the action/sound once. i think i've input it in wrong ?
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.
i tried to do just a chat message and that won't work unfortunately
you cant send automated messages in public channels
first one is a print from within the trigger, 2nd one is a print from actions -> on show
it shows just fine
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?
no
how did u do the print thing might i ask
chat message, print to chat frame from on show
wow ok that works but the main action isnt, is there a way to delay the trigger since i believe i need to be fully loaded in for it to show
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
(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
oh nice thanks!
it should be seconds