Code: Select all
sub Purchase(Item,Qty,Merch)
/target @Merch
/face
/delay 10
/click right target
:buy
/delay 5
/selectitem "@Item" merchant
/delay 1s
/if "$selecteditem()"=="@Item" {
/sendkey down shift
/click left merchant buy
/delay 1s
/sendkey up shift
} else {
/goto :buy
}
/delay 20
/varadd Purchased 1
/if @Purchased<@Qty /goto :buy
/click left merchant doneIt'll highlight ( as in put a yellow square around ) the correct item ( a Water Flask for example ) but FOR SOME REASON even though the item is on the VENDOR, the button at the bottom says "SELL" instead of "BUY" Also, in the MQ debugging window it says the following
'Water Flask' Found in slot '-5997'
? any idea on what I might be doing wrong ?
-M


