hey guys i need some quick help

Discussion in 'Archives' started by dwd50, Dec 20, 2008.

Thread Status:
Not open for further replies.
hey guys i need some quick help
  1. Unread #1 - Dec 20, 2008 at 10:24 AM
  2. dwd50
    Referrals:
    0

    dwd50 Guest

    hey guys i need some quick help

    im looking for a script for auto mining rune essence... i cannot find 1 anybody know of 1 for rsbot cause i dont feel like mining copper and tin =-/ lol ... also excellent results!!!!!!!!!!!!!!!!!!!! 49 fishing 1 to 49 in less than 5 hrs!!!!!!!!!!!!!!!!!!!!!!!!!! :eek:

    also
    yes i do know i am a noob leecher.. ive read through about 100 topics im just not very talkative... i stay in the back usually lol... i used to have acc named jman679... idk pass =-) that was like a yr ago... lol(on sythe... lol also on rs...along with jo dea and dark noodles) lvl 97 130 and 82
     
  3. Unread #2 - Dec 20, 2008 at 10:25 AM
  4. killerpills1
    Joined:
    Dec 8, 2007
    Posts:
    197
    Referrals:
    0
    Sythe Gold:
    0

    killerpills1 Active Member

    hey guys i need some quick help

    Code:
    import java.awt.*;
    import java.awt.event.KeyEvent;
    
    import com.speljohan.rsbot.bot.Bot;
    import com.speljohan.rsbot.event.listeners.PaintListener;
    import com.speljohan.rsbot.script.Script;
    import com.speljohan.rsbot.script.wrappers.*;
    import com.speljohan.rsbot.script.*;
    
    public class DPEssence extends Script implements PaintListener {
    
        public double getVersion() {
            return(2.6);
        }
    
        public String getName() {
            return("Dontpanic's Rune Essence Miner");
        }
    
        public String getAuthor() {
            return("Dontpanic - [email protected]");
        }
    
        public String getScriptCategory() {
            return("Dontpanic Scripts");
        }
    
        public String getScriptDescription( ) {
            String html = "";
    
            html += "<html>\n";
            html += "<body>\n";
            html += "<h2>" + getName() + " v" + getVersion() + "</h2><br>\n";
            html += "Author: " + getAuthor() + "<br><br>\n";
            html += "Start anywhere with pickaxe in inventory or equipped.";
            //html += "<center>\n";
            //html += "Arguments:<input type=\"text\" name=\"args\">\n";
            //html += "</center>\n";
            html += "</body>\n";
            html += "</html\n";
    
            return(html);
        }
    
        public boolean onStart(String[] args) {
            Bot.getEventManager( ).addListener(PaintListener.class, this);
            return(true);
        }
    
        public void onFinish() {
            Bot.getEventManager().removeListener(PaintListener.class, this);
        }
        
        int failCount = 0;
    
        public int loop() {
            if(!isLoggedIn()) {
                return random(100,200);
            }
            if(checkSpinningView()) {
                return random(200, 300);
            }
            if(checkCamera()) {
                return random(500, 800);
            }
            if(getMyPlayer().isMoving()) {
                return random(150, 200);
            }
            if(checkTeleporting()) {
                return random(2800, 2900);
            }    
            if(checkWalkingToBankBooth()) {
                return random(500, 600);
            }
            if(checkUsingPortal()) {
                return random(300, 400);
            }
            if(checkClickedRock()) {
                return random(800, 1000);
            }
            if(checkWalkingToPortal()) {
                return random(300, 350);
            }
            if(checkAttack()) {
                return random(800, 1000);
            }
            if(getMyPlayer().getAnimation() != -1) {
                return random(150, 200);
            }
            int result;
            if(getInventoryCount() != 28) {
                result = doMine();
            } else {
                result = doBank();
            }
            if(result != -1) {
                failCount = 0;
                return result;
            }
            log("walkBack");
            if(walkBack()) {
                failCount = 0;
                return random(500, 800);
            }
            failCount ++;
            if(failCount >= 10) {
                log("homeTele");
                failCount = 0;
                homeTele();
                return random(2000, 3000);
            }
            return random(1000, 2000);        
            /*
            log("checkLost");
            if(checkLost()) {
                return random(2000, 3000);
            }
            return random(100, 200);
            */
        }
    
         public void onRepaint(Graphics g) {
            g.setColor(Color.GREEN);
            g.drawString("Mining rune essence...", 260, 20); 
            g.drawString("Loads: " + loads, 260, 38); 
        }
        
        int loads = 0;
        
        boolean cameraMoving = false;
        
        public boolean checkCamera() {
            if(cameraMoving) {
                if(Bot.getClient().getCameraCurveY() >= 380) {
                    Bot.getInputManager().releaseKey((char) KeyEvent.VK_UP);
                    cameraMoving = false;
                }
                return true;
            } else if (Bot.getClient().getCameraCurveY() < 380) {
                Bot.getInputManager().pressKey((char) KeyEvent.VK_UP);
                cameraMoving = true;
                return true;
            }
            return false;
        }
        
        public boolean walkBack() {
            return dpWalkPath(walkBackPath);
        }
        
        public void homeTele() {
            openTab(Script.TAB_MAGIC);
            castSpell(1);
        }
        
        
        
        public boolean checkAttack() {
            if(getMyPlayer().isInCombat()) {
                if(inMine()) {
                    usePortal();
                    return true;
                } else if(atBank()) {
                    bankToShop();
                    return true;
                } else {
                    return false;
                }
            } else {
                return false;
            }
        }
        
        /*
        
        boolean attacked = false;
        
        int attHP = -1;
        
        public boolean checkAttack() {
            int maxHP = skills.getLvlByExp(skills.getCurrentSkillExp(3));
            int curHP = skills.getCurrentSkillLevel(3);
            if(curHP < maxHP) {
                if(attacked) {
                    if(curHP > attHP) {
                        attHP = curHP;
                    }
                    if(curHP >= attHP) {
                        return false;
                    } else {
                        attacked = false;
                    }
                }
                if(!attacked) {
                    if(inMine()) {
                        usePortal();
                    } else if(atBank()) {
                        bankToShop();
                    }
                    attHP = -1;
                    attacked = true;
                    return true;
                }            
            } else {
                if(attacked) {
                    attacked = false;
                }
                if(attHP != -1) {
                    attHP = -1;
                }
            }
            return false;
        }*/
        
        boolean clickedRock = false;
        
        public boolean checkClickedRock() {
            if(clickedRock) {
                clickedRock = false;
                return true;
            }
            return false;
        }
        
        public int doMine() {
            if(inCave()) {
                if(inMine()) {
                    clickedRock = clickRock();
                    if(clickedRock) {
                        return random(500, 800);
                    } else {
                        int result = distanceToByRockTile();
                        if(result == -1) {
                            return -1;
                        }
                        if(result > 0) {
                            if(walkToRock()) {
                                return random(500, 800);
                            } else {
                                log("E-1");
                                return -1;
                            }
                        } else {
                            spinView();
                            return random(500, 800);
                        }
                    }                
                } else {
                    if(centerToMine()) {
                        return random(500, 800);
                    } else {
                        log("E-2");
                        return -1;
                    }
                }
            } else {
                if(atShop()) {
                    if(openDoor()) {
                        return random(500, 800);
                    }
                    if(teleportToCave()) {
                        return random(500, 800);
                    } else {
                        if(walkIntoShop()) {
                            return random(500, 800);
                        } else {
                            log("E-3");
                            if(atShop()) {
                                log("atshop true");
                            } else {
                                log("atshop false");
                            }
                            return -1;
                        }
                    }                    
                } else {
                    if(bankToShop()) {
                        return random(500, 800);
                    } else {
                        log("E-8");
                        return -1;    
                    }
                }
            }
        }
        
        public void spinView() {
            Bot.getInputManager().pressKey((char) KeyEvent.VK_RIGHT);
            spinningView = true;
        }
        
        boolean spinningView = false;
        
        public boolean checkSpinningView() {
            if(spinningView) {
                Bot.getInputManager().releaseKey((char) KeyEvent.VK_RIGHT);
                spinningView = false;
                return true;
            } else {
                return false;
            }
        }
        
        public int doBank() {
            if(inCave()) {
                if(inMine()) {
                    setRun(true);
                    if(usePortal()) {
                        return random(700, 900);
                    } else {
                        if(walkToRock()) {
                            return random(500, 800);
                        } else {
                            log("E-4");
                            return -1;
                        }
                    } 
                } else {
                    if(centerToMine()) {
                        return random(500, 800);
                    } else {
                        log("E-5");
                        return -1;
                    }
                }
            } else {
                if(atBank()) {
                    if(RSInterface.getInterface(INTERFACE_BANK).isValid()) {
                        bank.depositAllExcept(1275, 1265, 1269, 1267, 1273, 1271);
                        loads ++;
                        return random(500, 800);
                    } else {
                        if(distanceTo(bankBoothTile) > 1) {
                            if(walkToBankBooth()) {
                                return random(500, 800);
                            } else {
                                return -1;
                            }
                        }
                        RSObject object = findObject(bankBoothID);
                        if(atObject(object, "uickly")) {
                            return random(500, 800);
                        } else {
                            if(walkToBankBooth()) {
                                return random(500, 800);
                            } else {
                                log("E-6");
                                return -1;
                            }
                        }
                    }
                } else {
                    if(walkToBankBooth()) {
                        return random(500, 800);
                    } else {
                        if(shopToBank()) {
                            return random(500, 800);
                        } else {
                            log("E-7");
                            return -1;
                        }
                    }
                }        
            }
        }
        
        public boolean walkIntoShop() {
            return dpWalkTile(shopTile);
        }
        
        boolean walkingToBankBooth = false;
        
        public boolean walkToBankBooth() {
            if(dpWalkTile(bankBoothTile)) {
                walkingToBankBooth = true;
                return true;
            } else {
                return false;
            }
        }
        
        public boolean checkWalkingToBankBooth() {
            if(walkingToBankBooth) {
                walkingToBankBooth = false;
                return true;
            } else {
                return false;
            }
        }
        
        /*public boolean checkLost() {
            if(!inCave() && distanceTo(bankTile) > 15 && distanceTo(shopTile) > 20) {
                homeTele();
                return true;
            }
            return false;
        }*/
        
        public boolean inCenter() {
            return distanceTo(centerTile) < 10;
        }
        
        public boolean inCave() {
            return distanceTo(centerTile) < 50;
        }
        
        public boolean atBank() {
            return distanceTo(bankTile) < 12;
        }
        
        public boolean atShop() {
            return distanceTo(shopTile) < 5;
        }
        
        public boolean inMine() {
            return inCave() && !inCenter();
        }
        
        boolean usingPortal = false;
        
        public boolean usePortal() {
            RSObject object = findObject(portalID);
            if(atObject(object, "Use")) {
                usingPortal = true;
                return true;
            } else {
                if(dpWalkTile(nePortalTile)) {
                } else if(dpWalkTile(nwPortalTile)) {
                } else if(dpWalkTile(sePortalTile)) {
                } else if(dpWalkTile(swPortalTile)) {
                } else {
                    return false;
                }
                walkingToPortal = true;
                return true;
            }
        }
        
        boolean walkingToPortal = false;
        
        public boolean checkWalkingToPortal() {
            if(walkingToPortal) {
                walkingToPortal = false;
                return true;
            } else {
                return false;
            }
        }
        
        public boolean checkUsingPortal() {
            if(usingPortal) {
                usingPortal = false;
                return true;
            } else {
                return false;
            }
        }
        
        public boolean openDoor() {
            RSObject object = findObject(closedDoorID);
            if (object == null || object.getLocation().getX() != 3253) {
                return false;
            }
            Point point = new Point((int) Calculations.tileToScreen(object.getLocation()).getX(), (int) Calculations.tileToScreen(object.getLocation()).getY() - random(18, 20));
            moveMouse(point);
            clickMouse(point, true);
            return true;
        }
        
        boolean teleporting = false;
        
        public boolean teleportToCave() {
            RSNPC npc = getNearestFreeNPCByName("Aubury");
            if(atNPC(npc, "eleport")) {
                teleporting = true;
                return true;
            } else {
                return false;
            }
        }
        
        public boolean dpWalkPath(RSTile[] path) {
            for(int I = path.length - 1; I >= 0; I--) {
                if(dpWalkTile(path[I])) {
                    return true;
                }
            }        
            return false;
        }
        
        public boolean dpWalkTile(RSTile tile) {
            if(distanceTo(tile) <= 16) {
                walkTileMM(tile);
                return true;
            } else {
                return false;
            }
        }
        
        public boolean shopToBank() {
            if(openDoor()) {
                return true;
            }
            return dpWalkPath(shopToBankPath);
        }
        
        public boolean bankToShop() {
            return dpWalkPath(bankToShopPath);
        }
        
        public boolean centerToMine() {
            return dpWalkPath(centerToMinePath);
        }
        
        public boolean dpClickRockTile(RSTile tile) {
            /*if (Calculations.tileToScreen(tile).getX() == -1) {
                return false;
            }
            Point point = new Point((int) Calculations.tileToScreen(tile).getX() + random(-2,2), (int) Calculations.tileToScreen(tile).getY() + random(-2, 2));
            moveMouse(point);
            clickMouse(point, true);
            return true;*/
            return atTile(tile, "ine");
        }
        
        public boolean clickNERockTile() {
            return dpClickRockTile(neRockTile);
        }
        
        public boolean clickNWRockTile() {
            return dpClickRockTile(nwRockTile);
        }
        
        public boolean clickSERockTile() {
            return dpClickRockTile(seRockTile);
        }
        
        public boolean clickSWRockTile() {
            return dpClickRockTile(swRockTile);
        }
        
        public boolean walkToRock() {
            if(dpWalkTile(neByRockTile)) {
                return true;
            } else if(dpWalkTile(nwByRockTile)) {
                return true;
            } else if(dpWalkTile(seByRockTile)) {
                return true;
            } else if(dpWalkTile(swByRockTile)) {
                return true;
            } else {
                return false;
            }
        }
        
        public boolean inMineTile(RSTile tile) {
            return distanceTo(tile) < 15;
        }
        
        public boolean inNEMine() {
            return inMineTile(neRockTile);
        }
        
        public boolean inNWMine() {
            return inMineTile(nwRockTile);
        }
        
        public boolean inSEMine() {
            return inMineTile(seRockTile);
        }
        
        public boolean inSWMine() {
            return inMineTile(swRockTile);
        }
        
        public int distanceToByRockTile() {
            if(inNEMine()) {
                return distanceTo(neByRockTile);
            }
            if(inSEMine()) {
                return distanceTo(seByRockTile);
            }
            if(inNWMine()) {
                return distanceTo(nwByRockTile);
            }
            if(inSWMine()) {
                return distanceTo(swByRockTile);
            }
            return -1;
        }
        
        public boolean clickRock() {
            if(inNEMine()) {
                return clickNERockTile();
            } 
            if(inNWMine()) {
                return clickNWRockTile();
            } 
            if(inSEMine()) {
                return clickSERockTile();
            } 
            if(inSWMine()) {
                return clickSWRockTile();
            } 
            return false;        
        }
        
        public boolean checkTeleporting() {
            if(teleporting) {
                teleporting = false;
                return true;
            }
            return false;
        }
        
        public RSTile bankTile = new RSTile(3253, 3421); 
        
        public RSTile shopTile = new RSTile(3253, 3401); 
        
        public RSTile centerTile = new RSTile(2910, 4832); 
        
        public RSTile nwPortalTile = new RSTile(2886, 4850);
        
        public RSTile swPortalTile = new RSTile(2890, 4813);
        
        public RSTile sePortalTile = new RSTile(2932, 4815);
        
        public RSTile nePortalTile = new RSTile(2931, 4854);
        
        public RSTile bankBoothTile = new RSTile(3253, 3420);
        
        public RSTile neRockTile = new RSTile(2927, 4849);
        
        public RSTile neByRockTile = new RSTile(2925, 4847);
        
        public RSTile nwRockTile = new RSTile(2893, 4848);
        
        public RSTile nwByRockTile = new RSTile(2895, 4846);
        
        public RSTile seRockTile = new RSTile(2927, 4816);
        
        public RSTile seByRockTile = new RSTile(2926, 4816);
        
        public RSTile swRockTile = new RSTile(2895, 4813);
        
        public RSTile swByRockTile = new RSTile(2897, 4811);
        
        public int bankBoothID = 11402;
        
        public int rockID = 2491;
        
        public int portalID = 2492;
        
        public int closedDoorID = 24381;
        
        public RSTile[] bankToShopPath = {new RSTile(3254,3426),new RSTile(3260,3416),new RSTile(3260,3405),new RSTile(3253,3399)};
    
        public RSTile[] shopToBankPath = {new RSTile(3253,3398),new RSTile(3256,3409),new RSTile(3260,3420),new RSTile(3254,3428)};
    
        public RSTile[] centerToMinePath = {new RSTile(2906,4827),new RSTile(2901,4817),new RSTile(2897,4811)};
    
        public RSTile[] walkBackPath = { new RSTile(3222, 3219), new RSTile(3233, 3221), new RSTile(3244, 3225), new RSTile(3255, 3227), new RSTile(3259, 3238), new RSTile(3257, 3249), new RSTile(3252, 3259), new RSTile(3247, 3269), new RSTile(3241, 3279), new RSTile(3239, 3290), new RSTile(3239, 3301), new RSTile(3244, 3311), new RSTile(3251, 3320), new RSTile(3262, 3322), new RSTile(3270, 3330), new RSTile(3281, 3332), new RSTile(3286, 3342), new RSTile(3295, 3349), new RSTile(3299, 3360), new RSTile(3299, 3371), new RSTile(3296, 3382), new RSTile(3294, 3393), new RSTile(3293, 3404), new RSTile(3292, 3415), new RSTile(3283, 3422), new RSTile(3272, 3426), 
            new RSTile(3261, 3427), new RSTile(3253, 3421)};
        
    }
    
     
  5. Unread #3 - Dec 20, 2008 at 10:30 AM
  6. dwd50
    Referrals:
    0

    dwd50 Guest

    hey guys i need some quick help

    now wtf?!!?!?!?! lol i have no idea what that means... all i know is i dl scripts put em in script file and then compile...start client and they willl be there... wtf is that lol... i know its code for a script file... but im an idiot =-)
     
  7. Unread #4 - Dec 20, 2008 at 10:32 AM
  8. killerpills1
    Joined:
    Dec 8, 2007
    Posts:
    197
    Referrals:
    0
    Sythe Gold:
    0

    killerpills1 Active Member

    hey guys i need some quick help

    go to your script folder amke a new notewpad item past this in the notpad item save it as DPEssence.java
     
  9. Unread #5 - Dec 20, 2008 at 10:34 AM
  10. dwd50
    Referrals:
    0

    dwd50 Guest

    hey guys i need some quick help

    ook lol
    i wuv u lol
     
  11. Unread #6 - Dec 20, 2008 at 10:36 AM
  12. killerpills1
    Joined:
    Dec 8, 2007
    Posts:
    197
    Referrals:
    0
    Sythe Gold:
    0

    killerpills1 Active Member

    hey guys i need some quick help

    make sure you compile all after its added.
     
  13. Unread #7 - Dec 20, 2008 at 10:37 AM
  14. dwd50
    Referrals:
    0

    dwd50 Guest

    hey guys i need some quick help

    ook lol
    i wuv u lol
    done...now lets see if it works =-)
     
  15. Unread #8 - Dec 20, 2008 at 10:51 AM
  16. dwd50
    Referrals:
    0

    dwd50 Guest

    hey guys i need some quick help

    umm well ok i do it and start rsbot and i cannot find it in scripts...
     
  17. Unread #9 - Dec 20, 2008 at 10:55 AM
  18. killerpills1
    Joined:
    Dec 8, 2007
    Posts:
    197
    Referrals:
    0
    Sythe Gold:
    0

    killerpills1 Active Member

    hey guys i need some quick help

    I had the same problem I just made a new rsbot folder deleted all the scriptsa in that and put only the dp essence script in.
     
  19. Unread #10 - Dec 20, 2008 at 10:57 AM
  20. dwd50
    Referrals:
    0

    dwd50 Guest

    hey guys i need some quick help

    i cant find it in scripts when i start client.... and the compiler does this
    [​IMG]
     
  21. Unread #11 - Dec 20, 2008 at 10:58 AM
  22. dwd50
    Referrals:
    0

    dwd50 Guest

    hey guys i need some quick help

    yes i did white out things like my porn... my gf's aim name...some girl on webcam nude =-) lol and umm my real name... (im jk about porn and girl on webcam nude) =-)
     
  23. Unread #12 - Dec 20, 2008 at 10:59 AM
  24. killerpills1
    Joined:
    Dec 8, 2007
    Posts:
    197
    Referrals:
    0
    Sythe Gold:
    0

    killerpills1 Active Member

    hey guys i need some quick help

    Hummm im not sure what to do I just made a new rsbot like i said and deleted all the scripts and jsut put in the script inand it worked
     
  25. Unread #13 - Dec 20, 2008 at 11:00 AM
  26. dwd50
    Referrals:
    0

    dwd50 Guest

    hey guys i need some quick help

    but i use all the scripts lol
     
  27. Unread #14 - Dec 20, 2008 at 11:00 AM
  28. dwd50
    Referrals:
    0

    dwd50 Guest

    hey guys i need some quick help

    and it says in the compiler thing that there is an error in DPEssence and cannot find symbol or something
     
  29. Unread #15 - Dec 20, 2008 at 11:03 AM
  30. killerpills1
    Joined:
    Dec 8, 2007
    Posts:
    197
    Referrals:
    0
    Sythe Gold:
    0

    killerpills1 Active Member

    hey guys i need some quick help

    humm...
     
  31. Unread #16 - Dec 20, 2008 at 11:07 AM
  32. dwd50
    Referrals:
    0

    dwd50 Guest

    hey guys i need some quick help

    do you not also need a .CLASS file with it?
     
< [buying] skiller [LOOK] | Selling level 94 main for 40 bucks paypal! >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site