Help with Delays

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

dravidiankayne
Chicken Little
Posts: 61
Joined: Mon Mar 29, 2004 3:14 pm

Help with Delays

Post by dravidiankayne » Tue Apr 20, 2004 2:00 pm

Okay, I have made many macros and I feel I'm getting good at it, but I want to know a little about delays. I know the /delay command pauses the macro for the given amount of time, but what if I don't want the macro paused, but I want something to trigger after 'n' seconds? So for instance, if you want your character to say something, then 5 seconds later you want them to say something again, while the macro is continuing to loop.......how do you do that? I know I could use timers, but then the action still only triggers once per loop, and if the macro gets tied up doing something else, that event won't trigger till the next time the loop comes around, even if it is at 0.

Thanks~

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Tue Apr 20, 2004 2:39 pm

/timed <deciseconds> <command>
Executes a command after a specified duration (in deciseconds like pause)
Note: This does NOT "pause" successive commands.

dravidiankayne
Chicken Little
Posts: 61
Joined: Mon Mar 29, 2004 3:14 pm

Post by dravidiankayne » Tue Apr 20, 2004 9:17 pm

Thank you SOOO Much!!! This just enhanced my macros ten-fold!!

dravidiankayne
Chicken Little
Posts: 61
Joined: Mon Mar 29, 2004 3:14 pm

Post by dravidiankayne » Tue Apr 20, 2004 9:20 pm

So can I do something like:

/timed 30 {
/DO SOMETHING
}

And this makes it so ~after~ 3 seconds DO SOMETHING is performed? Or can I not use the { } things?

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Tue Apr 20, 2004 9:23 pm

no {} except for ifs sorry

do this:

/timed 30 /multiline ; /command 1;/command 2;/command 3;/command 4;/command 5 etc
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

magictiger
a snow griffon
a snow griffon
Posts: 450
Joined: Sun Mar 21, 2004 2:24 pm

Post by magictiger » Tue Apr 20, 2004 10:24 pm

Can we call a sub from a timer?
/timed 660 /call castretardedshortdurationbuff

The reason I'm asking is that I'd like to make a macro to take 6 or 7 names and cycle through them casting this buff once every 66 seconds. I could probably do it with /multiline but I feel more comfortable working in code blocks.