Tradeskiller
Posted: Thu Jul 30, 2015 2:13 pm
I'm trying to make a tradeskiller that will work in the experimental mode, ie, when you only have the container and the Combine button available but not the tradeskill window.
I got the main pieces in place...using /itemnotify to pick up and drop off the ingredients, and /combine to push the combine button.
What I am weak on is making a loop that I have control of. I want to be able to manually stop the loop and to have the loop automatically stop when an ingredient stack gets used up. Or perhaps simply a way to input the number of cycles that I want the loop to perform and then have the loop count those cycles.
It does not matter to me if I have change the code every time I want to change cycles. The macro I made already requires code changing for every recipe since I don't know how to insert variables into commands, nor do I know how to tell the code to "put the next ingredient into the next available combiner slot". Instead, I look at the recipie and add however many /itemnotify's I need, and change their bag/slot numbers to whatever they need to be.
I got the main pieces in place...using /itemnotify to pick up and drop off the ingredients, and /combine to push the combine button.
What I am weak on is making a loop that I have control of. I want to be able to manually stop the loop and to have the loop automatically stop when an ingredient stack gets used up. Or perhaps simply a way to input the number of cycles that I want the loop to perform and then have the loop count those cycles.
It does not matter to me if I have change the code every time I want to change cycles. The macro I made already requires code changing for every recipe since I don't know how to insert variables into commands, nor do I know how to tell the code to "put the next ingredient into the next available combiner slot". Instead, I look at the recipie and add however many /itemnotify's I need, and change their bag/slot numbers to whatever they need to be.