Adblock breaks this site

Rsbot Gold Powerminer

Discussion in 'RuneScape Scripts' started by bkid45, Feb 26, 2011.

  1. bkid45

    bkid45 Active Member
    Banned

    Joined:
    Jul 15, 2010
    Posts:
    221
    Referrals:
    1
    Sythe Gold:
    0
    Rsbot Gold Powerminer

    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!=(");

    }
    }
     
  2. Reboman

    Reboman Forum Addict
    Banned

    Joined:
    Feb 21, 2011
    Posts:
    321
    Referrals:
    0
    Sythe Gold:
    0
    Rsbot Gold Powerminer

    ...Ever try kMiner?
     
  3. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    Rsbot Gold Powerminer

    Um, this is SCAR section not RSBot.
     
  4. Chaos669

    Chaos669 Forum Addict
    Banned

    Joined:
    May 15, 2010
    Posts:
    438
    Referrals:
    2
    Sythe Gold:
    0
    Rsbot Gold Powerminer

    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.
     
  5. bkid45

    bkid45 Active Member
    Banned

    Joined:
    Jul 15, 2010
    Posts:
    221
    Referrals:
    1
    Sythe Gold:
    0
    Rsbot Gold Powerminer

    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.
     
  6. bkid45

    bkid45 Active Member
    Banned

    Joined:
    Jul 15, 2010
    Posts:
    221
    Referrals:
    1
    Sythe Gold:
    0
    Rsbot Gold Powerminer

    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);
    }

    }
     
  7. hippyskankerr

    hippyskankerr Active Member
    Banned

    Joined:
    Feb 27, 2011
    Posts:
    151
    Referrals:
    0
    Sythe Gold:
    0
    Rsbot Gold Powerminer

    i agree with chaos
     
  8. hippyskankerr

    hippyskankerr Active Member
    Banned

    Joined:
    Feb 27, 2011
    Posts:
    151
    Referrals:
    0
    Sythe Gold:
    0
    Rsbot Gold Powerminer

    but pritty good
     
  9. bkid45

    bkid45 Active Member
    Banned

    Joined:
    Jul 15, 2010
    Posts:
    221
    Referrals:
    1
    Sythe Gold:
    0
    Rsbot Gold Powerminer

    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.
     
  10. bkid45

    bkid45 Active Member
    Banned

    Joined:
    Jul 15, 2010
    Posts:
    221
    Referrals:
    1
    Sythe Gold:
    0
    Rsbot Gold Powerminer

    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.
     
  11. epicdbower

    epicdbower Active Member

    Joined:
    Apr 17, 2011
    Posts:
    106
    Referrals:
    0
    Sythe Gold:
    0
    Rsbot Gold Powerminer

    i myself would love a nice barbarian Assault script :)
     
< Need good scripter up to $100 | BH and AG - Crazy EdgeVille Yews >


 
 
Adblock breaks this site