first macro problems: confused

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

hekl
decaying skeleton
decaying skeleton
Posts: 2
Joined: Sat Jan 15, 2005 5:32 pm

first macro problems: confused

Post by hekl » Sat Jan 15, 2005 5:45 pm

greetings all, this is my first attempyt at a simple macro useing parts from others "

Code: Select all

sub Main 
    /cleanup 
    :Forage 
    /starting forage loop 
    /delay 9s 
    /doability forage 
    /echo foraging  
    /if (${Cursor.ID}) /call ItemSort 
/goto :Forage 
   
sub ItemSort 
    /delay 5 
    /echo in itemsort
    /if (${Cursor.Name.equal[Honey Berry]}) /autoinventory
    /destroy 
    /echo returning
    /return 
the error im getting is:

forage.mac@16 (itemsort):/if (${Cursor.Name.equal[Honey Berry]}) /autoinventory
forage.mac@10(main):/if (${Cursor.ID}) /call ItemSort

im wondering if i made a mistake in the syntax? any help would be appreciated, thanks in advance

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 » Sat Jan 15, 2005 6:03 pm

Yes, the problem is that MQ2Data is case sensitive, so this is the fix:
/if (${Cursor.Name.Equal[Honey Berry]}) /autoinventory
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

hekl
decaying skeleton
decaying skeleton
Posts: 2
Joined: Sat Jan 15, 2005 5:32 pm

Post by hekl » Sat Jan 15, 2005 6:05 pm

ahhh thanks, i knew it had to be something stupid i did
/bonks self