Newbie question about routines.mac

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

sisyphus
decaying skeleton
decaying skeleton
Posts: 1
Joined: Tue Nov 05, 2002 12:53 pm

Newbie question about routines.mac

Post by sisyphus » Tue Nov 05, 2002 1:04 pm

I was reading routines.mac and ran across somehting odd...

Code: Select all

 /delay $rand(3) 
This appears in the BuyItems, SellItems, GotoLoc and GotoTarg subroutrines.

I can understand the need for delays, but random delays?

Is this an attempt to hide MQ by using random delays?
Keep pushin that rock.

Ghost
decaying skeleton
decaying skeleton
Posts: 2
Joined: Fri Jan 03, 2003 7:30 pm

Post by Ghost » Fri Jan 03, 2003 7:44 pm

My guess would be yes it is an attempt to hide the use of a macro. I haven't made any macros yet, but after reading SO MANY posts and warnings associated with em, I plan on using random delays.

Also, I think that using delays that allow at least a fifth of a sec between commands might help. I can't see someone being so mouse proficient that they can accomplish more than 5 actions/sec.

But I know nothing bout MQ still.

However I am pluggin away at this forum... Must......read....more..........posts... :shock:
Aw, bullocks!! What the bloody hell are you lookn' at?! I got a gnomish percy for yer mum, bleedin' wank!! Now shove off, the lot of ya!!!

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

Re: Newbie question about routines.mac

Post by SingleServing » Sat Jan 04, 2003 12:46 am

sisyphus wrote:I was reading routines.mac and ran across somehting odd...

Code: Select all

 /delay $rand(3) 
This appears in the BuyItems, SellItems, GotoLoc and GotoTarg subroutrines.

I can understand the need for delays, but random delays?

Is this an attempt to hide MQ by using random delays?
Yes but I have found some bugs with random applications

ie. The use of it in the #routines gotoloc command has a random accuracy
when that number is extremly small it causes the character to run in circles attempting to reach that exact location. So if you do plan on doing something like this do something like 2+$rand(3) to make sure you don't get crazy things happening =)

You can imagine how funny it looks watching a char run in circles like the ingame autofollow command and how it fucks up so often...
[color=DarkBlue]Everything,[/color] [color=DarkBlue][b]is[/b][/color] [color=black]black[/color] [color=DarkBlue]and[/color] [color=white]white[/color][color=DarkBlue], when you zoom out it looks[/color] [color=gray]grey[/color][color=DarkBlue].[/color]

Ghost
decaying skeleton
decaying skeleton
Posts: 2
Joined: Fri Jan 03, 2003 7:30 pm

Post by Ghost » Sat Jan 04, 2003 4:12 am

Wow. Ok, that makes sense. Thanks for the info Single! :)
Aw, bullocks!! What the bloody hell are you lookn' at?! I got a gnomish percy for yer mum, bleedin' wank!! Now shove off, the lot of ya!!!

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Sat Jan 04, 2003 6:07 am

Salutations,
I never use routines.mac, I just write them myself as I go...

Code: Select all

sub gotoloc
  /varset l0 $rand(3)+2
  :gotolocloop
    /face loc $p0
    /delay 0
    /if n $distance($p0)>$p0 /goto :gotolocloop
 /return