Page 1 of 1

a buy macro

Posted: Tue Jul 13, 2004 5:09 pm
by hendrix04
I was wondering if someone could write a buy macro? where say the file was called buy.mac you could go to a vender, click the item you wanted, and type like /macro buy 20 and it would buy a stack of the item... Is it possible?

Posted: Tue Jul 13, 2004 6:10 pm
by missingfiles
/buyitem #
Buys # of the items selected in the merchant inventory. For non-stackable items, 1 must be used. For stackable items, range is 1 to 20.

/macro buy 20 5 <-- Would buy you 5 stacks of 20 of the item you have selected.

buy.mac

Code: Select all

Sub Main 

/declare Buy int outer 0 
/declare Amount int outer 
/declare Stack int outer 

/varset Amount ${Param0} 
/varset Stack ${Param1}

:Again

/buyitem Amount
/varcalc buy ${buy}+1 
if buy == Stack {
/end macro
{

/goto :Again
/return
I think that will work if not hopefully someone will correct me.

Posted: Tue Jul 13, 2004 7:07 pm
by hendrix04
thx, i will give it a try a little later ;)