• Log in or sign up for an account here: https://www.sythe.org/login

RSbot.org down - script needed

  • Thread starter Thread starter The True Gears
  • Start date Start date
T

The True Gears

Guest
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.
 
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)};
	
}
 
RSbot.org down - script needed
where do i put this script to be able to run it?
 
RSbot.org down - script needed
isnt DP selling this script now... or is this the old version.
 
RSbot.org down - script needed
isnt DP selling this script now... or is this the old version.

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.
 
RSbot.org down - script needed
whats name of script? what do i have to name my notepad
 
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)
Gnomes_plan.png
 
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)
Gnomes_plan.png

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.
 
RSbot.org down - script needed
It's not down.

You just need to refresh it loads
 
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
 
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;
}
 
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.
 
Runescape Gamblingrunescape gambling
Back
Top