Page 1 of 1

Error when trying to run a macro.

Posted: Mon May 31, 2004 3:23 pm
by stigmata
I get the following message when i try to run a macro...
In Red...."Failed to parse /if command. Expected () around conditions.
In White..."follow.mac@4 (Main): if n $target (distance) > 60 sendkey down up
In Yellow..."Usage:/if (<conditions>) <command>

Not sure why the macro isnt working properly. I just pasted it into a text document and saved it as follow.mac and created it in the Release folder. I have tried to simply open the old macros that came with mq2 by double clicking and I get another error and they wont open to view. And when i right click in the release folder and select to create a new macroquest macro i get "Problem creating object. The system cannot find the file specified."
Any help is appreciated guys. :).

Posted: Mon May 31, 2004 3:24 pm
by stigmata
Bleh sorry for double post guys. I didnt see the first one on the forum when i clicked submit so I hit it twice.

Posted: Mon May 31, 2004 3:43 pm
by GD
You're using an old macro, that's why it's not working.

Posted: Mon May 31, 2004 3:43 pm
by gruefood
A couple of things first.

I would recommend lurking on the boards for a few days and read as much as you can.

Second, you're in the wrong forum. This one is for how to get MacroQuest running, not macros.

As far as the line you're having problems with:

Code: Select all

/if n $target (distance) > 60 sendkey down up 
There are so many things wrong with that its hard to begin.

"n" is not used any more. It was for numerical comparisons.
$target(distance) is gone.
sendkey is gone.
and the error message actually tells you that you need () around the comparison which wouldn't have helped much with it anyway.

You need to read the readme.chm that was in the download and then look at the examples in the macrodepot. The macros that came with your download are VERY out of date and really should just be deleted.

Good Luck.

GF