Combining DoAfter and Execute

Posted by Woodspiral on Sun 08 Aug 2021 02:10 AM — 3 posts, 12,704 views.

#0
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.
USA Global Moderator #1
Use DoAfterSpecial instead of DoAfter and send your commands to Execute.

Like this:


DoAfterSpecial(11, "pp figurine", sendto.execute)
Amended on Sun 08 Aug 2021 03:36 AM by Fiendish
#2
Awesome, Fiendish, thanks so much!