follow.mac

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

spektralkat
orc pawn
orc pawn
Posts: 22
Joined: Sat Dec 20, 2003 5:25 am

follow.mac

Post by spektralkat » Thu Apr 29, 2004 2:53 pm

Think i fixed follow.mac here is my code simple and sweet

Code: Select all

#turbo
Sub Main
   :Loop
      /if (${Target.Distance}>60) { 
      /keypress forward hold  
      } 
      /if (${Target.Distance}<10) { 
      /keypress back hold 
      /timed 1 /keypress back 
      } 
      /face nolook fast
      /delay 0
   /if (!${Target.ID}) {
      /goto :End
      } else {
      /goto :Loop
      }
      /return

   :End
          /keypress forward 
          /keypress back 

/return

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Thu Apr 29, 2004 3:00 pm

/delay 0? Why?

dok
a ghoul
a ghoul
Posts: 127
Joined: Mon Mar 15, 2004 3:38 pm

Post by dok » Thu Apr 29, 2004 3:09 pm

it used to be that if you didn't put the /delay 0 in there, the macro would eat up every bit of processing time it could reducing your fps. Putting the /delay 0 was kinda like putting "sleep 0" in that EQPlayNice does for EQ.

No idea if this is still the case with the lowest turbo setting being set to 20, etc.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Thu Apr 29, 2004 3:26 pm

It's no longer needed, hell you don't have to put a single /delay if you don't want to now, it runs great with the turbo fixes Lax made.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Thu Apr 29, 2004 3:41 pm

Too great in some places :) I had to change a counter from 5 to 100 to keep an obstacle avoidance routine from firing off continuously, and I'm still fine tuning that.

Way fast Lax, keep up the good work.

spektralkat
orc pawn
orc pawn
Posts: 22
Joined: Sat Dec 20, 2003 5:25 am

Post by spektralkat » Thu Apr 29, 2004 3:59 pm

ooops,,, old habits die hard i supose, guess thats where most of my trouble is coming from in my kiting macs as well, new code old code and my brain is mixxin it all up. Delay 0 is not needed but its a reliable fix for the follow mac that comes with mq2