//imports lol public class ColorSymbolWalker { public ColorSymbolWalker(ColorSkeltonScriptable c) { theColorScriptable = c; } public Rectangle findSymbol(short symbol[][][]) throws InterruptedException { MiniMapZone MMObjs = theColorScriptable.theMiniMap.getMMObjects(); impsoft.nexus.bots.color.structures.XY result = null; double accuracy = 1.0D; int tolerance = 15; while(result == null && accuracy > 0.69999999999999996D) { impsoft.nexus.bots.color.structures.XY match = ColorMapSearch.findColorMap(theColorScriptable.getColorMap(), symbol, MiniMapZone.BOUNDS, tolerance, accuracy, MMObjs.zone); if(match != null) return ColorMap.toRectangle(match, symbol); if(tolerance < 60) { tolerance += 5; } else { accuracy -= 0.10000000000000001D; tolerance = 30; } theColorScriptable.debug((new StringBuilder("findSymbol() accuracy=")).append(accuracy).append(" tolerance=").append(tolerance).toString()); } return null; } public final boolean walkToSymbol(short symbol[][][]) throws InterruptedException { Rectangle rec; if((rec = findSymbol(symbol)) != null) { theColorScriptable.theWalker.walkTo(rec); return true; } else { return false; } } // bitmaps here