public XY getBankBooth() throws InterruptedException { //return findXYspiral(Areas.MINI_MAP, 50, 25, bank, 60, 60, 60); //TODO, CODE A MANUAL NONSPIRAL MOUSE SEARCH BACKUP METHOD IN CASE THIS FAILS RGBXY[] findbooth = findRGBXYs(getColorArray2d(), Areas.GAME,null, booth, 1000,5,5,5); // todo: setup an array of things to look for, if(findbooth.length == 0) { log("Couldnt find booth RGB, check tolerances/RGB values or bankicon was covered and you moved somewhere else"); returnvalue=null; return returnvalue; } //not sure if im allowed to conitnue from inside a function.. String stringtest; for(int i=0; i<findbooth.length; i++) { mouseMove(findbooth[i].x, findbooth[i].y,50); stringtest=getTopText(); sleep(200); //let the toptext actually get the ocr.. will try if(stringtest.contains("booth") /*|| stringtest.contains("Banker")*/) { returnvalue.x=findbooth[i].x; returnvalue.y=findbooth[i].y; return returnvalue; } else { if(i+20 < findbooth.length-1) { i = i + 20; } }//else }//for //didnt find any values, returning 00; return new XY(0,0); }