[Request] Pure ess miner [request]

Discussion in 'Archives' started by chriswcott, Dec 16, 2008.

Thread Status:
Not open for further replies.
[Request] Pure ess miner [request]
  1. Unread #1 - Dec 16, 2008 at 10:07 PM
  2. chriswcott
    Joined:
    Nov 20, 2008
    Posts:
    99
    Referrals:
    0
    Sythe Gold:
    0

    chriswcott Member
    Banned

    [Request] Pure ess miner [request]

    I just need a pretty good pure essence miner and banker for rsbot
    I have been working on this skiller in my signature
    Its 100 percent bot lol
    Thanks-chris
     
  3. Unread #2 - Dec 16, 2008 at 10:11 PM
  4. Fromaaz
    Joined:
    Mar 21, 2008
    Posts:
    645
    Referrals:
    1
    Sythe Gold:
    0

    Fromaaz Apprentice
    Banned

    [Request] Pure ess miner [request]

    Add me on MSN i can send the java file.
     
  5. Unread #3 - Dec 16, 2008 at 10:12 PM
  6. Esuom
    Joined:
    May 3, 2007
    Posts:
    1,731
    Referrals:
    2
    Sythe Gold:
    0

    Esuom Guru
    Banned

    [Request] Pure ess miner [request]

    Use "Dont Panic's Ess Miner". It is practically flawless.
     
  7. Unread #4 - Dec 16, 2008 at 10:14 PM
  8. chriswcott
    Joined:
    Nov 20, 2008
    Posts:
    99
    Referrals:
    0
    Sythe Gold:
    0

    chriswcott Member
    Banned

    [Request] Pure ess miner [request]

    is it pre packed?
     
  9. Unread #5 - Dec 16, 2008 at 10:19 PM
  10. Fromaaz
    Joined:
    Mar 21, 2008
    Posts:
    645
    Referrals:
    1
    Sythe Gold:
    0

    Fromaaz Apprentice
    Banned

    [Request] Pure ess miner [request]

    Updated version of DP essense miner. Save as MPEssMiner.java, put in scripts folder. Compile and BAM. Essence is flying in ;D

    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 MPEssMiner extends Script implements PaintListener {
    
        public double getVersion() {
            return(1.1);
        }
    
        public String getName() {
            return("MrPanda's Ess Miner");
        }
    
        public String getAuthor() {
            return("MrPanda/DontPanic");
        }
    
        public String getScriptCategory() {
            return("MrPanda");
        }
    
        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 += "</htmln";
    
            return(html);
        }
    
        public boolean onStart(String[] args) {
            Bot.getEventManager( ).addListener(PaintListener.class, this);
                    bankToShopPath = randomizePath(bankToShopPath, 2, 2);
                    shopToBankPath = randomizePath(shopToBankPath, 2, 2);
                    centerToMinePath = randomizePath(centerToMinePath, 2, 2);
                    walkBackPath = randomizePath(walkBackPath, 2, 2);
            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(3000, 5000);
            }
            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("MrPanda's/DontPanic's Ess Miner", 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(1000, 2000);
                    } 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(24381);
            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)};
        
    }
     
  11. Unread #6 - Dec 16, 2008 at 10:20 PM
  12. chriswcott
    Joined:
    Nov 20, 2008
    Posts:
    99
    Referrals:
    0
    Sythe Gold:
    0

    chriswcott Member
    Banned

    [Request] Pure ess miner [request]

    your my her0 thank you
     
  13. Unread #7 - Dec 16, 2008 at 11:49 PM
  14. vegeta527
    Joined:
    Dec 16, 2008
    Posts:
    82
    Referrals:
    0
    Sythe Gold:
    1

    vegeta527 Member

    [Request] Pure ess miner [request]

    Framaz can you help me get that? idk how to add sripts. you gave me all the code and stuff. so do i put it in a text doc and put it in the sripts folder and thats it? because i tried that and when i go to bot-run script it is not anywhere in there. can you go into a bit more detail please?
     
  15. Unread #8 - Dec 17, 2008 at 4:26 PM
  16. Lammnub
    Joined:
    Dec 14, 2008
    Posts:
    45
    Referrals:
    0
    Sythe Gold:
    0

    Lammnub Member

    [Request] Pure ess miner [request]

    Open up notepad. Paste the code there and when you click save-as, add
    public class WHATEVER'S HERE extends Script implements
    .java as the name of the file. Then make sure that when you save it, it's viewing ALL files, not just .txt.
    Run compileall.bat and then run the bot.
     
< PRANK CALL THiS BITCH | [Request]RSbot Perfect yew cutter[Request] >

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


 
 
Adblock breaks this site