I get lots of junk on all my characters, and I want to write a macro that sells everything I have that is sellable in inventory, in the shortest amount of time possible, so all I have to do is get near a merchant and target them, and run the macro.
Of course this is very dangerous (could accidently sell that UberSword of slashing +100 mana item my warrior) so I would probably need an ini file to mark items I want to keep.
Which brings up the question of how to start a macro like this?
As far as I can see, the following tasks would need to be done.
1 read ini file into an array of some sort.
2 Open merchant trade window
3 Loop through all bags and check for no-drop status, then load inventory items that are not no-drop into an array (Ideal option would be to check and make sure the merchant price is greater than 0 but I'm completely clueless on how to do something like that)
4 Seperate array into stackable and nonstackable items, then sort array
5 Sell non-stackable items to merchant 1 at a time
6 Sell stacks to merchant.
7 Close merchant window.
Am I missing something here? Do I have any general concepts wrong?
What commands would I use to accomplish any of these steps? Do any code snippets already accomplish any or all of these tasks? If so where are they located at?
Thank you in advance for your help!


