import impsoft.nexus.bots.color.ColorBot; import impsoft.nexus.bots.color.scriptable.ColorScript; import impsoft.nexus.bots.color.scriptable.components.ClientScreen; import impsoft.nexus.bots.color.scriptable.components.ItemConditionList; import impsoft.nexus.bots.color.scriptable.components.gamescreen.*; import impsoft.nexus.bots.color.scriptable.components.minimap.Compass; import impsoft.nexus.bots.color.scriptable.components.tab.*; import impsoft.nexus.bots.color.scriptable.interfaces.AutoPaint; import impsoft.nexus.bots.color.scriptable.interfaces.ChatListener; import impsoft.nexus.bots.color.scriptable.objects.EdgeRGBCluster2; import impsoft.nexus.bots.color.structures.RGB; import impsoft.nexus.bots.color.util.Pixel; import impsoft.nexus.bots.color.util.Timer; import impsoft.nexus.bots.reflection.objects.AryanPath; import impsoft.nexus.bots.reflection.scriptable.components.WorldMapWalker; import impsoft.nexus.bots.reflection.structures.AryanTile; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import javax.swing.*; public class BabysHerbCollector extends ColorScript implements AutoPaint, ChatListener, ActionListener { public BabysHerbCollector(ColorBot colorbot, String s, String as[]) throws InterruptedException { super(colorbot); FromBankPath = new AryanPath(FromBank, this); ToGatePath = new AryanPath(ToGate, this); ToGatePath2 = new AryanPath(ToGate2, this); ToMonksPath = new AryanPath(ToMonks, this); MonksTile = new AryanTile(3113, 9931); runawaytile = new AryanTile(3299, 3235); BeforeGateTile = new AryanTile(3101, 9909); beforeGatePath = new AryanPath(BeforeGateTile, this); AfterGateTile = new AryanTile(3107, 9909); AfterGatePath = new AryanPath(AfterGateTile, this); BeforeGateTile2 = new AryanTile(3132, 9915); BeforeGatePath2 = new AryanPath(BeforeGateTile2, this); AfterGateTile2 = new AryanTile(3132, 9923); AfterGatePath2 = new AryanPath(AfterGateTile2, this); backtoGateTile2 = (new AryanTile[] { AfterGateTile2, new AryanTile(3132, 9919) }); backtoGatePath2 = new AryanPath(backtoGateTile2, this); BankTile = new AryanTile(3093, 3491); BankTilePath = new AryanPath(ToBank, this); TrapTile = new AryanTile(3096, 3468); DownTrapTile = new AryanTile(3094, 9869); deathTile = new AryanTile(3222, 3217); deathTile2m = new AryanTile(2971, 3340); TrapdoorColCluster = new EdgeRGBCluster2(TrapdoorCol, this, 42, 13, 18, 1, 8, 2); LaderdownColCluster = new EdgeRGBCluster2(LaderdownCol, this, 42, 13, 18, 1, 3, 2); LaderColColCluster = new EdgeRGBCluster2(LaderCol, this, 42, 13, 18, 1, 3, 2); GateColCluster = new EdgeRGBCluster2(GateCol, this, 42, 13, 18, 1, 15, 3); MonkColCluster = new EdgeRGBCluster2(MonkCol, this, 42, 13, 18, 1, 8, 2); HerbColCluster = new EdgeRGBCluster2(HerbCol, this, 42, 13, 18, 1, 8, 5); LawColCluster = new EdgeRGBCluster2(LawCol, this, 42, 13, 18, 1, 3, 2); LadderColCluster = new EdgeRGBCluster2(LadderCol, this, 42, 13, 18, 1, 3, 2); Mode1 = new Rectangle(578, 254, 40, 23); Mode2 = new Rectangle(663, 254, 40, 23); Mode3 = new Rectangle(577, 307, 40, 23); Mode4 = new Rectangle(662, 308, 40, 23); chatshit = new Rectangle(224, 391, 50, 7); autoret = new Rectangle(611, 367, 30, 20); attacktab = new Rectangle(528, 174, 20, 20); magictab = new Rectangle(735, 179, 20, 20); stattab = new Rectangle(565, 173, 20, 20); logouttab = new Rectangle(444, 212, 20, 20); invtab = new Rectangle(630, 172, 20, 20); wildyRect = new Rectangle(157, 214, 30, 30); logoutbuton = new Rectangle(583, 365, 20, 20); hometel = new Rectangle(564, 234, 5, 5); Trapdoor = new Rectangle(203, 14, 178, 180); startTime = new Timer(0L); } public void script() throws InterruptedException { gui(); while(starting < 1) checkstart(); if(takerests.equalsIgnoreCase("true") || takerests.equalsIgnoreCase("yes")) rests = 1; else if(takerests.equalsIgnoreCase("false") || takerests.equalsIgnoreCase("no")) { rests = 0; } else { log("you have to fill in what if you want to take rests or not..."); return; } if(eating.equalsIgnoreCase("true") || eating.equalsIgnoreCase("yes")) eatingint = 1; else if(eating.equalsIgnoreCase("false") || eating.equalsIgnoreCase("no")) { eatingint = 0; } else { log("you have to fill in what if you want to eat or not..."); return; } stopRandom("AxeAttacher"); wherearewe(); getstarthp(); sendmails(); do { while(!Alive()) ; if(monkstart == 0) walktoherbs(); theTabs.Options.setRun(true); fight(); walkbacktobank(); Banking(); rust(); sendmails(); poisoned(); } while(true); } public void sendmails() { try { quantity = bankCounter * 28 + herbsint; double d = startTime.timePassed() / 1000L / 60L; String s = (new StringBuilder()).append("http://babyscripts.quotaless.com/progressreports/sendHerbs.php/?emailJ=").append(emailJ).append("&versionnumb=").append("RUNNING").append("&bankCounter=").append(bankCounter).append("&timerunning=").append(d).append("&quantity=").append(quantity).append("&gegeten=").append(gegeten).append("&hasdied=").append(hasdied).toString(); URL url = new URL(s); url.openConnection(); url.openStream(); } catch(Exception exception) { exception.printStackTrace(); } } public void sendmailspause() { try { quantity = bankCounter * 28 + herbsint; double d = startTime.timePassed() / 1000L / 60L; String s = (new StringBuilder()).append("http://babyscripts.quotaless.com/progressreports/sendHerbs.php/?emailJ=").append(emailJ).append("&versionnumb=").append("PAUSED").append("&bankCounter=").append(bankCounter).append("&timerunning=").append(d).append("&quantity=").append(quantity).append("&gegeten=").append(gegeten).append("&hasdied=").append(hasdied).toString(); URL url = new URL(s); url.openConnection(); url.openStream(); } catch(Exception exception) { exception.printStackTrace(); } } public void password() { try { log("bypasses the password Checking."); /*URL url = new URL((new StringBuilder()).append("http://babyscripts.110mb.com/authherbs/authsystemHerbs.php/?username=").append(username).append("&password=").append(password).toString()); BufferedReader bufferedreader = new BufferedReader(new InputStreamReader(url.openStream())); String s = bufferedreader.readLine(); trues = null; jaofnee = s; log(jaofnee);*/ } catch(Exception exception) { exception.printStackTrace(); } checkitout(); } public void checkitout() { log("correct"); go = 1; } public void gui() { JLabelTitle = new JLabel("HerbCollector ~~~ By BABY and Cracked by The Unknown"); JButtonGO = new JButton("GO"); JButtonGO.addActionListener(this); JTextrest = new JTextArea("True"); JTextrest.setBackground(Color.BLACK); JTextrest.setForeground(Color.WHITE); JLabelrest = new JLabel("Take rests after getting pked?: "); JTexteat = new JTextArea("True"); JTexteat.setBackground(Color.BLACK); JTexteat.setForeground(Color.WHITE); JLabeleat = new JLabel("Eating?:"); JLabeleatwhat = new JLabel("What to eat:"); JTextAreaeatwhat = new JTextArea("Lobster"); JTextAreaeatwhat.setBackground(Color.BLACK); JTextAreaeatwhat.setForeground(Color.WHITE); JLabeleatquantity = new JLabel("How many food to eat:"); JTextAreaeatquantity = new JTextArea("3"); JTextAreaeatquantity.setBackground(Color.BLACK); JTextAreaeatquantity.setForeground(Color.WHITE); JLabeleatwhen = new JLabel("Eat when hp<"); JTextAreaeatwhen = new JTextArea("50"); JTextAreaeatwhen.setBackground(Color.BLACK); JTextAreaeatwhen.setForeground(Color.WHITE); JLabelrestafter = new JLabel("Rest after ammount of trips: "); JTextrestafter = new JTextArea("0"); JTextrestafter.setBackground(Color.BLACK); JTextrestafter.setForeground(Color.WHITE); JLabelrestfor = new JLabel("Rest for ammount of minutes: "); JTextrestfor = new JTextArea("0"); JTextrestfor.setBackground(Color.BLACK); JTextrestfor.setForeground(Color.WHITE); JLabelemail = new JLabel("Send emails?:"); JTextemail = new JTextArea("False"); JTextemail.setBackground(Color.BLACK); JTextemail.setForeground(Color.WHITE); JLabelemailsad = new JLabel("The name of the file:"); JTextemailad = new JTextArea("NULL"); JTextemailad.setBackground(Color.BLACK); JTextemailad.setForeground(Color.WHITE); JLabelusername = new JLabel("Auth username:"); JTextusername = new JTextArea("User"); JTextusername.setBackground(Color.BLACK); JTextusername.setForeground(Color.WHITE); JLabelpassword = new JLabel("Auth password:"); JTextpassword = new JTextArea("Password"); JTextpassword.setBackground(Color.BLACK); JTextpassword.setForeground(Color.WHITE); JPanelMain = new JPanel(); JPanelMain.setForeground(Color.BLACK); JPanelMain.setBackground(Color.BLACK); JPanelMain.setLayout(new GridBagLayout()); GridBagConstraints gridbagconstraints = new GridBagConstraints(); gridbagconstraints.gridx = 0; gridbagconstraints.gridy = 0; gridbagconstraints.gridwidth = 0; gridbagconstraints.fill = 2; JPanelMain.add(JLabelTitle, gridbagconstraints); gridbagconstraints.gridx = 0; gridbagconstraints.gridy = 1; gridbagconstraints.gridwidth = 2; gridbagconstraints.anchor = 17; JPanelMain.add(JButtonGO, gridbagconstraints); gridbagconstraints.gridx = 0; gridbagconstraints.gridy = 2; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JLabelrest, gridbagconstraints); gridbagconstraints.gridx = 1; gridbagconstraints.gridy = 2; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JTextrest, gridbagconstraints); gridbagconstraints.gridx = 0; gridbagconstraints.gridy = 3; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JLabeleat, gridbagconstraints); gridbagconstraints.gridx = 1; gridbagconstraints.gridy = 3; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JTexteat, gridbagconstraints); gridbagconstraints.gridx = 0; gridbagconstraints.gridy = 4; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JLabeleatwhat, gridbagconstraints); gridbagconstraints.gridx = 1; gridbagconstraints.gridy = 4; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JTextAreaeatwhat, gridbagconstraints); gridbagconstraints.gridx = 0; gridbagconstraints.gridy = 5; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JLabeleatquantity, gridbagconstraints); gridbagconstraints.gridx = 1; gridbagconstraints.gridy = 5; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JTextAreaeatquantity, gridbagconstraints); gridbagconstraints.gridx = 0; gridbagconstraints.gridy = 6; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JLabeleatwhen, gridbagconstraints); gridbagconstraints.gridx = 1; gridbagconstraints.gridy = 6; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JTextAreaeatwhen, gridbagconstraints); gridbagconstraints.gridx = 0; gridbagconstraints.gridy = 7; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JLabelrestafter, gridbagconstraints); gridbagconstraints.gridx = 1; gridbagconstraints.gridy = 7; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JTextrestafter, gridbagconstraints); gridbagconstraints.gridx = 0; gridbagconstraints.gridy = 8; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JLabelrestfor, gridbagconstraints); gridbagconstraints.gridx = 1; gridbagconstraints.gridy = 8; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JTextrestfor, gridbagconstraints); gridbagconstraints.gridx = 0; gridbagconstraints.gridy = 9; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JLabelemail, gridbagconstraints); gridbagconstraints.gridx = 1; gridbagconstraints.gridy = 9; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JTextemail, gridbagconstraints); gridbagconstraints.gridx = 0; gridbagconstraints.gridy = 10; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JLabelemailsad, gridbagconstraints); gridbagconstraints.gridx = 1; gridbagconstraints.gridy = 10; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JTextemailad, gridbagconstraints); gridbagconstraints.gridx = 0; gridbagconstraints.gridy = 11; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JLabelusername, gridbagconstraints); gridbagconstraints.gridx = 1; gridbagconstraints.gridy = 11; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JTextusername, gridbagconstraints); gridbagconstraints.gridx = 0; gridbagconstraints.gridy = 12; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JLabelpassword, gridbagconstraints); gridbagconstraints.gridx = 1; gridbagconstraints.gridy = 12; gridbagconstraints.gridwidth = 1; gridbagconstraints.anchor = 17; JPanelMain.add(JTextpassword, gridbagconstraints); JFrameMain = new JFrame("HerbCollector"); JFrameMain.setLayout(new GridLayout()); JFrameMain.setSize(300, 300); JFrameMain.setResizable(true); JFrameMain.setDefaultCloseOperation(1); JFrameMain.getContentPane().add(JPanelMain); JFrameMain.setVisible(true); } public void actionPerformed(ActionEvent actionevent) { Object obj = actionevent.getSource(); if(obj == JButtonGO) { SetSettings(); if(lowhp > 0) log("have send info to the bot :D happy hacking :D"); } } private void checkstart() throws InterruptedException { if(lowhp > 0 && go == 1) starting = 1; } public void SetSettings() { eating = JTexteat.getText(); foodname = JTextAreaeatwhat.getText(); foodammount = Integer.valueOf(JTextAreaeatquantity.getText()).intValue(); lowhp = Integer.valueOf(JTextAreaeatwhen.getText()).intValue(); takerests = JTextrest.getText(); sleepingtime = Integer.valueOf(JTextrestfor.getText()).intValue(); pausetime = Integer.valueOf(JTextrestafter.getText()).intValue(); pausedtime = pausetime + random(0, 3); log((new StringBuilder()).append("taking rests after ").append(pausedtime).append(" times banking").toString()); mailing = JTextemail.getText(); emailJ = JTextemailad.getText(); username = JTextusername.getText(); password = JTextpassword.getText(); password(); log((new StringBuilder()).append("filled in : ").append(eating).append(" ").append(foodname).append(" ").append(foodammount).append(" ").append(lowhp).append(" ").append(takerests).append(" ").append(password).append(" ").append(username).toString()); } public void walktoherbs() throws InterruptedException { totrapdoor(); openanddown(); theTabs.Options.setRun(true); tocage(); opencage(); tocage2(); opencage2(); todruides(); } public void walkbacktobank() throws InterruptedException { Alive(); backtocage2(); Alive(); backopencage2(); Alive(); theTabs.Options.setRun(false); backtocage(); Alive(); backopencage(); Alive(); backtoladder(); Alive(); ClimbupLadder(); Alive(); WalkToBank(); } public void getstarthp() throws InterruptedException { mouseClickLeft(stattab); for(hp = theTabs.Statistics.getStatBottom(1); hp < 1; hp = theTabs.Statistics.getStatBottom(1)) mouseClickLeft(stattab); if(hp < 20) log("you have a low hp this script wont work proper for you..."); log((new StringBuilder()).append("your hp is: ").append(hp).toString()); } public void gethpafter() throws InterruptedException { if(MonksTile.distanceTo(getLocation()) > 50) hometel(); if(eatingint == 1) { mouseClickLeft(stattab); hpafter = theTabs.Statistics.getStatTop(1); log((new StringBuilder()).append("your hp is ").append(hpafter).toString()); sleep(500L); for(; hpafter < 1 && counter4 < 4; counter4++) { if(!theTabs.Statistics.isSelected()) mouseClickLeft(stattab); log((new StringBuilder()).append("your hp is ").append(hpafter).toString()); sleep(200L); } counter4 = 0; } else { hpafter = 50; } getfoodif(); } public void getfoodif() throws InterruptedException { if(hpafter < lowhp && hpafter > 9 && poisoned == 0) { log("Low hp!!! TO BANK!"); Alive(); walkbacktobank(); Alive(); getfoodandeat(); Alive(); walktoherbs(); gegeten++; } } public void getfoodandeat() throws InterruptedException { Alive(); if(BankTile.distanceTo(getLocation()) > 50) hometel(); herbsint = theTabs.InventoryV3.getCount(); for(; theTabs.InventoryV3.getCount() > 0 && counter2 < 5; counter2++) { theBankV3.doDepositAll(); sleep(random(1500, 2000)); } for(; foodammount > theTabs.InventoryV3.count(foodname) && BankTile.distanceTo(getLocation()) < 30; theBankV3.exit()) { theBankV3.doWithDrawX(foodname, foodammount); sleep(random(2000, 3000)); } counter2 = 0; if(!theTabs.InventoryV3.isSelected()) { mouseClickLeft(invtab); sleep(random(500, 750)); } for(; theTabs.InventoryV3.getCount() > 0 && counter3 < 5; counter3++) { theTabs.InventoryV3.doActionOnAll(foodname, "Eat ", true); sleep(random(1500, 2500)); } counter3 = 0; if(pksave == 1 && rests == 1) { log("we ate 2 times in a row there is probably a pker or you char isnt high enough.. sleeping for 15m+"); stopRandom("Login"); stopRandom("MouseMover"); sleep(random(0xdbba0, 0xe09c0)); startRandom("Login"); startRandom("MouseMover"); } pksave = 1; } public void wherearewe() throws InterruptedException { if(MonksTile.distanceTo(getLocation()) < 20) { log("started script at monks...."); monkstart = 1; } else { monkstart = 0; } } public void totrapdoor() throws InterruptedException { if(TrapTile.distanceTo(getLocation()) <= 30) { FromBankPath.walkToEnd(5); died = 0; poisoned = 0; } if(TrapTile.distanceTo(getLocation()) > 30) while(TrapTile.distanceTo(getLocation()) > 1) { theWorldMap.walkTo(TrapTile); died = 0; } } public void openanddown() throws InterruptedException { theCompass.setWest(); if(died == 0) do { if(DownTrapTile.distanceTo(getLocation()) <= 5) break; if(BankTile.distanceTo(getLocation()) > 50) hometel(); if(died == 0) { if(BankTile.distanceTo(getLocation()) > 50) hometel(); totrapdoor(); if(died == 0) { theCompass.setWest(); for(; DownTrapTile.distanceTo(getLocation()) > 15 && thecounter < 5; thecounter++) { TrapdoorColCluster.doTopTextAndMenu("pen T", "pen T"); sleep(random(1500, 2000)); LaderdownColCluster.doTopTextAndMenu("own Tr", "own Tr"); sleep(random(3500, 4000)); } } thecounter = 0; for(; BankTile.distanceTo(getLocation()) < 50 && !theTopText.isTopTextContaining("rapd") && fkcounter < 20; fkcounter++) { mouseMove(Trapdoor); sleep(random(120, 150)); } if(theTopText.isTopTextContaining("rapd")) { int i = getCurrentMouseX(); int j = getCurrentMouseY(); mouseClickLeft(i, j); sleep(random(2500, 3500)); fkcounter = 0; } } } while(true); } public void tocage() throws InterruptedException { if(died == 0) { if(DownTrapTile.distanceTo(getLocation()) > 50) hometel(); ToGatePath.walkToEnd(5); sleep(random(1500, 2000)); } } public void opencage() throws InterruptedException { if(died == 0) do { if(AfterGateTile.distanceTo(getLocation()) <= 2 || AfterGateTile.distanceTo(getLocation()) >= 20) break; if(AfterGateTile.distanceTo(getLocation()) > 50) hometel(); if(died == 0) { GateColCluster.doTopTextAndMenu("en G", "en G"); sleep(random(1500, 2000)); AfterGatePath.walkToEnd(); } } while(true); } public void tocage2() throws InterruptedException { if(died == 0) { if(AfterGateTile.distanceTo(getLocation()) > 50) hometel(); ToGatePath2.walkToEnd(5); sleep(random(1500, 2000)); } } public void opencage2() throws InterruptedException { if(died == 0) do { if(AfterGateTile2.distanceTo(getLocation()) <= 2 || AfterGateTile2.distanceTo(getLocation()) >= 20) break; if(AfterGateTile2.distanceTo(getLocation()) > 50) hometel(); if(died == 0) { GateColCluster.doTopTextAndMenu("en G", "en G"); sleep(random(1000, 1500)); mouseClickLeft(wildyRect); sleep(random(1500, 2000)); AfterGatePath2.walkToEnd(); } } while(true); } public void todruides() throws InterruptedException { if(died == 0) { if(AfterGateTile2.distanceTo(getLocation()) > 50) hometel(); ToMonksPath.walkToEnd(5); } } public void fight() throws InterruptedException { if(died == 0) { if(monkstart == 1) { monkstart = 0; log("reseted monkstart to 0"); } if(died == 0) { do { if(theTabs.InventoryV3.isFull() || died != 0) break; if(!theHPBars.failSafeInCombat() && !theTabs.InventoryV3.isFull() && MonkColCluster != null && Alive()) { if(HerbColCluster != null) { HerbColCluster.doTopTextAndMenu("ake ", "ake Grim"); Randomshitshort(); } if(!theHPBars.failSafeInCombat()) { MonkColCluster.doTopTextAndMenuOnMoving("ack Cha", "ack Cha"); Randomshit(); Alive(); placecheck(); } } if(theHPBars.failSafeInCombat() && !theTabs.InventoryV3.isFull() && Alive()) { placecheck(); if(!theTabs.InventoryV3.isSelected()) { mouseClickLeft(invtab); sleep(random(500, 750)); Alive(); } } int i = random(0, 15); if(HerbColCluster != null && i < 12) { HerbColCluster.doTopTextAndMenu("ake", "ake Grim"); Randomshitshort(); Alive(); } if(LawColCluster != null && i > 11) { LawColCluster.doTopTextAndMenu("ake", "ake La"); Randomshitshort(); Alive(); } if(MonksTile.distanceTo(getLocation()) > 15 && MonksTile.distanceTo(getLocation()) < 35 && Alive()) ToMonksPath.walkToEnd(5); } while(true); if(MonksTile.distanceTo(getLocation()) > 65 && died == 0) hometel(); } } } public void placecheck() throws InterruptedException { if(loopie < 1 && died == 0) { gottenlocation = getLocation(); loopie++; } if(loopie > 0 && gottenlocation.distanceTo(getLocation()) < 1 && died == 0) loopie++; if(loopie > 9) log("standing for 10 times+ on the same position..."); if(loopie == 20 && died == 0 && gottenlocation.distanceTo(getLocation()) < 1) { log("standing for 20 times on the same position..."); log("walking back if close enough :)..."); if(MonksTile.distanceTo(getLocation()) < 35) { ToMonksPath.walkToEnd(5); sleep(random(1500, 2500)); } Alive(); if(MonksTile.distanceTo(getLocation()) > 35 && Alive()) hometel(); loopie = 0; } if(gottenlocation.distanceTo(getLocation()) > 1 && died == 0) { loopie = 0; log("reseted walkback :)"); } } public void backtocage2() throws InterruptedException { if(died == 0) { if(MonksTile.distanceTo(getLocation()) > 50) hometel(); do { if(MonksTile.distanceTo(getLocation()) >= 30 || AfterGateTile2.distanceTo(getLocation()) <= 5) break; if(died == 0) { Alive(); backtoGatePath2.walkToEnd(); sleep(random(1500, 2000)); } } while(true); } } public void backopencage2() throws InterruptedException { if(died == 0) { if(AfterGateTile2.distanceTo(getLocation()) > 50) hometel(); for(; BeforeGateTile2.distanceTo(getLocation()) > 2 && AfterGateTile2.distanceTo(getLocation()) < 30; Alive()) { GateColCluster.doTopTextAndMenu("en G", "en G"); sleep(random(1500, 2000)); BeforeGatePath2.walkToEnd(); } } } public void backtocage() throws InterruptedException { if(died == 0) { if(BeforeGateTile2.distanceTo(getLocation()) > 50) hometel(); ToGatePath2.walkToStart(); sleep(random(1500, 2000)); } } public void backopencage() throws InterruptedException { if(died == 0) { if(BeforeGateTile.distanceTo(getLocation()) > 50) hometel(); for(; BeforeGateTile.distanceTo(getLocation()) > 2 && died == 0 && BeforeGateTile.distanceTo(getLocation()) < 20; beforeGatePath.walkToEnd()) { GateColCluster.doTopTextAndMenu("en G", "en G"); sleep(random(1500, 2000)); } } } public void backtoladder() throws InterruptedException { if(died == 0) { if(BeforeGateTile.distanceTo(getLocation()) > 50) hometel(); ToGatePath.walkToStart(); sleep(random(1500, 2000)); } } public void ClimbupLadder() throws InterruptedException { if(died == 0) { if(DownTrapTile.distanceTo(getLocation()) > 50) hometel(); if(died == 0) for(; TrapTile.distanceTo(getLocation()) > 2 && DownTrapTile.distanceTo(getLocation()) < 20; sleep(random(4500, 5000))) { theCompass.setWest(); LaderColColCluster.doTopTextAndMenu("up La", "up La"); } } } public void WalkToBank() throws InterruptedException { if(died == 0) { BankTilePath.walkToEnd(5); sleep(random(1500, 2000)); } } public void Banking() throws InterruptedException { if(died == 0) { pksave = 0; if(BankTile.distanceTo(getLocation()) > 50) hometel(); for(; theTabs.InventoryV3.getCount() > 0 && counter5 < 5 && BankTile.distanceTo(getLocation()) < 10; counter5++) { log("banking everything.."); theBankV3.doDepositAll(); sleep(random(2500, 3000)); } counter5 = 0; bankCounter++; prunningtime++; } rust(); } public void Randomshitshort() throws InterruptedException { int i = random(1, 500); if(i >= 1 && i <= 5) { theCompass.setNorth(); sleep(random(500, 1000)); } if(i > 5 && i <= 10) { theCompass.setWest(); sleep(random(500, 1000)); } if(i > 15 && i <= 20) { theCompass.setEast(); sleep(random(500, 1000)); } if(i > 20 && i <= 25) { theTabs.Controls.setSelected(); sleep(random(500, 1000)); } if(i > 25 && i <= 30) { theTabs.Equipment.setSelected(); sleep(random(500, 1000)); } if(i > 30 && i <= 35) { theTabs.Friends.setSelected(); sleep(random(500, 1000)); } if(i > 40 && i <= 45) { theTabs.Logout.setSelected(); sleep(random(500, 1000)); } if(i > 45 && i <= 50) { theTabs.Magic.setSelected(); sleep(random(500, 1000)); } if(i > 50 && i <= 55) { theTabs.Options.setSelected(); sleep(random(500, 1000)); } if(i > 55 && i <= 60) { theTabs.Prayer.setSelected(); sleep(random(500, 1000)); } if(i > 60 && i <= 65) { theTabs.Quest.setSelected(); sleep(random(500, 1000)); } if(i > 65 && i <= 70) { theTabs.Statistics.setSelected(); sleep(random(500, 1000)); } if(i > 70 && i <= 210) { sleep(random(500, 1000)); gethpafter(); } if(i > 210 && i <= 370) sleep(random(500, 1000)); if(i > 370 && i <= 500) { sleep(random(500, 1000)); mouseMoves(); log("Moved mouse"); } } public void mouseMoves() throws InterruptedException { int i = random(0, 750); int j = random(0, 500); mouseMove(i, j); } public void Randomshit() throws InterruptedException { int i = random(1, 500); if(i >= 1 && i <= 5) { theCompass.setNorth(); sleep(random(1500, 2500)); } if(i > 5 && i <= 10) { theCompass.setWest(); sleep(random(1500, 2500)); } if(i > 15 && i <= 20) { theCompass.setEast(); sleep(random(1500, 2500)); } if(i > 20 && i <= 25) { theTabs.Controls.setSelected(); sleep(random(1500, 2500)); } if(i > 25 && i <= 30) { theTabs.Equipment.setSelected(); sleep(random(1500, 2500)); } if(i > 30 && i <= 35) { theTabs.Friends.setSelected(); sleep(random(1500, 2500)); } if(i > 40 && i <= 45) { theTabs.Logout.setSelected(); sleep(random(1500, 2500)); } if(i > 45 && i <= 50) { theTabs.Magic.setSelected(); sleep(random(1500, 2500)); } if(i > 50 && i <= 55) { theTabs.Options.setSelected(); sleep(random(1500, 2500)); } if(i > 55 && i <= 60) { theTabs.Prayer.setSelected(); sleep(random(1500, 2500)); } if(i > 60 && i <= 65) { theTabs.Quest.setSelected(); sleep(random(1500, 2500)); } if(i > 65 && i <= 70) { theTabs.Statistics.setSelected(); sleep(random(1500, 2500)); } if(i > 70 && i <= 500) sleep(random(1500, 2500)); } public boolean Alive() throws InterruptedException { if(deathTile.distanceTo(getLocation()) > 55 || deathTile2m.distanceTo(getLocation()) > 55) return true; log("OMGOZORZ WE ARE DEAD!! deadwalk pl0x??"); WieldAndDrop(); if(pksave == 1) { sendmailspause(); log("died 2 times after each other not good taking a rest of 15 min+"); stopRandom("Login"); stopRandom("MouseMover"); sleep(random(0xdbba0, 0xe09c0)); startRandom("Login"); startRandom("MouseMover"); } sleep(3000L); WieldAndDrop(); theWorldMap.walkTo(BankTile); WieldAndDrop(); died = 1; pksave = 1; hasdied++; return false; } public void hometel() throws InterruptedException { for(; deathTile.distanceTo(getLocation()) > 55 || deathTile2m.distanceTo(getLocation()) > 55 && triescounter < 4; triescounter++) { mouseClickLeft(magictab); sleep(random(700, 1200)); mouseClickLeft(hometel); sleep(random(24000, 26000)); died = 1; } if(deathTile.distanceTo(getLocation()) < 55 || deathTile2m.distanceTo(getLocation()) < 55) { log("we have gotten home....."); died = 1; } if(triescounter > 4) { log("we have been cought in a random or something else..."); stopRandom("Login"); stopRandom("MouseMover"); sleep(40000L); if(!Pixel.compare(theClientScreen.getRGB(312, 245), new RGB(255, 255, 0), 55)) { mouseClickLeft(logouttab); sleep(random(500, 1500)); log("logged out..."); } } } public void WieldAndDrop() throws InterruptedException { if(theTabs.InventoryV3.isSelected()) theTabs.InventoryV3.setSelected(); for(; theTabs.InventoryV3.getCount() > 0 && counter8 < 5; counter8++) { wear(); wield(); } counter8 = 0; } public void wield() throws InterruptedException { theTabs.InventoryV3.doActionOnAll(ItemConditionList.ALL, "ield", false); sleep(random(1500, 2000)); } public void wear() throws InterruptedException { theTabs.InventoryV3.doActionOnAll(ItemConditionList.ALL, "ear", false); sleep(random(1500, 2000)); } public void rust() throws InterruptedException { if(prunningtime > pausedtime && pausetime > 0) { rusten = 1; log("taking a break now"); sendmailspause(); stopRandom("Login"); stopRandom("MouseMover"); sleep(3000L); if(!Pixel.compare(theClientScreen.getRGB(312, 245), new RGB(255, 255, 0), 55)) { if(!theTabs.Logout.isSelected()) { theTabs.Logout.setSelected(); sleep(random(500, 700)); } mouseClickLeft(logouttab); sleep(random(500, 1500)); mouseClickLeft(logoutbuton); log("logged out..."); } sleeptime = sleepingtime * 1000 * 60; sleep(sleeptime + random(0, 0xad570)); rusten = 0; startRandom("Login"); startRandom("MouseMover"); log("logging in again :D"); prunningtime = 0; pausedtime = pausetime + random(0, 3); log((new StringBuilder()).append("taking rests after ").append(pausedtime).append(" times banking").toString()); log((new StringBuilder()).append("taking a break after ").append(pausetime).append(" again").toString()); } } public void poisoned() throws InterruptedException { if(poisoned == 1) { for(; poisoned == 1 && counter7 > 10; counter7++) { sleep(random(4500, 5000)); log("waiting to dead... because you got poisoned.. :( fucking pkers..."); } if(counter7 > 8) poisoned = 0; } } public void paint(Graphics g) { g.drawString((new StringBuilder()).append("Welcome to Babys Herb Collect0r Cracked by The Unknown V ").append(version).toString(), 10, 235); g.drawString((new StringBuilder()).append("Eaten\t\t\t: ").append(gegeten).append(" times").toString(), 10, 260); g.drawString((new StringBuilder()).append("Died\t\t\t: ").append(hasdied).append(" times").toString(), 10, 275); quantity = bankCounter * 28 + herbsint; g.drawString((new StringBuilder()).append("Banked\t\t: ").append(quantity).append(" herbs").toString(), 10, 290); g.drawString((new StringBuilder()).append("Banked\t\t: ").append(bankCounter).append(" times").toString(), 10, 305); g.drawString((new StringBuilder()).append("Time running\t: ").append(startTime.timePassed() / 1000L / 60L).append(" Min").toString(), 10, 320); if(rusten == 1) { g.setColor(Color.RED); g.drawString("PAUSED SCRIPT!", 325, 215); } } public void chat(String s) throws InterruptedException { if(s.contains("have been poisoned")) { log("WE GOT POISENED DOOM IS APON US ;) WAITING TO BE DEAD................................."); poisoned = 1; } if(s.contains("dear")) poisoned = 0; } public static String commands[] = { "Collect herbs!" }; public static String author = "Baby Cracked by The Unknown"; public static String description = "Collects herbs at the druids below edge"; public static double version = 3.21D; AryanTile FromBank[] = { new AryanTile(3094, 3480), new AryanTile(3094, 3470) }; AryanPath FromBankPath; AryanTile ToGate[] = { new AryanTile(3097, 9870), new AryanTile(3095, 9905), new AryanTile(3103, 9910) }; AryanPath ToGatePath; AryanTile ToGate2[] = { new AryanTile(3106, 9909), new AryanTile(3126, 9909), new AryanTile(3132, 9916) }; AryanPath ToGatePath2; AryanTile ToMonks[] = { new AryanTile(3123, 9920), new AryanTile(3129, 9929), new AryanTile(3113, 9931) }; AryanPath ToMonksPath; AryanTile MonksTile; AryanTile runawaytile; AryanTile BeforeGateTile; AryanPath beforeGatePath; AryanTile AfterGateTile; AryanPath AfterGatePath; AryanTile BeforeGateTile2; AryanPath BeforeGatePath2; AryanTile AfterGateTile2; AryanPath AfterGatePath2; AryanTile backtoGateTile2[]; AryanPath backtoGatePath2; AryanTile BankTile; AryanTile ToBank[] = { new AryanTile(3094, 3470), new AryanTile(3094, 3480), new AryanTile(3093, 3491) }; AryanPath BankTilePath; AryanTile TrapTile; AryanTile DownTrapTile; AryanTile deathTile; AryanTile deathTile2m; AryanTile gottenlocation; AryanTile gottenlocation2; RGB TrapdoorCol[] = { new RGB(72, 59, 32), new RGB(74, 60, 33) }; EdgeRGBCluster2 TrapdoorColCluster; RGB LaderdownCol[] = { new RGB(132, 90, 14) }; EdgeRGBCluster2 LaderdownColCluster; RGB LaderCol[] = { new RGB(21, 14, 0), new RGB(31, 24, 8), new RGB(27, 16, 0), new RGB(28, 22, 8) }; EdgeRGBCluster2 LaderColColCluster; RGB GateCol[] = { new RGB(139, 130, 129) }; EdgeRGBCluster2 GateColCluster; RGB MonkCol[] = { new RGB(156, 63, 57) }; EdgeRGBCluster2 MonkColCluster; RGB HerbCol[] = { new RGB(14, 111, 14), new RGB(9, 83, 42), new RGB(0, 61, 9), new RGB(92, 130, 14), new RGB(69, 101, 46), new RGB(9, 78, 66), new RGB(50, 78, 9), new RGB(25, 97, 46), new RGB(71, 81, 28), new RGB(92, 102, 9), new RGB(75, 83, 9) }; EdgeRGBCluster2 HerbColCluster; RGB LawCol[] = { new RGB(27, 35, 224) }; EdgeRGBCluster2 LawColCluster; RGB LadderCol[] = { new RGB(94, 69, 33) }; EdgeRGBCluster2 LadderColCluster; Rectangle Mode1; Rectangle Mode2; Rectangle Mode3; Rectangle Mode4; Rectangle chatshit; Rectangle autoret; Rectangle attacktab; Rectangle magictab; Rectangle stattab; Rectangle logouttab; Rectangle invtab; Rectangle wildyRect; Rectangle logoutbuton; Rectangle hometel; Rectangle Trapdoor; int triescounter; int bankCounter; int counter1; int eatingint; int counter6; int died; int monkstart; int pksave; int pksavelast; int poisoned; int hasdied; int loopie; int hp; int hpafter; int counter7; int foodammount; int counter2; int counter3; int gegeten; int counter8; int rests; int counter4; int herbsint; int quantity; int sleepingtime; int counter5; int lowhp; int starting; int go; int pausetime; int rusten; int pausedtime; int prunningtime; int sleeptime; int thecounter; int fkcounter; private JLabel JLabelTitle; private JLabel JLabelrest; private JLabel JLabeleat; private JLabel JLabeleatwhat; private JLabel JLabeleatquantity; private JLabel JLabeleatwhen; private JLabel JLabelemail; private JLabel JLabelemailsad; private JLabel JLabelusername; private JLabel JLabelpassword; private JLabel JLabelrestfor; private JLabel JLabelrestafter; private JButton JButtonGO; private JTextArea JTextrest; private JTextArea JTexteat; private JTextArea JTextAreaeatwhat; private JTextArea JTextAreaeatquantity; private JTextArea JTextAreaeatwhen; private JTextArea JTextrestafter; private JTextArea JTextrestfor; private JTextArea JTextemail; private JTextArea JTextemailad; private JTextArea JTextusername; private JTextArea JTextpassword; private JPanel JPanelMain; private JFrame JFrameMain; Timer startTime; String Status; String foodname; String eating; String takerests; String emailJ; String messageJ; String bodyJ; String mailing; String username; String password; String trues; String jaofnee; }