I call it sell.mac
Code:
Sub Main
/if (${Defined[Param0]}) {
/declare item1 string outer ${Param0}
} else {
/echo Syntax: /mac sell "<Name of Item to sell>
/echo This will sell all items matching name in your bags to which ever merchant you have open.
/call Done
}
/if (!${Merchant.Open}) {
/echo You must target and open a merchant before running this command
/call Done
}
:main
/if (${item1.NotEqual[NULL]}) {
/nomodkey /itemnotify #${FindItem["=${item1}"].ID} leftmouseup
/delay 5 ${Cursor.ID}
/nomodkey /shiftkey /notify merchantwnd MW_Sell_Button leftmouseup
/delay 5 !${Cursor.ID}
/if (!${FindItemCount[=${item1}]}) /multiline ; /echo Out of ${item1}; /call Done
/delay 2
}
/goto :main
Sub Done
/beep
/beep
/beep
/mac end
/return
Last edited:

