Page 1 of 1

first macro problems: confused

Posted: Sat Jan 15, 2005 5:45 pm
by hekl
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

Posted: Sat Jan 15, 2005 6:03 pm
by Lax
Yes, the problem is that MQ2Data is case sensitive, so this is the fix:
/if (${Cursor.Name.Equal[Honey Berry]}) /autoinventory

Posted: Sat Jan 15, 2005 6:05 pm
by hekl
ahhh thanks, i knew it had to be something stupid i did
/bonks self

Re: first macro problems: confused

Posted: Sat Jan 03, 2026 8:14 pm
by xyilla

Re: first macro problems: confused

Posted: Sat Jan 03, 2026 8:15 pm
by xyilla

Re: first macro problems: confused

Posted: Sat Jan 03, 2026 8:16 pm
by xyilla

Re: first macro problems: confused

Posted: Sat Jan 03, 2026 8:19 pm
by xyilla

Re: first macro problems: confused

Posted: Sat Jan 03, 2026 8:20 pm
by xyilla

Re: first macro problems: confused

Posted: Sat Jan 03, 2026 8:21 pm
by xyilla

Re: first macro problems: confused

Posted: Sat Jan 03, 2026 8:22 pm
by xyilla

Re: first macro problems: confused

Posted: Sat Jan 03, 2026 8:23 pm
by xyilla