RSbot.org down - script needed

Discussion in 'RuneScape 3 Cheating' started by The True Gears, Nov 15, 2008.

RSbot.org down - script needed
  1. Unread #1 - Nov 15, 2008 at 9:38 PM
  2. The True Gears
    Referrals:
    1

    The True Gears Guest
    $5 USD Donor

    RSbot.org down - script needed

    Hello, RSbot.org forums are currently down, and I need a Eye of Newt buyer that will actually open the door to the store for me.
    In return of a script I will put you on my list of signatures I have to do.
     
  3. Unread #2 - Nov 15, 2008 at 9:47 PM
  4. The Dark
    Joined:
    Jan 21, 2007
    Posts:
    1,601
    Referrals:
    0
    Sythe Gold:
    0

    The Dark Guru
    Banned

    RSbot.org down - script needed

    Here:

    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)};
    	
    }
     
  5. Unread #3 - Nov 15, 2008 at 10:27 PM
  6. tupxrush
    Joined:
    Oct 16, 2008
    Posts:
    68
    Referrals:
    0
    Sythe Gold:
    0

    tupxrush Member
    Banned

    RSbot.org down - script needed

    where do i put this script to be able to run it?
     
  7. Unread #4 - Nov 15, 2008 at 11:46 PM
  8. dds owned everyone
    Joined:
    Mar 1, 2007
    Posts:
    220
    Referrals:
    0
    Sythe Gold:
    0

    dds owned everyone Active Member

    RSbot.org down - script needed

    isnt DP selling this script now... or is this the old version.
     
  9. Unread #5 - Nov 15, 2008 at 11:49 PM
  10. Depth
    Joined:
    Jul 16, 2008
    Posts:
    194
    Referrals:
    0
    Sythe Gold:
    0

    Depth Active Member
    Banned

    RSbot.org down - script needed

    I wouldn't buy it, because you can get it free off of Rsbot.org forums, and there it is right there, so i would suggest not buying it.
     
  11. Unread #6 - Nov 15, 2008 at 11:53 PM
  12. dontpanic
    Joined:
    Mar 2, 2006
    Posts:
    37
    Referrals:
    0
    Sythe Gold:
    4

    dontpanic Member

    RSbot.org down - script needed

    This is the old one, the sale version is 2.1.
     
  13. Unread #7 - Nov 16, 2008 at 12:46 AM
  14. Goon
    Joined:
    Jul 11, 2005
    Posts:
    84
    Referrals:
    1
    Sythe Gold:
    5

    Goon Member

    RSbot.org down - script needed

    whats name of script? what do i have to name my notepad
     
  15. Unread #8 - Nov 16, 2008 at 1:44 AM
  16. Tgump
    Joined:
    Jan 21, 2007
    Posts:
    6,541
    Referrals:
    8
    Sythe Gold:
    0
    Two Factor Authentication User

    Tgump Hero
    Retired Global Moderator Zombie

    RSbot.org down - script needed

    1) Copy script
    2) Paste it in a notepad file
    3) Name it whatever the publicClass within the script says in perfect capitalization
    4) Make it a .java file
    5) Post in RSBot / Scripts
    6) Compile
    7) [​IMG]
     
  17. Unread #9 - Feb 11, 2009 at 2:20 PM
  18. alucard nld
    Joined:
    Feb 11, 2009
    Posts:
    215
    Referrals:
    1
    Sythe Gold:
    0

    alucard nld Active Member

    RSbot.org down - script needed

    that doesnt work for me :S what could i be doing wrong ~BTW i dont know what you mean with step 3

    ps: i know im a newb at this stuff.
     
  19. Unread #10 - Feb 11, 2009 at 3:30 PM
  20. Chatty
    Joined:
    Nov 18, 2008
    Posts:
    23
    Referrals:
    2
    Sythe Gold:
    0

    Chatty Newcomer

    RSbot.org down - script needed

  21. Unread #11 - Feb 11, 2009 at 5:15 PM
  22. Iwantlvl99
    Joined:
    Jan 24, 2009
    Posts:
    726
    Referrals:
    0
    Sythe Gold:
    0

    Iwantlvl99 Apprentice
    Banned

    RSbot.org down - script needed

    add my msn !
     
  23. Unread #12 - Feb 11, 2009 at 5:50 PM
  24. DoorKnawb
    Joined:
    Feb 10, 2009
    Posts:
    232
    Referrals:
    0
    Sythe Gold:
    0

    DoorKnawb Active Member

    RSbot.org down - script needed

    True, still useful tho.
     
  25. Unread #13 - Feb 11, 2009 at 6:11 PM
  26. x sonic
    Joined:
    Sep 23, 2007
    Posts:
    456
    Referrals:
    0
    Sythe Gold:
    0

    x sonic Forum Addict

    RSbot.org down - script needed

    It's not down.

    You just need to refresh it loads
     
  27. Unread #14 - Feb 11, 2009 at 6:19 PM
  28. blink182bob
    Joined:
    Dec 8, 2008
    Posts:
    309
    Referrals:
    1
    Sythe Gold:
    0

    blink182bob Forum Addict

    RSbot.org down - script needed

    you have to keep refreshing for every page tho, and can a mod lock this? old trash brought back up
     
  29. Unread #15 - Feb 11, 2009 at 8:23 PM
  30. J4G
    Joined:
    Jan 2, 2009
    Posts:
    204
    Referrals:
    0
    Sythe Gold:
    0

    J4G Active Member
    Banned

    RSbot.org down - script needed

    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)) {
    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;
    }
     
  31. Unread #16 - Feb 11, 2009 at 8:27 PM
  32. wooblah1
    Joined:
    Jun 25, 2008
    Posts:
    659
    Referrals:
    0
    Sythe Gold:
    0

    wooblah1 Apprentice

    RSbot.org down - script needed

    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).isVali d()) {
    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;
    } 
    learn to use code brackets pl0x.
     
< makeing a fourm like sythe need some helpers | how can i update rsbot? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site