I am trying to use a tempTimer to re-sing aria before it runs out (approx 50 seconds) and am using the following script, triggered from the successfully sung line:
function startAriaTimer()
if ariaTimer then killTimer(ariaTimer) end
ariaTimer = tempTimer(45,[[ ariaTimerFunction() ]] )
end
function ariaTimerFunction()
if otg.defs.current.aria then
send("QUEUE ADD CLASS sing aria at me")
end
killTimer(ariaTimer)
end
The problem is, it just spams sing aria at me until I set my aria priority to 0. What am I doing wrong?
Furthermore, it keeps doing even if I disable the trigger and reset aria to 25 or above
Comments
If queueing it manually works as expected, you might try turning on the "Show sent text" setting in Settings->Input line and adding a couple echos to those two functions, and looking at how often they're being called and what's happening when they are. For example, is it sending "queue add class sing aria at me" a bunch of times at once, or more often than expected?
You might also want to make sure you don't have another script/trigger somewhere defining ariaTimer (maybe search for "aria" in the script editor search box).
When it starts spamming you, do you get any error messages in the mudlet error display?
Results of disembowel testing | Knight limb counter | GMCP AB files
Svof
Mudlet Discord join up