Any good merchant bull/sey macros out there?

Macro requests from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

Zorg
a lesser mummy
a lesser mummy
Posts: 44
Joined: Fri Oct 18, 2002 7:01 pm

Any good merchant bull/sey macros out there?

Post by Zorg » Tue Oct 29, 2002 1:23 am

Currently, I'm using a bit of code consisting of a finditem, and an /if statement to sell the item if the result isn't null. The problem is, and I'm not sure if this is due to lag or my bad coding, that not all the arrows always get sold. So /finditem(foo) is returning null when there are still foo in my inventory. My buy macro is also similiarly simple, looping through a series of /merchant find and /click left merchant buy commands, incrementing a variable so I can buy X sets of ingredients. But once again, I seem to occasionally skip one or two. I've tried adding lengthy delays throughout, but the problem perseveres. If I let it run, the mismatched ingredient amounts fill up my bags and kill the macro.

I've tossed together a rather kludgy fix by selling back all the ingredients that were left unused due to this problem every round, but that hurts my skill-up rate.

I was thinking of using variables to keep track of the various quantities of items bought. How can I iterate through my inventory and total up the items with a given name? Finditem seems to just select the same one every time?

Does anyone else have a really good merchant buy or sell macro they could post, so I could try to figure out where mine is going wrong and where to improve it?

User avatar
Madman
a ghoul
a ghoul
Posts: 144
Joined: Wed Jun 26, 2002 4:16 pm

Post by Madman » Tue Oct 29, 2002 6:49 am

look in macros folder and find sellitem.mac works like a charm

gingertips
a hill giant
a hill giant
Posts: 230
Joined: Wed Jun 26, 2002 3:47 am
Location: Tseu-Qorcam

Post by gingertips » Tue Oct 29, 2002 7:32 am

/sell itemname

(obviously make sure that in your ini file u set /sell to point to the sellitem.mac)

yes it works a treat!
Make backups of your personal data - dont rely on external drives alone - make regular backups to reliable media. take it from someone who knows...

gingertips
a hill giant
a hill giant
Posts: 230
Joined: Wed Jun 26, 2002 3:47 am
Location: Tseu-Qorcam

Post by gingertips » Tue Oct 29, 2002 7:34 am

AND FFS - DONT FORGET THAT IT WILL USE "FIND SIMILAR", SO USE WITH CAUTION - MAKE SURE U DONT HAVE ITEMS IN YOUR INVENT THAT WILL GET SOLD ALONGWITH THE ONES YOU WANT TO SELL!!!
Make backups of your personal data - dont rely on external drives alone - make regular backups to reliable media. take it from someone who knows...

drastic ape
a lesser mummy
a lesser mummy
Posts: 30
Joined: Fri Aug 23, 2002 4:43 am

Post by drastic ape » Tue Oct 29, 2002 8:10 am

Theres a sell.mac or sellitem.mac in the macro folder that comes with MQ. Works pretty good and won't sell similarly named items. It works kinda goofy... you have to hold the item your selling on your cursor and then run the macro... by entering /macro sell.mac "crystalline silk mask" for example. Just stand in front of the merchant you want to sell to. It hasn't sold back anything it wasn't supposed to for me, like my leftover swatches or mask patterns.