rendered paste bodyimport impsoft.nexus.bots.color.constants.Info;import impsoft.nexus.bots.color.methods.ColorScript;import impsoft.nexus.bots.color.scriptobjects.RGBCluster;import impsoft.nexus.bots.color.scriptobjects.RGB;import impsoft.nexus.bots.color.constants.*;import impsoft.nexus.bots.color.methods.*;import impsoft.nexus.bots.color.scriptobjects.RGBClusters.*;import impsoft.nexus.bots.reflection.scriptobjects.walking.*;import impsoft.nexus.bots.color.scriptobjects.*;import java.awt.*;public class lumbyflaxspinner extends ColorScript{ public static double version = 1.0; public static String[] commands = new String[] {""}; public String author = "Beezkneez"; public String description = "Lumby Flaxer Spinner v1.0"; private BankBooth lumbyBank; private RGB BankBoothCloseButton; //Declare tiles and paths. AryanTile Lumby_Bank = new AryanTile(3208, 3220, 1, this); AryanTile Bank_Stairs = new AryanTile(3205, 3209, 4, this); AryanTile Flax_Room = new AryanTile(3209, 3213, 3, this); AryanTile Flax_Stairs = new AryanTile(3205, 3209, 1, this); AryanPath bank = new AryanPath(new AryanTile[] {Lumby_Bank, Bank_Stairs}, this); private int randomClick(int start, int range) { if (random(0,1) == 0) // negative return start + random(-range, 0); return start + random(range, 0); } private long rsleep(int min, int max) throws InterruptedException { long time = random(min, max); sleep(time); return time; } public boolean doStart(String cmd, String[] args) throws InterruptedException { lumbyBank = new BankBooth(new RGB[] {new RGB(119, 92, 56)}, this); return true; } public void script() throws InterruptedException { log("Starting Flax Spinner..."); setTab(Info.TAB_INVENTORY); WithdrawFlax();try { while(true) { if(inventoryCount() < 1){ WithdrawFlax(); sleep(3000); bank.walkToEndTile(); RGBCluster bankStairs = new RGBCluster(new RGB[]{new RGB(80, 54, 8)}, this); bankStairs.gatherNewPoints(20); bankStairs.doTopTextAndMenu("Staircase", "down"); Flax_Room.walkTo(); RGBCluster spinner = new RGBCluster(new RGB[]{new RGB(122, 83, 12)}, this); spinner.gatherNewPoints(20); spinner.doTopTextAndMenu("Spinning", "wheal"); rsleep(100,1000); mouseClickLeft(randomClick(260, 3), randomClick(127,3)); spinner.doTopTextAndMenu("Make", "Make X"); SendKey(2,8); rsleep (400, 1500); Flax_Stairs.walkTo(); RGBCluster spinnerStairs = new RGBCluster(new RGB[]{new RGB(74, 50, 8)}, this); spinnerStairs.gatherNewPoints(20); spinnerStairs.doTopTextAndMenu("Staircase", "climb-up"); rsleep(1000,2000); bank.walkToStartTile(); DepositAndWithdraw(); }else{ DepositAndWithdraw(); sleep(3000); bank.walkToEndTile(); RGBCluster bankStairs = new RGBCluster(new RGB[]{new RGB(80, 54, 8)}, this); bankStairs.gatherNewPoints(20); bankStairs.doTopTextAndMenu("Staircase", "down"); Flax_Room.walkTo(); RGBCluster spinner = new RGBCluster(new RGB[]{new RGB(122, 83, 12)}, this); spinner.gatherNewPoints(20); spinner.doTopTextAndMenu("Spinning", "wheal"); rsleep(100,1000); mouseClickLeft(randomClick(260, 3), randomClick(127,3)); spinner.doTopTextAndMenu("Make", "Make X"); SendKey(2,8); rsleep (400, 1500); Flax_Stairs.walkTo(); RGBCluster spinnerStairs = new RGBCluster(new RGB[]{new RGB(74, 50, 8)}, this); spinnerStairs.gatherNewPoints(20); spinnerStairs.doTopTextAndMenu("Staircase", "climb-up"); rsleep(1000,2000); bank.walkToStartTile(); } }} catch (InterruptedException iex) { } } private void WithdrawFlax() throws InterruptedException { log("Withdrawing flax from bank."); lumbyBank.openBankInterface(); if(isShopInterfaceIsUp() == true) { rsleep (400, 1500); RGBCluster flax = new RGBCluster(new RGB[]{new RGB(9, 77, 9)}, this); flax.gatherNewPoints(20); flax.doTopTextAndMenu("Flax", "Withdraw All"); }else{ WithdrawFlax(); } if(getTopText().contains("Flax")) { log("Withdrawing..."); } else { log("You have no more flax. Turning off iBot."); shutDown(); } sleep(random(1, 100)); mouseClickRight(currentMouseXY()); sleep(random(200, 1000)); getMenu(Areas.GAME, 2000).selectContains("ll"); sleep(random(200, 1000)); log("Closing bank."); lumbyBank.closeBankInterface(); CloseBankInterface(); } private void StoreStrings() throws InterruptedException { log("Storing Completed Bow Strings."); lumbyBank.openBankDepositAllBut(new String[] {""}); rsleep(500, 1000); CloseBankInterface(); } private void CloseBankInterface() throws InterruptedException { if(getRGB(484, 38).r == BankBoothCloseButton.r) { log("Bank booth is open, closing."); lumbyBank.closeBankInterface(); rsleep(1000, 3000); } else { log("Bank booth is already closed."); } } private RGB GetBankCloseButtonColour() throws InterruptedException { return getRGB(484, 38); } private void DepositAndWithdraw() throws InterruptedException { StoreStrings(); WithdrawFlax(); } }