Help with Arrow macro

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

kbrock
decaying skeleton
decaying skeleton
Posts: 1
Joined: Mon Apr 19, 2004 9:51 pm

Help with Arrow macro

Post by kbrock » Mon Apr 19, 2004 9:55 pm

Hi, I created a little macro so I would not get Carpel tunnel as a ranger and now it doesnt work. It used to work just fine. When I cleared the target window it would end. Archaic but simple and effective. Now the macro will not end no matter what I do. Please help me find a way to shoot arrows and talk with group. Here is what I have

| - Forage.mac -
|
#turbo

Sub Main
:Arrow
/keypress 7
/Delay 1
/if "$target()"=="FALSE" /endmacro
/goto :Arrow

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Mon Apr 19, 2004 10:06 pm

1) Use code brackets for posting code
2) I'm thinking you missed the hundred plus announcements that the handling of params has changed. Welcome Phase 2 as Lax loves to say.
3) Cause I need the practice here is one way of doing it:

Code: Select all

/newif ${Target.Name.Equal["NULL"]} /endmacro
4) Get rid of #Turbo

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Mon Apr 19, 2004 10:33 pm

That /newif example will never work because if the Name is NULL, the Equal will never hit. Therefore the result will always be NULL ;)

Code: Select all

/newif !${Target.ID} /endmacro
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Tue Apr 20, 2004 3:01 am

8)

So much to learn in just one day. Might explain a few gliches in my forage subs. :lol: