Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Lua ➜ command stacking in a timer

command stacking in a timer

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Tisorin   (15 posts)  Bio
Date Tue 16 Sep 2014 06:56 AM (UTC)
Message
Ok, this may sound sily, but how you put more commands in a timer? I tried to put them on a separate line, but I get a scripting error. This is the code for the alias.
<aliases>
<alias
match="testtimer"
enabled="y"
send_to="12"
sequence="100"
>
<send>AddTimer ("test_timer", 0, 0, 2, "dance;yawn;laugh", timer_flag.Enabled + timer_flag.OneShot, "")</send>
</alias>
</aliases>
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 17 Sep 2014 06:32 AM (UTC)
Message
Can you show what you tried, and what scripting error you got?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Tisorin   (15 posts)  Bio
Date Reply #2 on Wed 17 Sep 2014 08:00 AM (UTC)

Amended on Wed 17 Sep 2014 08:05 AM (UTC) by Tisorin

Message
Ok, first I tried what I put in the first message, with ; in between commands
Then, I tried putting each command on it's line:

<aliases>
<alias
match="testtimer"
enabled="y"
send_to="12"
sequence="100"
>
<send>AddTimer ("my_timer", 0, 0, 1.5, "dance
yawn", timer_flag.Enabled + timer_flag.OneShot, "")</send>
</alias>
</aliases>


And I got this error
Error number: 0
Event: Compile error
Description: [string "Alias: "]:1: unfinished string near '"dance'
Called by: Immediate execution

Also, how can I put an alias to be executed in the timer? If I have the alias emotes, which several emotes in it, and I put emotes to be executed, it sends the command "emotes" to world and not the commands from the alias.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,909 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.