rendered paste bodyimport impsoft.ibot.Areas;import impsoft.ibot.Areas;import impsoft.ibot.Info;import impsoft.ibot.methods.RGB;import impsoft.ibot.methods.Script;import impsoft.ibot.methods.XY;import java.awt.Rectangle; public class Bank extends Script { private RGB bankSymbol = new RGB(244, 218, 93); private RGB bankBooth = new RGB(144, 127, 96); private XY matches; public static double version = 2.1; public static String[] commands = new String[] { "none" }; public String author = "rikioh/madman"; public String description = "checks for bank"; private final Rectangle MINI_MAP = new Rectangle(542, 0, 181, 160); public boolean doStart(String cmd, String[] args) { isBankOnMap(); while(!isBankVisible()) { try { sleep(20); }catch(Exception e) { log("" + e); } } return false; } private boolean isBankOnMap() { matches = findXYspiral(MINI_MAP, 50, 25, bankSymbol, 60, 60, 60); if(matches != null){ log("Symbol Found!"); mouseMove(matches.x, matches.y); mouseClickLeft(matches.x, matches.y); return true; } return false; } private boolean isBankVisible() { matches = findXYspiral(Areas.GAME, 50, 25, bankBooth, 0, 0, 0); if(matches != null){ mouseMove(matches.x, matches.y);} int currentMouseX = currentMouseX(); int currentMouseY = currentMouseY(); if (getTopText().indexOf("Bank") != -1) { mouseClickRight(currentMouseX, currentMouseY); log("Bank Found!"); return true; } return false; }}