Error when trying to run a macro.

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

Moderator: MacroQuest Developers

stigmata
orc pawn
orc pawn
Posts: 13
Joined: Fri May 28, 2004 6:46 pm

Error when trying to run a macro.

Post by stigmata » Mon May 31, 2004 3:23 pm

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. :).

stigmata
orc pawn
orc pawn
Posts: 13
Joined: Fri May 28, 2004 6:46 pm

Post by stigmata » Mon May 31, 2004 3:24 pm

Bleh sorry for double post guys. I didnt see the first one on the forum when i clicked submit so I hit it twice.

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

Post by GD » Mon May 31, 2004 3:43 pm

You're using an old macro, that's why it's not working.
Opinions are like assholes, everyone has one, but most of them stink.

gruefood
a lesser mummy
a lesser mummy
Posts: 30
Joined: Sat Mar 27, 2004 6:31 pm

Post by gruefood » Mon May 31, 2004 3:43 pm

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