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

Rsbot Gold Powerminer

bkid45

Active Member

Banned
Joined
Jul 15, 2010
Sythe Gold
0
Messages
221
My friend wanted one so i made one let me know what it needs beside paint or anything thats obvious.
CODE:::::::::



import org.rsbot.script.ScriptManifest;
import org.rsbot.script.Script;
import org.rsbot.script.wrappers.RSObject;

@ScriptManifest(authors = { "Bkid45" }, keywords = { "GoldMiningBot" }, name = "GoldMiner", version = 1.0, description = "Simple bot that mines gold like a monster, then drops")
public class GoldMiner extends Script {

private int[] Rock = { 2099, 2098 } ;
private int Rune_Pickaxe = 1275;

public boolean onStart(){
return true;
}
public int loop(){
if(inventory.isFull()){
inventory.dropAllExcept(Rune_Pickaxe);
}else{
if(getMyPlayer().getAnimation() != 624){
RSObject rock = objects.getNearest(Rock);
if(rock != null){
rock.doAction("mine");
sleep(9500,800);

}
}
}
return random(100, 200);
}


public void onFinish(){
log("Stopping GoldMiner!=(");

}
}
 
Looks good but maybe add a way to customize pickaxes being used. So add more IDs for different pickaxes that are used by different people. Also, you can expand into a powerminer for every type of ore just by adding a few more IDs and code it looks like.
 
Thank you guys i just put a faster mouse speed and a paint for my friend lol. and ya i might make it for all other rocks and pick axes.
 
import org.rsbot.script.ScriptManifest;
import org.rsbot.script.Script;
import org.rsbot.script.wrappers.RSObject;
import java.awt.*;
import javax.imageio.ImageIO;
import java.io.IOException;
import java.net.URL;
import org.rsbot.event.listeners.PaintListener;

@ScriptManifest(authors = { "Bkid45" }, keywords = { "GoldMiningBot" }, name = "GoldMiner", version = 1.0, description = "Simple bot that mines gold like a monster, then drops")
public class GoldMiner extends Script {

private int[] Rock = { 2099, 2098 } ;
private int Rune_Pickaxe = 1275;

public boolean onStart(){
log(Color.RED, "Have Fun Botting!");
mouse.setSpeed(random(3,5));

return true;
}
public int loop(){
if(inventory.isFull()){
inventory.dropAllExcept(Rune_Pickaxe);
}else{
if(getMyPlayer().getAnimation() != 624){
RSObject rock = objects.getNearest(Rock);
if(rock != null){
rock.doAction("mine");
sleep(500,800);

}
}
}
return random(100, 200);
}


public void onFinish(){
log("Stopping GoldMiner!=(");
}
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, 204, 69);
private final Color color2 = new Color(255, 255, 51);

private final Font font1 = new Font("Arial", 0, 18);
private final Font font2 = new Font("Arial", 0, 14);
private final Font font3 = new Font("Arial", 1, 14);

private final Image img1 = getImage("http://images.wikia.com/runescape/images/5/5e/Gold-rock.png");

public void onRepaint(Graphics g1) {
Graphics2D g = (Graphics2D)g1;
g.setColor(color1);
g.fillRoundRect(548, 204, 189, 263, 16, 16);
g.drawImage(img1, 575, 325, null);
g.setFont(font1);
g.setColor(color2);
g.drawString("GoldMiner", 606, 227);
g.setFont(font2);
g.drawString("By:Bkid45", 619, 243);
g.setFont(font3);
g.drawString("Jtfman1 FTW!", 604, 315);
g.drawString("Jtfman1 FTW!", 604, 266);
g.drawString("Jtfman1 FTW!", 604, 282);
g.drawString("Jtfman1 FTW!", 604, 299);
}

}
 
Ya i know i do not know how to make an xp counter yet but wen i figure it out i will put it into the script. And i also want to incorporate all the pickaxes and rocks... but then again idk how to make a gui and put it in the script. this is my 2nd script.
 
Figured out the xp counter and runtime shit. so ya i will be making some sick new scripts soon so stay tuned. and let me know what u guys want and i will try to make them for u.
 
i myself would love a nice barbarian Assault script :)
 
Runescape Gamblingrunescape gambling
Back
Top