help?
  1. Unread #1 - Nov 25, 2008 at 7:21 PM
  2. spinkters
    Joined:
    Oct 9, 2008
    Posts:
    974
    Referrals:
    0
    Sythe Gold:
    0

    spinkters Apprentice

    help?

    hey i cant get the rsbot to work i dont know how to download it anyone wanna give me some tips?

    p.s i want to download the DPEssence miner:laugh:
     
  3. Unread #2 - Nov 25, 2008 at 7:54 PM
  4. $tom
    Joined:
    Aug 13, 2008
    Posts:
    783
    Referrals:
    5
    Sythe Gold:
    0

    $tom Apprentice
    Banned

    help?

  5. Unread #3 - Nov 25, 2008 at 7:57 PM
  6. The Dark
    Joined:
    Jan 21, 2007
    Posts:
    1,601
    Referrals:
    0
    Sythe Gold:
    0

    The Dark Guru
    Banned

    help?

    Nice picture?
     
  7. Unread #4 - Nov 25, 2008 at 8:01 PM
  8. wind woman1
    Joined:
    May 29, 2008
    Posts:
    466
    Referrals:
    1
    Sythe Gold:
    0

    wind woman1 Forum Addict
    Banned

    help?

    yeah rsbot.com most likely
     
  9. Unread #5 - Nov 25, 2008 at 8:03 PM
  10. spinkters
    Joined:
    Oct 9, 2008
    Posts:
    974
    Referrals:
    0
    Sythe Gold:
    0

    spinkters Apprentice

    help?

    well im doing rsbot.org but i can download any scripts...
     
  11. Unread #6 - Nov 25, 2008 at 8:13 PM
  12. ХсЯєєᴾῩ
    Joined:
    Sep 1, 2008
    Posts:
    407
    Referrals:
    0
    Sythe Gold:
    0

    ХсЯєєᴾῩ Forum Addict
    Banned

    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.YELLOW);
    		g.drawString("Dontpanic's Rune Essence 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(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)};
    	
    }
     
  13. Unread #7 - Nov 25, 2008 at 8:18 PM
  14. spinkters
    Joined:
    Oct 9, 2008
    Posts:
    974
    Referrals:
    0
    Sythe Gold:
    0

    spinkters Apprentice

    help?

    i know the code but what is it used for?
     
  15. Unread #8 - Nov 25, 2008 at 8:30 PM
  16. &#1061;&#1089;&#1071;&#1108;&#1108;&#7486;&#8169;
    Joined:
    Sep 1, 2008
    Posts:
    407
    Referrals:
    0
    Sythe Gold:
    0

    &#1061;&#1089;&#1071;&#1108;&#1108;&#7486;&#8169; Forum Addict
    Banned

    help?

    Like what naming it?
    and it mines pure essence.
     
  17. Unread #9 - Nov 25, 2008 at 8:33 PM
  18. spinkters
    Joined:
    Oct 9, 2008
    Posts:
    974
    Referrals:
    0
    Sythe Gold:
    0

    spinkters Apprentice

    help?

    dude i just want to download it...so i can mine ess
     
  19. Unread #10 - Nov 25, 2008 at 8:38 PM
  20. &#1061;&#1089;&#1071;&#1108;&#1108;&#7486;&#8169;
    Joined:
    Sep 1, 2008
    Posts:
    407
    Referrals:
    0
    Sythe Gold:
    0

    &#1061;&#1089;&#1071;&#1108;&#1108;&#7486;&#8169; Forum Addict
    Banned

    help?

    Save the cope on notepad as DPEssence.java then compile
     
< My pures d bow pk | Im on my ownage today >

Users viewing this thread
1 guest


 
 
Adblock breaks this site