Post your Favorite Bot here
Post yor fav bot here Heres my Favorite Mining bot.
Save as GoldPowerMiner.java
import org.rsbot.script.ScriptManifest;
import org.rsbot.script.Script;
import org.rsbot.script.wrappers.RSObject;
import org.rsbot.event.listeners.PaintListener;
import org.rsbot.event.events.MessageEvent;
import java.awt.*;
import javax.imageio.ImageIO;
import java.io.IOException;
import java.net.URL;
import org.rsbot.script.methods.Skills;
@sCripTManifest(authors = {"SdcDice2"}, name = "Gold Power Miner", description = "Power Mines Gold in Crafting Guild", version = 1.1)
public class GoldPowerMiner extends Script implements PaintListener {
public int[] rocksID = {11183,11184,11185} ;
public int[] pickaxe = {1265, 1267, 1269, 1271, 1273, 1275, 14099, 14107, 15259};
public String Status = "Loading...";
public long startTime = System.currentTimeMillis();
public boolean onStart(){
log("My Lovely Script!");
mouse.setSpeed(9);
return true;
}
private void AntiBanPro() {
int randomProd = random(1, 60);
if (randomProd == 1) {
int randomMore = random(1, 5);
if (randomMore == 1) {
if (game.getCurrentTab() != 1) {
game.openTab(1);
sleep(350, 500);
mouse.move(random(678, 728), random(213, 232));
sleep(2000, 3500);
} else {
mouse.move(random(678, 728), random(213, 232));
sleep(2000, 3500);
}
} else {
sleep(1200, 2500);
}
}
if (randomProd == 2 || randomProd == 3 || randomProd == 4) {
sleep(1000, 2500);
}
if (randomProd >= 52) {
mouse.moveRandomly(65, 350);
} else {
sleep(10, 30);
}
}
private void AntiBanCamera() {
int randomNum = random(1, 35);
if (randomNum == 1 || randomNum == 2 || randomNum == 3) {
Status = "Moving Camara";
camera.moveRandomly(random(2000, 5500));
}
if (randomNum == 4 || randomNum == 5) {
camera.setAngle(random(10, 40));
}
if (randomNum == 6 || randomNum == 7) {
Status = "Moving Camara";
camera.setPitch(random(40, 68));
}
if (randomNum == 8) {
Status = "Moving Camara";
camera.setPitch(random(20, 45));
}
if (randomNum == 9 || randomNum == 10) {
Status = "Moving Camara";
camera.setPitch(random(68, 90));
} else {
sleep(50, 100);
}
}
public void messageReceived(MessageEvent e) {
String txt = e.getMessage();
if (txt.contains("manage to mine")) {
}
}
//START: Code generated using Enfilade's Easel
private Image getImage(String url) {
try {
return ImageIO.read(new URL(url));
} catch(IOException e) {
return null;
}
}
private final Color color1 = new Color(0, 0, 0);
private final Color color2 = new Color(228, 228, 0);
private final Color color3 = new Color(255, 255, 0);
private final Color color4 = new Color(204, 0, 0);
private final BasicStroke stroke1 = new BasicStroke(1);
private final Font font1 = new Font("Monotype Corsiva", 3, 16);
private final Font font2 = new Font("Monotype Corsiva", 3, 22);
private final Font font3 = new Font("Monotype Corsiva", 3, 20);
private final Image img1 = getImage("http://www.global-rs.com/img/gold_ore.gif");
public void onRepaint(Graphics g1) {
long millis = System.currentTimeMillis() - startTime;
long hours = millis / (1000 * 60 * 60);
millis -= hours * (1000 * 60 * 60);
long minutes = millis / (1000 * 60);
millis -= minutes * (1000 * 60);
long seconds = millis / 1000;
Graphics2D g = (Graphics2D)g1;
g.setColor(color1);
g.fillRect(7, 347, 219, 125);
g.setStroke(stroke1);
g.drawRect(7, 347, 219, 125);
g.setFont(font1);
g.setColor(color2);
g.drawString("Status:" + Status, 5, 419);
g.setFont(font2);
g.setColor(color3);
g.drawString("Gold Power Miner", 6, 364);
g.drawImage(img1, 168, 348, null);
g.drawImage(img1, 194, 353, null);
g.drawImage(img1, 171, 376, null);
g.setFont(font1);
g.drawString("Time Running:" + hours + ": " + minutes + ": " + seconds , 5, 406);
g.setFont(font3);
g.setColor(Color.green);
g.drawString("By SdcDice2", 8, 388);
final int percent = skills.getPercentToNextLevel(Skills.MINING); //change the MINING to the stat u want
g.setFont(font1);
g.setColor(Color.red);
g.drawString("Percent TNL: ", 5, 435);
g.setColor(Color.red);
g.fillRoundRect(10, 459, 100, 10, 15, 15); //these must be on same cordinates
g.setColor(Color.yellow);
g.fillRoundRect(10, 459, percent, 10, 15, 15); //these must be on same cordinates
g.setFont(font3);
g.setColor(Color.red);
g.drawString("" + percent +"%", 10, 455); //this must be on the center of the bar
g.drawRoundRect(10, 459, 100, 10, 15, 15);
g.drawRoundRect(10, 459, percent, 10, 15, 15);
g.drawLine(mouse.getLocation().x - 6, mouse.getLocation().y,
mouse.getLocation().x + 6, mouse.getLocation().y);
g.drawLine(mouse.getLocation
().x, mouse.getLocation().y - 6,
mouse.getLocation().x, mouse.getLocation().y + 6);
}
//END: Code generated using Enfilade's Easel
public int loop() {
mouse.setSpeed(random(4, 6));
AntiBanCamera();
if (!inventory.isFull()){
AntiBanPro();
mouse.setSpeed(random(3, 8));
if (players.getMyPlayer().getAnimation() == -1) {
RSObject rock = objects.getNearest(rocksID);
if (rock != null) {
rock.doAction("Mine");
AntiBanPro();
Status = "Mining Gold ore";
sleep(600, 800);
AntiBanCamera();
}
}
}
if (inventory.isFull()){
AntiBanPro();
Status = "Dropping Gold ore";
inventory.dropAllExcept(pickaxe);
AntiBanCamera();
}
return random(250,750);
}
public void onFinish() {
log("OMFG it Freacking works.");
}
}
Save as GoldPowerMiner.java
import org.rsbot.script.ScriptManifest;
import org.rsbot.script.Script;
import org.rsbot.script.wrappers.RSObject;
import org.rsbot.event.listeners.PaintListener;
import org.rsbot.event.events.MessageEvent;
import java.awt.*;
import javax.imageio.ImageIO;
import java.io.IOException;
import java.net.URL;
import org.rsbot.script.methods.Skills;
@sCripTManifest(authors = {"SdcDice2"}, name = "Gold Power Miner", description = "Power Mines Gold in Crafting Guild", version = 1.1)
public class GoldPowerMiner extends Script implements PaintListener {
public int[] rocksID = {11183,11184,11185} ;
public int[] pickaxe = {1265, 1267, 1269, 1271, 1273, 1275, 14099, 14107, 15259};
public String Status = "Loading...";
public long startTime = System.currentTimeMillis();
public boolean onStart(){
log("My Lovely Script!");
mouse.setSpeed(9);
return true;
}
private void AntiBanPro() {
int randomProd = random(1, 60);
if (randomProd == 1) {
int randomMore = random(1, 5);
if (randomMore == 1) {
if (game.getCurrentTab() != 1) {
game.openTab(1);
sleep(350, 500);
mouse.move(random(678, 728), random(213, 232));
sleep(2000, 3500);
} else {
mouse.move(random(678, 728), random(213, 232));
sleep(2000, 3500);
}
} else {
sleep(1200, 2500);
}
}
if (randomProd == 2 || randomProd == 3 || randomProd == 4) {
sleep(1000, 2500);
}
if (randomProd >= 52) {
mouse.moveRandomly(65, 350);
} else {
sleep(10, 30);
}
}
private void AntiBanCamera() {
int randomNum = random(1, 35);
if (randomNum == 1 || randomNum == 2 || randomNum == 3) {
Status = "Moving Camara";
camera.moveRandomly(random(2000, 5500));
}
if (randomNum == 4 || randomNum == 5) {
camera.setAngle(random(10, 40));
}
if (randomNum == 6 || randomNum == 7) {
Status = "Moving Camara";
camera.setPitch(random(40, 68));
}
if (randomNum == 8) {
Status = "Moving Camara";
camera.setPitch(random(20, 45));
}
if (randomNum == 9 || randomNum == 10) {
Status = "Moving Camara";
camera.setPitch(random(68, 90));
} else {
sleep(50, 100);
}
}
public void messageReceived(MessageEvent e) {
String txt = e.getMessage();
if (txt.contains("manage to mine")) {
}
}
//START: Code generated using Enfilade's Easel
private Image getImage(String url) {
try {
return ImageIO.read(new URL(url));
} catch(IOException e) {
return null;
}
}
private final Color color1 = new Color(0, 0, 0);
private final Color color2 = new Color(228, 228, 0);
private final Color color3 = new Color(255, 255, 0);
private final Color color4 = new Color(204, 0, 0);
private final BasicStroke stroke1 = new BasicStroke(1);
private final Font font1 = new Font("Monotype Corsiva", 3, 16);
private final Font font2 = new Font("Monotype Corsiva", 3, 22);
private final Font font3 = new Font("Monotype Corsiva", 3, 20);
private final Image img1 = getImage("http://www.global-rs.com/img/gold_ore.gif");
public void onRepaint(Graphics g1) {
long millis = System.currentTimeMillis() - startTime;
long hours = millis / (1000 * 60 * 60);
millis -= hours * (1000 * 60 * 60);
long minutes = millis / (1000 * 60);
millis -= minutes * (1000 * 60);
long seconds = millis / 1000;
Graphics2D g = (Graphics2D)g1;
g.setColor(color1);
g.fillRect(7, 347, 219, 125);
g.setStroke(stroke1);
g.drawRect(7, 347, 219, 125);
g.setFont(font1);
g.setColor(color2);
g.drawString("Status:" + Status, 5, 419);
g.setFont(font2);
g.setColor(color3);
g.drawString("Gold Power Miner", 6, 364);
g.drawImage(img1, 168, 348, null);
g.drawImage(img1, 194, 353, null);
g.drawImage(img1, 171, 376, null);
g.setFont(font1);
g.drawString("Time Running:" + hours + ": " + minutes + ": " + seconds , 5, 406);
g.setFont(font3);
g.setColor(Color.green);
g.drawString("By SdcDice2", 8, 388);
final int percent = skills.getPercentToNextLevel(Skills.MINING); //change the MINING to the stat u want
g.setFont(font1);
g.setColor(Color.red);
g.drawString("Percent TNL: ", 5, 435);
g.setColor(Color.red);
g.fillRoundRect(10, 459, 100, 10, 15, 15); //these must be on same cordinates
g.setColor(Color.yellow);
g.fillRoundRect(10, 459, percent, 10, 15, 15); //these must be on same cordinates
g.setFont(font3);
g.setColor(Color.red);
g.drawString("" + percent +"%", 10, 455); //this must be on the center of the bar
g.drawRoundRect(10, 459, 100, 10, 15, 15);
g.drawRoundRect(10, 459, percent, 10, 15, 15);
g.drawLine(mouse.getLocation().x - 6, mouse.getLocation().y,
mouse.getLocation().x + 6, mouse.getLocation().y);
g.drawLine(mouse.getLocation
().x, mouse.getLocation().y - 6,
mouse.getLocation().x, mouse.getLocation().y + 6);
}
//END: Code generated using Enfilade's Easel
public int loop() {
mouse.setSpeed(random(4, 6));
AntiBanCamera();
if (!inventory.isFull()){
AntiBanPro();
mouse.setSpeed(random(3, 8));
if (players.getMyPlayer().getAnimation() == -1) {
RSObject rock = objects.getNearest(rocksID);
if (rock != null) {
rock.doAction("Mine");
AntiBanPro();
Status = "Mining Gold ore";
sleep(600, 800);
AntiBanCamera();
}
}
}
if (inventory.isFull()){
AntiBanPro();
Status = "Dropping Gold ore";
inventory.dropAllExcept(pickaxe);
AntiBanCamera();
}
return random(250,750);
}
public void onFinish() {
log("OMFG it Freacking works.");
}
}





