Trouble with this timer

Posted by Rjak on Sat 08 Apr 2006 12:58 AM — 3 posts, 13,866 views.

Romania #0
In many of muds are "buffing bots".
I asked for Imm permission, they agreed, but they refused to put !hunger and !thirst flags on my character. They said I have to feed my "buffin whore" myself. Heh.
So basically I have to send my "bot" to eat and drink, also to sleep from time to time.

So I supplied her with money, and I made a timer (firing once at each 30 mins) who send her from a safe room to a fountain, then to a food store, then back to safe room, then put her to sleep. I made another timer to wake her up.

But I encountered a problem.

I have to go 3s 2w 2s (drink water) 3e n 3e (buy steak) (eat steak) then come back. The problem is: if I use # for speedwalk, the mud does not recognise the line and ignores it. If I send the timer to "speedwalk", it does not recognise the other commands. If I send it to "speedwalk delay" all the commands are send with the same delay... and I don't need delay between (buy steak) and (eat steak).
What can I do about this? Thank you.
Australia Forum Administrator #1
Does it really matter, if there is a slight delay between "buy steak" and "eat steak" for something that happens every 30 minutes?

Assuming that it does, you can "send to script" and use "DoAfter" to make a series of things happen with variable delays between them.
Romania #2
Well, kinda.

I know I'm paranoid, but IF someone waits for her in food shop and gives her a poisoned steak imediatelly after she buys the "good" one from shop, she will eat the poisoned one instead.

This kind of idiotic jokes are a custom in that mud. Sometimes I ask myself why do I bother staying there. I guess I'm addicted.

I will search for doAfter function, thank you Nick.