This macro will allow you to start automatically collecting loot from mobs, selling and returning to the place, with an infinite cycle.
Download the program (Download) and go to the macro editor
press the button «Open file»
and select the downloaded file
assign a macro to a key and run the program