making a .class file

Discussion in 'RuneScape 3 Cheating' started by ItsMissDevon, Nov 15, 2008.

making a .class file
  1. Unread #1 - Nov 15, 2008 at 10:18 PM
  2. ItsMissDevon
    Joined:
    Oct 5, 2008
    Posts:
    191
    Referrals:
    0
    Sythe Gold:
    0

    ItsMissDevon Active Member

    making a .class file

    i'm trying to make a .class file out of this:

    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.*;
    
    public class DPNewtEyes extends Script implements PaintListener {
    	public double getVersion() {
    		return(1.0);
    	}
    
    	public String getName() {
    		return("Dontpanic's Newt Eye Buyer");
    	}
    
    	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 money in your inventory.";
    		//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 waitAfterMoving = -1;
    	
    	int failCount = 0;
    
    	public int loop() {
    		
    		if(!isLoggedIn()) {
    			return random(100,200);
    		}
    		if(checkCamera()) {
    			return random(500, 800);
    		}
    		if(getMyPlayer().isMoving()) {
    			return random(150, 200);
    		}
    		if(waitAfterMoving != -1) {
    			int toReturn = waitAfterMoving;
    			waitAfterMoving = -1;
    			return toReturn;
    		}
    		if(checkAttack()) {
    			return random(800, 1000);
    		}
    		if(getMyPlayer().getAnimation() != -1) {
    			return random(150, 200);
    		}
    		int result = work();
    		if(result != -1) {
    			failCount = 0;
    			return result;
    		}
    		if(walkBack()) {
    			failCount = 0;
    			return random(500, 800);
    		}
    		failCount ++;
    		if(failCount >= 10) {
    			failCount = 0;
    			homeTele();
    			return random(2000, 3000);
    		}
    		return random(1000, 2000);	
    	}
    	
    	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 checkAttack() {
    		if(getMyPlayer().isInCombat()) {
    			return runFromCombat();
    		} else {
    			return false;
    		}
    	}
    	
    	public boolean runFromCombat() {
    		if(atShop()) {
    			shopToBank();
    			return true;
    		}
    		if(atBank()) {
    			bankToShop();
    			return true;
    		}
    		return false;
    	}
    	
    	int loads =  0;
    
    	public void onRepaint(Graphics g) {
    		g.setColor(Color.YELLOW);
    		g.drawString("Dontpanic's Newt Eye Buyer", 260, 20); 
    		g.drawString("Loads: " + loads, 260, 38);
    	}
    	
    	public int work() {
    		if(getInventoryCount() != 28) {
    			return buy();
    		} else {
    			triedBuy = false;
    			return bank();
    		}
    	}
    	
    	public void runOn() {
    		setRun(true);
    	}
    	
    	public int buy() {
    		if(atShop()) {
    			if(shopOpen()) {
    				if(triedBuy) {
    					openStock();
    				}
    				buyFromShop();
    				triedBuy = true;
    				return random(800, 1000);
    			} else {
    				runOn();
    				if(openDoor()) {
    					return random(500, 800);
    				}
    				if(openShop()) {
    					waitAfterMoving = random(200, 300);
    					return random(500, 800);
    				} else {
    					dpWalkTile(shopTile);
    					waitAfterMoving = random(300, 400);
    					return random(500, 800);
    				}
    			}
    		} else {
    			if(bankToShop()) {
    				return random(500, 800);
    			} else {
    				return -1;
    			}
    		}			
    	}
    	
    	public int bank() {
    		if(atBank()) {
    			if(RSInterface.getInterface(INTERFACE_BANK).isValid()) {
    				bank.depositAllExcept(coinID);
    				loads ++;
    				return random(500, 800);
    			} else {
    				if(distanceTo(bankTile) > 1) {
    					if(dpWalkTile(bankTile)) {
    						waitAfterMoving = random(200, 300);
    						return random(500, 800);
    					} else {
    						return -1;
    					}
    				} else {
    					RSObject object = findObject(bankBoothID);
    					if(atObject(object, "uickly")) {
    						return random(500, 800);
    					} else {
    						if(dpWalkTile(bankTile)) {
    							return random(500, 800);
    						} else {
    							return -1;
    						}
    					}
    				}
    			}	
    		} else {
    			if(openDoor()) {
    				return random(500, 800);
    			}
    			if(shopToBank()) {
    				return random(500, 800);
    			} else {
    				return -1;
    			}
    		}
    	}
    	
    	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 void homeTele() {
    		openTab(Script.TAB_MAGIC);
    		castSpell(1);
    	}
    	
    	public boolean walkBack() {
    		return dpWalkPath(walkBackPath);
    	}
    	
    	public boolean shopToBank() {
    		return dpWalkPath(shopToBankPath);
    	}
    	
    	public boolean bankToShop() {
    		return dpWalkPath(bankToShopPath);
    	}
    	
    	public boolean shopOpen() {
    		return RSInterface.getInterface(620).isValid();
    	}
    	
    	public boolean openShop() {
    		return atNPC(getNearestNPCByID(583), "Trade");
    	}
    	
    	public boolean openDoor() {
    		RSObject object = findObject(1533);
    		if (object !=null) {
    			if (distanceTo(object) <= 5) {
    			atDoor(object, "East", "Open");
    			return true;
    			}
    		}
    		return false;
    	}
    	
    	boolean triedBuy = false;
    	
    	public void openStock() {
    		int x = 61 + random(0, 3);
    		int y = 72 + random(0, 3);
    		moveMouse(x, y);
    		clickMouse(x, y, true);
    		wait(random(800, 1000));
    	}
    	
    	public void buyFromShop() {
    		int x = 384 + random(0, 3);
    		int y = 105 + random(0, 3);
    		moveMouse(x, y);
    		clickMouse(x, y, false);
    		wait(random(200, 250));
    		if(atMenu("Buy X")) {
    			wait(random(3000, 4000));
    			sendText("99", true);
    		}
    	}
    	
    	public boolean atShop() {
    		return distanceTo(shopTile) < 6;
    	}
    	
    	public boolean atBank() {
    		return distanceTo(bankTile) < 5;
    	}
    	
    	public RSTile bankTile = new RSTile(3092, 3245);
    	
    	public RSTile shopTile = new RSTile(3014, 3259);
    	
    	public int coinID = 995;
    	
    	public static int bankBoothID = 2213;
    	
    	public RSTile[] bankToShopPath = {new RSTile(3092,3245),new RSTile(3087,3249),new RSTile(3083,3254),new RSTile(3082,3260),new RSTile(3078,3266),new RSTile(3075,3272),new RSTile(3070,3276),new RSTile(3064,3276),new RSTile(3058,3276),new RSTile(3052,3276),new RSTile(3046,3276),new RSTile(3040,3276),new RSTile(3034,3276),new RSTile(3030,3271),new RSTile(3025,3267),new RSTile(3021,3262),
    		new RSTile(3017,3259),};
    	
    	public RSTile[] shopToBankPath = {new RSTile(3017,3259),new RSTile(3021,3265),new RSTile(3027,3267),new RSTile(3032,3272),new RSTile(3037,3276),new RSTile(3043,3276),new RSTile(3049,3276),new RSTile(3055,3276),new RSTile(3061,3276),new RSTile(3067,3276),new RSTile(3072,3271),new RSTile(3077,3267),new RSTile(3080,3261),new RSTile(3081,3255),new RSTile(3086,3250),new RSTile(3092,3247),
    		new RSTile(3092,3245),};
    	
    	public RSTile[] walkBackPath = {new RSTile(3222, 3219), new RSTile(3232, 3224), new RSTile(3227, 3234), new RSTile(3222, 3244), new RSTile(3211, 3246), new RSTile(3200, 3247), new RSTile(3189, 3246), new RSTile(3178, 3243), new RSTile(3168, 3238), new RSTile(3157, 3236), new RSTile(3146, 3232), new RSTile(3136, 3227), new RSTile(3125, 3227), new RSTile(3114, 3228), new RSTile(3108, 3238), new RSTile(3103, 3248), 
    		new RSTile(3092, 3245)};
    	
    }
    and it's not working, i save it as a .java file.. put it in the scripts folder and go back and press compile all, and after that's done i go back and there is no class file.

    i have nooo clue what i'm doing wrong
     
  3. Unread #2 - Nov 15, 2008 at 10:22 PM
  4. squnky
    Joined:
    Feb 15, 2007
    Posts:
    838
    Referrals:
    0
    Sythe Gold:
    16

    squnky Apprentice

    making a .class file

    idiot. read the tuts on rsbot dont go asking us.

    (COMPILE IT PUNK)
     
  5. Unread #3 - Nov 15, 2008 at 10:23 PM
  6. ItsMissDevon
    Joined:
    Oct 5, 2008
    Posts:
    191
    Referrals:
    0
    Sythe Gold:
    0

    ItsMissDevon Active Member

    making a .class file

    i don't know a lot about it.. but i know enough to know i'm supposed to compile it, and i did.

    if you read everything i posted you would know that.
     
  7. Unread #4 - Nov 15, 2008 at 10:24 PM
  8. xxthebeastxx
    Joined:
    May 17, 2008
    Posts:
    1,680
    Referrals:
    1
    Sythe Gold:
    0

    xxthebeastxx Guru
    Banned

    making a .class file

    Download JDK, set your environment variables, put as DPNewtEyes.java in your scripts folder, go to Compile All in main folder.
     
  9. Unread #5 - Nov 15, 2008 at 10:25 PM
  10. ItsMissDevon
    Joined:
    Oct 5, 2008
    Posts:
    191
    Referrals:
    0
    Sythe Gold:
    0

    ItsMissDevon Active Member

    making a .class file

    well i downloaded jdk when i was using ibot, so..
    and i have no clue what "setting environment variables" is, but i remember reading something about that too..
     
< the future of rs cheating... | [Autoing] Account looping ban? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site