Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, 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.
Entire forum
➜ MUSHclient
➜ General
➜ Combining DoAfter and Execute
Combining DoAfter and Execute
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Woodspiral
(11 posts) Bio
|
Date
| Sun 08 Aug 2021 02:10 AM (UTC) |
Message
| Hi,
I'm trying to wrap Execute in a DoAfter but it seems that the Execute is executed immediately:
Execute("ag figurine")
Send("ritual 'create figurine' wod")
DoAfter(10,"get figurine")
DoAfter(11,Execute("pp figurine"))
The pp is an MUSH alias for 'put pocket' and this is executed before the 'get figurine'. Is there a way to fix this or must I use one of the other methods to slow the commands down?
Thank you,
Woody. | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #1 on Sun 08 Aug 2021 03:34 AM (UTC) Amended on Sun 08 Aug 2021 03:36 AM (UTC) by Fiendish
|
Message
| Use DoAfterSpecial instead of DoAfter and send your commands to Execute.
Like this:
DoAfterSpecial(11, "pp figurine", sendto.execute)
|
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Woodspiral
(11 posts) Bio
|
Date
| Reply #2 on Sun 08 Aug 2021 11:40 AM (UTC) |
Message
| Awesome, Fiendish, thanks so much! | 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.
7,932 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top