All pastes #424455 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-04-04 20:12 UTC
rendered paste body
import impsoft.nexus.bots.color.methods.ColorScript;
import impsoft.nexus.bots.color.scriptobjects.RGB;
import impsoft.nexus.bots.color.scriptobjects.RGBCluster;

public class QuickCutter extends ColorScript {
	@Override
	public boolean doStart(String arg0, String[] arg1)
			throws InterruptedException {
		return true;
	}

	@Override
	public void script() throws InterruptedException {
		while (true) {
			RGBCluster tree = new RGBCluster(new RGB[] { new RGB(112, 128, 34),
					new RGB(144, 160, 101), new RGB(144, 160, 86) }, this);
			tree.gatherNewPoints(5);
			tree.removeRedundantPoints(10);
			tree.doTopTextAndMenuOnMoving("Chop", "Chop");
			if(inventoryCount()==28) {
				doActionAtInventory("Logs", "Drop", 28);
			}
		}
	}

}