Rsbot Need Ess Miner

Discussion in 'RuneScape 3 Cheating' started by ultrakurby, Nov 21, 2008.

Rsbot Need Ess Miner
  1. Unread #1 - Nov 21, 2008 at 9:10 PM
  2. ultrakurby
    Joined:
    Mar 6, 2008
    Posts:
    1,284
    Referrals:
    0
    Sythe Gold:
    0

    ultrakurby Guru
    Banned

    Rsbot Need Ess Miner

    i was just curios if anyone has a essence miner script cuz i need one. thanks
     
  3. Unread #2 - Nov 21, 2008 at 9:26 PM
  4. AKASNM
    Joined:
    Feb 20, 2008
    Posts:
    183
    Referrals:
    0
    Sythe Gold:
    0

    AKASNM Active Member

    Rsbot Need Ess Miner

    ...



    IDK if it works for members, im a nonmember and it works wonders.




    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)) {
    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 - Nov 21, 2008 at 9:28 PM
  6. nuke4russia
    Joined:
    Nov 24, 2007
    Posts:
    194
    Referrals:
    0
    Sythe Gold:
    0

    nuke4russia Active Member
    Banned

    Rsbot Need Ess Miner

    Here it is, just for you =)

    Uploaded to MediaFire for your convince
    [DOWNLOAD]
    DPEssence.java[/DOWNLOAD]
     
  7. Unread #4 - Nov 21, 2008 at 9:46 PM
  8. ultrakurby
    Joined:
    Mar 6, 2008
    Posts:
    1,284
    Referrals:
    0
    Sythe Gold:
    0

    ultrakurby Guru
    Banned

    Rsbot Need Ess Miner

    thanks guys. sure to use :)
     
< Best for overnight? Money wise? | [RSBOT] A working Plank buyer? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site