rendered paste bodyimport java.awt.*;import java.awt.Graphics;import impsoft.nexus.bots.color.scriptable.*;import impsoft.nexus.bots.color.ColorBot;import impsoft.nexus.bots.color.scriptable.interfaces.AutoPaint;import impsoft.nexus.bots.color.scriptable.objects.EdgeRGBCluster;import impsoft.nexus.bots.color.structures.RGB;import impsoft.nexus.bots.reflection.objects.AryanPath;import impsoft.nexus.bots.reflection.structures.AryanTile;import impsoft.nexus.bots.color.util.*;//by bbSoftpublic class bbFightCavesPro extends ColorScript implements AutoPaint { // info about bbSoft public static String[] commands = new String[] { "Caves" }; public static String author = "bbSoft"; public static String description = "fights in the caves till it dies and than again :)"; public static double version = 1.2; // paths and other tiles: AryanTile[] DeadToBankPath = new AryanTile[] { new AryanTile(3222, 3218), new AryanTile(3234, 3219), new AryanTile(3220, 3240), new AryanTile(3159, 3234), new AryanTile(3110, 3223), new AryanTile(3098, 3236), new AryanTile(3098, 3248), new AryanTile(3092, 3248), new AryanTile(3093, 3243) }; AryanTile[] BankToSailorPath = new AryanTile[] { new AryanTile(3092, 3243), new AryanTile(3092, 3249), new AryanTile(3084, 3249), new AryanTile(3081, 3254), new AryanTile(3080, 3264), new AryanTile(3072, 3265), new AryanTile(3071, 3278), new AryanTile(3066, 3277), new AryanTile(3035, 3248), new AryanTile(3028, 3232), new AryanTile(3027, 3219) }; AryanTile[] BoatToCavesPath = new AryanTile[] { new AryanTile(2951, 3146), new AryanTile(2936, 3146), new AryanTile(2923, 3151), new AryanTile(2908, 3152), new AryanTile(2899, 3156), new AryanTile(2890, 3154), new AryanTile(2856, 3168) }; AryanTile[] ToFightCavesPath = new AryanTile[] { new AryanTile(2480, 5175), new AryanTile(2465, 5169), new AryanTile(2438, 5169) }; AryanTile[] Cave2P = new AryanTile[] { new AryanTile(2862, 9572) }; AryanTile[] BankTile2 = new AryanTile[] { new AryanTile(2446, 5178) }; AryanPath DeadToBank = new AryanPath(DeadToBankPath, this); AryanPath BankToSailor = new AryanPath(BankToSailorPath, this); AryanPath BoatToCaves = new AryanPath(BoatToCavesPath, this); AryanPath ToFightCaves = new AryanPath(ToFightCavesPath, this); AryanPath Cavewalk1 = new AryanPath(Cave2P, this); AryanPath Cavewalk2 = new AryanPath(ToFightCavesPath, this); AryanPath BankTile = new AryanPath(BankTile2, this); AryanTile deathTile = new AryanTile(3222, 3217); AryanTile notincave = new AryanTile(2439, 5168); AryanTile BoatTile = new AryanTile(2956, 3143); AryanTile OffBoatTile = new AryanTile(2956, 3146); AryanTile Cave1 = new AryanTile(2856, 9567); AryanTile Cave2 = new AryanTile(2862, 9572); AryanTile Cave3 = new AryanTile(2480, 5175); AryanTile startlok; AryanTile Tolok; RGB[] CC = new RGB[] { new RGB(107, 99, 99) }; EdgeRGBCluster CaveCol = new EdgeRGBCluster(CC, this); RGB[] RC1 = new RGB[] { new RGB(127, 118, 118) }; EdgeRGBCluster Rocks1 = new EdgeRGBCluster(RC1, this); RGB[] PC = new RGB[] { new RGB(44, 35, 20), new RGB(55, 43, 26), new RGB(101, 77, 45) }; EdgeRGBCluster Plank = new EdgeRGBCluster(PC, this); RGB[] RC2 = new RGB[] { new RGB(58, 16, 0) }; EdgeRGBCluster Rocks2 = new EdgeRGBCluster(RC2, this); RGB[] SC = new RGB[] { new RGB(82, 83, 177) }; EdgeRGBCluster Seaman = new EdgeRGBCluster(SC, this); RGB[] BG = new RGB[] { new RGB(238, 104, 28) }; EdgeRGBCluster Bankguy = new EdgeRGBCluster(BG, this); RGB[] LC = new RGB[] { new RGB(253, 231, 174) }; EdgeRGBCluster LavaCol = new EdgeRGBCluster(LC, this); // rectangles for fightmodes Rectangle Mode1 = new Rectangle(578, 254, 50, 25);// fightmode1 Rectangle Mode2 = new Rectangle(663, 254, 50, 25);// fightmode2 Rectangle Mode3 = new Rectangle(577, 307, 50, 25);// fightmode3 Rectangle Mode4 = new Rectangle(662, 308, 50, 25);// fightmode4 Rectangle chatshit = new Rectangle(224, 391, 50, 7); // int's int FightModess = 1; int randominfight; int notinfight; int wentin; int ammountoftimes; int howmanytimes; int Cx; int Cy; int Rx; int Ry; int startloky; int startlokx; int YYR; int XXR; int fuckit; int gobank; int timetobank; // timers Timer startTime = new Timer(0L); Timer statTimer; // strings String ATTACKMODE; String fModeArg; public bbFightCavesPro(ColorBot colorbot, String cmd, String args[]) { super(colorbot); boolean argError = false; if (args.length < 2) { log("Usage: fightMode (ATT STR or DEF),howmanytimes"); argError = true; } else { log("<3 bbSoft <3 Beezkneez - Baby - Madman <3 bbSoft <3"); fModeArg = args[0]; howmanytimes = Integer.parseInt(args[1]); } } public void script() throws InterruptedException { if (fModeArg.equalsIgnoreCase("att") || fModeArg.equalsIgnoreCase("atttack")) { FightModess = 1; } else if (fModeArg.equalsIgnoreCase("str") || fModeArg.equalsIgnoreCase("strength")) { FightModess = 2; } else if (fModeArg.equalsIgnoreCase("def") || fModeArg.equalsIgnoreCase("defence")) { FightModess = 3; } else if (fModeArg.equalsIgnoreCase("wdef") || fModeArg.equalsIgnoreCase("wipedefence")) { FightModess = 4; } else { log("Please put either ATT STR or DEF in the args box."); return; } while (true) { stopRandom("AxeAttacher"); log("we dont need an axe attacher..."); while (Alive() == true) { if (howmanytimes < wentin) { log("done all put in runs ! :D"); shutDown(); } setFightMode(); enterCaves(); theTabs.Options.setRun(true); fight(); theTabs.Options.setRun(false); timetobank++; gobank = random(7, 13); if (timetobank > gobank) { log("time to bank..."); gaybank(); timetobank = 0; } } } } public void fight() throws InterruptedException { while (notincave.distanceTo(getLocation()) > 20) { randominfight = random(7, 15); Randomshit(); if (!theHPBars.failSafeInCombat()) { notinfight++; } if (theHPBars.failSafeInCombat()) { notinfight = 0; } sleep(3000); while (notinfight > randominfight && notincave.distanceTo(getLocation()) > 20) { walksomewhere(); notinfight = 0; } } } public void Randomshit() throws InterruptedException { int RandomShit = random(1, 500); if (RandomShit >= 1 && RandomShit <= 5) { theCompass.setNorth(); sleep(random(1500, 2500)); } if (RandomShit > 5 && RandomShit <= 10) { theCompass.setWest(); sleep(random(1500, 2500)); } if (RandomShit > 10 && RandomShit <= 15) { theCompass.setSouth(); sleep(random(1500, 2500)); } if (RandomShit > 15 && RandomShit <= 20) { theCompass.setEast(); sleep(random(1500, 2500)); } if (RandomShit > 20 && RandomShit <= 25) { theTabs.Controls.setSelected(); sleep(random(1500, 2500)); } if (RandomShit > 25 && RandomShit <= 30) { theTabs.Equipment.setSelected(); sleep(random(1500, 2500)); } if (RandomShit > 30 && RandomShit <= 35) { theTabs.Friends.setSelected(); sleep(random(1500, 2500)); } if (RandomShit > 40 && RandomShit <= 45) { theTabs.Logout.setSelected(); sleep(random(1500, 2500)); } if (RandomShit > 45 && RandomShit <= 50) { theTabs.Magic.setSelected(); sleep(random(1500, 2500)); } if (RandomShit > 50 && RandomShit <= 55) { theTabs.Options.setSelected(); sleep(random(1500, 2500)); } if (RandomShit > 55 && RandomShit <= 60) { theTabs.Prayer.setSelected(); sleep(random(1500, 2500)); } if (RandomShit > 60 && RandomShit <= 65) { theTabs.Quest.setSelected(); sleep(random(1500, 2500)); } if (RandomShit > 65 && RandomShit <= 70) { theTabs.Statistics.setSelected(); sleep(random(1500, 2500)); } if (RandomShit > 70 && RandomShit <= 500) { sleep(random(3000, 4500)); } } public boolean Alive() throws InterruptedException { if (deathTile.distanceTo(getLocation()) > 25) { return true; } else { log("OMGOZORZ WE ARE DEAD!! deadwalk pl0x??"); sleep(3000); walkback(); return false; } } public boolean compareit() throws InterruptedException { if (FightModess == 1) { theTabs.Attack.setSelected(); sleep(50); return Pixel.compare(theClientScreen.getRGB(587, 252), new RGB(160, 39, 36), 55); } if (FightModess == 2) { theTabs.Attack.setSelected(); sleep(50); return Pixel.compare(theClientScreen.getRGB(672, 252), new RGB(160, 39, 36), 55); } if (FightModess == 3) { theTabs.Attack.setSelected(); sleep(50); return Pixel.compare(theClientScreen.getRGB(667, 305), new RGB(160, 39, 36), 55); } if (FightModess == 4) { theTabs.Attack.setSelected(); sleep(50); return Pixel.compare(theClientScreen.getRGB(594, 305), new RGB(160, 39, 36), 55); } return true; } public void setFightMode() throws InterruptedException { if (FightModess == 1) { while (compareit() == false) { mouseClickLeft(Mode1); compareit(); log("rechecked the fightmode and set to Attack"); ATTACKMODE = "Attack"; } } if (FightModess == 2) { while (compareit() == false) { theTabs.Attack.setSelected(); mouseClickLeft(Mode2); compareit(); log("rechecked the fightmode and set to Stength"); ATTACKMODE = "Stength"; } } if (FightModess == 3) { while (compareit() == false) { mouseClickLeft(Mode4); compareit(); log("rechecked the fightmode and set to Defense"); ATTACKMODE = "Defense"; } } if (FightModess == 4) { while (compareit() == false) { mouseClickLeft(Mode3); compareit(); log("rechecked the fightmode and set to wipe Defense"); ATTACKMODE = "Defense"; } } } public void walktoenter() throws InterruptedException { Cx = random(2436, 2439); Cy = random(5169, 5172); AryanTile[] CE = new AryanTile[] { new AryanTile(Cx, Cy) }; AryanPath CaveEnt = new AryanPath(CE, this); if (notincave.distanceTo(getLocation()) < 20) { CaveEnt.walkToStart(); sleep(3000); log("walked"); } } public void getstartlok() throws InterruptedException { sleep(8000); startlok = getLocation(); startlokx = getLocation().x; startloky = getLocation().y; fuckit = 0; if (fuckit == 0) { YYR = startloky - random(0, 0); XXR = startlokx - random(0, 0); fuckit = 1; } if (fuckit == 1) { YYR = startloky - random(10, 15); XXR = startlokx - random(0, 0); fuckit = 2; } if (fuckit == 2) { XXR = startloky - random(10, 15); YYR = startlokx - random(0, 0); fuckit = 0; } log("midle location is: " + startlok + " got as x: " + startlokx + " and as y: " + startloky); } public void walksomewhere() throws InterruptedException { Tolok = new AryanTile(XXR, YYR); AryanTile[] SL2 = new AryanTile[] { startlok, Tolok }; AryanPath midle = new AryanPath(SL2, this); midle.walkToEnd(); log("im on " + Tolok + " how bout that bitch!"); sleep(1000); } public void walkback() throws InterruptedException { DeadToBank.walkToEnd(); getCoins(); BankToSailor.walkToEnd(); talkToSailor(); getOffBoat(); BoatToCaves.walkToEnd(); getdown(); getdownagain(); ToFightCaves(); WieldAndDrop(); } public void getCoins() throws InterruptedException { while (theTabs.InventoryV3.countStackOf("Coins") < 30) { theCompass.setEast(); this.theBank.doWithDrawX("Coins", 30); sleep(2000); } } public void gaybank() throws InterruptedException { while (!Pixel.compare(theClientScreen.getRGB(211, 44), new RGB(255, 152, 31), 25)) { BankTile.walkToEnd(); Bankguy.doTopTextAndMenuOnMoving("ar-Ket-Zu", "ank Tz"); sleep(500); } while (theTabs.Inventory.getCount() > 0) { log("yea people the bank guy is gay did you know that?"); theTabs.Inventory.doAction("tore", "tore A", 28, true); sleep(500); } walktoenter(); } public void WieldAndDrop() throws InterruptedException { if (theTabs.Inventory.getCount() > 0) { // this works like one 139 theTabs.Inventory.doAction("eld", "eld", 28, true); theTabs.Inventory.doAction("ear", "ear", 28, true); theTabs.Inventory.doAction("Use", "Drop", 28, true); theTabs.Inventory.doAction("ub", "Drop", 28, true); theTabs.Inventory.doAction("eat", "Drop", 28, true); theTabs.Inventory.doAction("ink", "Drop", 28, true); theTabs.Inventory.doAction("ead", "Drop", 28, true); theTabs.Options.setRun(true); } } public void talkToSailor() throws InterruptedException { while (BoatTile.distanceTo(getLocation()) > 1) { Seaman.doTopTextAndMenuOnMoving("Seaman", "Pay-"); sleep(3000); if (Pixel.compare(theClientScreen.getRGB(205, 359), new RGB(128, 0, 0), 25)) { mouseClickLeft(chatshit); sleep(3000); } } } public void getOffBoat() throws InterruptedException { while (OffBoatTile.distanceTo(getLocation()) > 1) { theCompass.setWest(); Plank.doTopTextAndMenu("ngpl", "ross"); sleep(1000); } } public void getdown() throws InterruptedException { while (Cave1.distanceTo(getLocation()) > 10) { Rocks1.doTopTextAndMenu("mb-d", "mb-d"); sleep(1000); } } public void getdownagain() throws InterruptedException { while (Cave3.distanceTo(getLocation()) > 1) { Cavewalk1.walkToEnd(); theCompass.setWest(); Rocks2.doTopTextAndMenu("ave en", "er Ca"); sleep(1000); } } public void ToFightCaves() throws InterruptedException { Cavewalk2.walkToEnd(); sleep(1000); } public void enterCaves() throws InterruptedException { if (deathTile.distanceTo(getLocation()) < 25) { walkback(); } while (notincave.distanceTo(getLocation()) < 20) { log("entering caves"); walktoenter(); CaveCol.doTopTextAndMenu("Ente", " Ente"); wentin++; sleep(3000); if (notincave.distanceTo(getLocation()) < 20) { theCompass.setSouth(); CaveCol.doTopTextAndMenu("Ente", " Ente"); } sleep(10000); } getstartlok(); if (theHPBars.failSafeInCombat() && notincave.distanceTo(getLocation()) < 15) { Rx = random(2454, 2452); Ry = random(5166, 5162); AryanTile RAT = new AryanTile(2431, 5167); AryanPath runawaytile = new AryanPath(RAT, this); runawaytile.walkToEnd(); log("running away from a swarm or a plant"); sleep(2000); walktoenter(); } } public void paint(Graphics g) { g .drawString("Welcome to bbSoft's bbFightCavesPro v" + version, 20, 280); g.drawString("You have done the caves " + wentin + " times", 20, 300); int litlesom = howmanytimes - wentin; g .drawString("Still need to do it " + litlesom + " more times", 20, 320); }}