Ok, what's wrong with this.

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

Moderator: MacroQuest Developers

kallell
decaying skeleton
decaying skeleton
Posts: 7
Joined: Mon Aug 18, 2003 11:00 am

Ok, what's wrong with this.

Post by kallell » Fri Jul 09, 2004 1:37 pm

Code: Select all

:autoequip 
/if (${Cursor.Name.Equal[Batwing]}) {
/itemnotify pack4 leftmouseup
} else  /if (${Cursor.ID}!=NULL) { 
    /notify COMBW_CombineArea COMBW_AutoInvButton leftmouseup 
    /delay 1s 


i want the batwing to go in slot 4, and any other item to be auto inventoried.

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Fri Jul 09, 2004 3:48 pm

Biggest problem you have is it is bat wing not batwing

Other than that... I would do it this way:

Code: Select all

:autoequip
/if (${Cursor.ID}) {
   /docommand ${If[${Cursor.Name.Equal[bat wing]},/itemnotify pack4 leftmouseup,/autoinv]}
}
You might need to think about a better way to put the bat wings in inventory though. /itemnotify will work as long as there are less than 20 bat wings in the slot, but once you get to 20... it's broken.

kallell
decaying skeleton
decaying skeleton
Posts: 7
Joined: Mon Aug 18, 2003 11:00 am

afd

Post by kallell » Sat Jul 10, 2004 2:36 am

hmm. kinda along same lines, but how would i do this:

What would the code look like to find an item in your inventory, then click on that item?

Digitalxero
a ghoul
a ghoul
Posts: 129
Joined: Tue Sep 10, 2002 5:01 pm

Post by Digitalxero » Sun Jul 11, 2004 7:21 am

something like

Code: Select all

/itemnotify ${FindItem[Your Clicky Item].InvSlot} rightmouseup
if the item is in a bag and the bag isnt open it wont click it