Inventory

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

Moderator: MacroQuest Developers

zizak51
orc pawn
orc pawn
Posts: 28
Joined: Thu Nov 26, 2009 1:53 pm

Inventory

Post by zizak51 » Sun Oct 14, 2012 3:53 pm

Hey guys. Can anyone point me to (or write) a code snippet that will do the following:

- Loop through all the items in my bags and return the name and vendor value of each item
- Move an item that matches a name to cursor and delete it (or a stack of it)

Using /itemnotify, ${FindItem[]} and InvSlot[] i have managed to crash my EQ client going on 10 times now, so i'm admitting defeat on this one.

-Ziz

Maskoi

Re: Inventory

Post by Maskoi » Sun Oct 14, 2012 4:44 pm

Look at Inventory.mac in your macro folder, comes with mq2, for how to loop through bags.

Look at my updated bazaar.mac on how to get the vendor price of stuff.

Oh ya forgot I yanked out the mentioned code for someone else a few weeks back.
viewtopic.php?p=159561#p159561

zizak51
orc pawn
orc pawn
Posts: 28
Joined: Thu Nov 26, 2009 1:53 pm

Re: Inventory

Post by zizak51 » Sun Oct 14, 2012 5:31 pm

Thanks! Wow i feel dumb.. any idea how to delete items on cursor?

zizak51
orc pawn
orc pawn
Posts: 28
Joined: Thu Nov 26, 2009 1:53 pm

Re: Inventory

Post by zizak51 » Sun Oct 14, 2012 5:40 pm

Nevermind. /destroy

zizak51
orc pawn
orc pawn
Posts: 28
Joined: Thu Nov 26, 2009 1:53 pm

Re: Inventory

Post by zizak51 » Sun Oct 14, 2012 5:48 pm

Still can't figure out how to pick up a stack of items.

dewey2461
Contributing Member
Contributing Member
Posts: 1759
Joined: Sun Apr 17, 2005 1:53 am

Re: Inventory

Post by dewey2461 » Sun Oct 14, 2012 6:09 pm

To pick up a stack you need to send a modified item click command. Search the forums for /itemnotify and you'll find examples.