[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  How to put wait time into Connect Text
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

How to put wait time into Connect Text

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Kehl   (1 post)  [Biography] bio
Date Wed 08 Feb 2012 05:26 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Gammon   Australia  (19,188 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Wed 08 Feb 2012 07:06 PM (UTC)  quote  ]
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:


!connect_me_now


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
[Go to top] 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.


845 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]