How to put wait time into Connect Text

Posted by Kehl on Wed 08 Feb 2012 05:26 PM — 2 posts, 10,830 views.

#0
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
Australia Forum Administrator #1
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.