Two things at once.

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

ewq
decaying skeleton
decaying skeleton
Posts: 4
Joined: Wed Dec 03, 2003 11:36 pm

Two things at once.

Post by ewq » Wed Feb 04, 2004 7:35 pm

I'm trying to have my macro do these two things at once. Hopefully i'm missing something very simple.

Code: Select all

Sub Main 
   /call Autorun
/return 

Sub Autorun

    :Autorun
   {
    /sendkey down left
    /delay 4
    /press left
    /call Sub Twist
    /goto :Autorun
   }

Sub Twist

   :Twist
   {
    /cast 1
    /delay 31
    /cast 2
    /delay 31
    /cast 3
    /delay 31
    /cast 4
    /delay 31
    /goto :Twist
   }


/return
Should be pretty close? Thanks for any help.

GD
a snow griffon
a snow griffon
Posts: 353
Joined: Sat Jun 29, 2002 11:57 pm

Post by GD » Wed Feb 04, 2004 8:30 pm

I'm guessing that what you want it to do is just run around in a somewhat circular pattern while continuously playing songs.

Try this...

Code: Select all

Sub Main 

	:Turn
		/sendkey down left 
		/delay 4 
		/press left 

   :Twist
		/cast 1 
		/delay 31 
		/cast 2 
		/delay 31 
		/cast 3 
		/delay 31 
		/cast 4 
		/delay 31 

	/goto :Turn

/return 
Opinions are like assholes, everyone has one, but most of them stink.

ewq
decaying skeleton
decaying skeleton
Posts: 4
Joined: Wed Dec 03, 2003 11:36 pm

Post by ewq » Wed Feb 04, 2004 8:56 pm

This does not quite work. It runs through it so it turns like 1 time in about 15 seconds.

GD
a snow griffon
a snow griffon
Posts: 353
Joined: Sat Jun 29, 2002 11:57 pm

Post by GD » Thu Feb 05, 2004 2:52 am

Using your delay of 31 (3.1 seconds), for each song to be played comes out to almost 12.5 seconds before it loops again.

You'll have to tweak it, I just gave you a simple baseline to work from.
Opinions are like assholes, everyone has one, but most of them stink.

ewq
decaying skeleton
decaying skeleton
Posts: 4
Joined: Wed Dec 03, 2003 11:36 pm

Post by ewq » Thu Feb 05, 2004 6:15 pm

Still have not been able to figure out how to do it other than have it loop /send down left delay 4 /press left a few times for the /delay 31