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
➜ General
➜ How to put wait time into Connect Text
How to put wait time into Connect Text
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Kehl
(1 post) Bio
|
Date
| Wed 08 Feb 2012 05:26 PM (UTC) |
Message
| Sometimes my mud response isn't fast enough for the connect text, so I'd like to put in wait time before sending the text. Is there a way to do that?
V. 4.73 | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 08 Feb 2012 07:06 PM (UTC) |
Message
| Make an alias which matches something like "connect_me_now".
Make that alias send whatever you need to connect to the MUD, after a delay (by a small script). Example:
<aliases>
<alias
match="connect_me_now"
enabled="y"
send_to="12"
sequence="100"
>
<send>
DoAfter (5, "gandalf") -- username
DoAfter (6, "swordfish") -- password
</send>
</alias>
</aliases>
Go to the Scripting configuration and put this into the box World Events -> Connect:
Note the exclamation mark. Now when you connect it will call the alias connect_me_now. That will schedule to send your username/password after 5/6 seconds. Of course modify the alias as required to have the delay you want, and send whatever you want. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
8,331 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top