Name DoAfter
Type Method
Summary Adds a one-shot, temporary timer - simplified interface
Prototype long DoAfter(long Seconds, BSTR SendText);
Description This routine adds an unlabelled, temporary, one-shot timer, set to go off after the designated number of seconds. The first argument (seconds) must evaluate to a time between 1 second, and 23 hours 59 minutes 59 seconds (that is, 1 to 86,399).

You can also use DoAfterSpeedWalk - this is the same as DoAfter, except the command is interpreted as a speedwalk sequence.

You can also use DoAfterNote - this is the same as DoAfter, except the text is sent to the output window, not the MUD.

The purpose of this is simplify the frequent case of simply wanting to do something in a few seconds, rather than using AddTimer.

Note: Available in MUSHclient version 3.18 onwards.
VBscript example
world.DoAfter 10, "eat food"
world.DoAfter 20, "get bottle bag"
world.DoAfter 21, "drink water"
Jscript example
world.DoAfter (10, "eat food");
world.DoAfter (20, "get bottle bag");
world.DoAfter (21, "drink water");
PerlScript example
$world->DoAfter (10, "eat food");
$world->DoAfter (20, "get bottle bag");
$world->DoAfter (21, "drink water");
Returns eTimeInvalid: The time is invalid (seconds not in range 1 to 86,399).
eOK: added OK

See also ...