buy food/drink mac?

zdozbou is correct, you can see it in buy.inc.


You could change it to use the stack size, instead of hardcoded to 20 max if stackable.


Current code:
Code:
:StackLoop 
   /if (${Math.Calc[${amount}-${FindItemCount[=${SelectedItem}]}]}<=20) /goto :RegLoop 
   /buyitem ${If[${SelectedItem.Stackable},20,1]} 
   /delay 5 
   /doevents 
   /goto :StackLoop


Suggest trying:
Code:
:StackLoop 
   /if (${Math.Calc[${amount}-${FindItemCount[=${SelectedItem}]}]}<=${SelectedItem.StackSize}) /goto :RegLoop 
   /buyitem ${If[${SelectedItem.Stackable},${SelectedItem.StackSize},1]} 
   /delay 5 
   /doevents 
   /goto :StackLoop


htw
 
Not what he wants. But, fair enough. However, in that case, if you are already clicking, why bother with cmd, and just shift buy.


htw
 
/notify MerchantWnd MW_ItemList listselect ${Window[MerchantWnd].Child[MW_ItemList].List[PUT NAME OF ITEM HERE,2]}


then do /buyitem 100


:)

I admit, I didn't read anything from the posts dated 2016 and prior Lulz.

Coding up a macro to buy food/water wouldn't be hard for me. Likely be easier than reviewing someone elses code, updating it to current available options, and then testing it for functionality etc.



If that is something desired that is.
 
Last edited: