Rsbot Gold Powerminer

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

Rsbot Gold Powerminer
  1. Unread #1 - Feb 26, 2011 at 4:10 PM
  2. bkid45
    Joined:
    Jul 15, 2010
    Posts:
    221
    Referrals:
    1
    Sythe Gold:
    0

    bkid45 Active Member
    Banned

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

    }
    }
     
  3. Unread #2 - Feb 26, 2011 at 4:18 PM
  4. Reboman
    Joined:
    Feb 21, 2011
    Posts:
    321
    Referrals:
    0
    Sythe Gold:
    0

    Reboman Forum Addict
    Banned

    Rsbot Gold Powerminer

    ...Ever try kMiner?
     
  5. Unread #3 - Feb 26, 2011 at 4:24 PM
  6. cazax
    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0

    cazax Forum Addict

    Rsbot Gold Powerminer

    Um, this is SCAR section not RSBot.
     
  7. Unread #4 - Feb 26, 2011 at 4:49 PM
  8. Chaos669
    Joined:
    May 15, 2010
    Posts:
    438
    Referrals:
    2
    Sythe Gold:
    0

    Chaos669 Forum Addict
    Banned

    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.
     
  9. Unread #5 - Feb 26, 2011 at 5:01 PM
  10. bkid45
    Joined:
    Jul 15, 2010
    Posts:
    221
    Referrals:
    1
    Sythe Gold:
    0

    bkid45 Active Member
    Banned

    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.
     
  11. Unread #6 - Feb 26, 2011 at 5:02 PM
  12. bkid45
    Joined:
    Jul 15, 2010
    Posts:
    221
    Referrals:
    1
    Sythe Gold:
    0

    bkid45 Active Member
    Banned

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

    }
     
  13. Unread #7 - Mar 3, 2011 at 8:22 AM
  14. hippyskankerr
    Joined:
    Feb 27, 2011
    Posts:
    151
    Referrals:
    0
    Sythe Gold:
    0

    hippyskankerr Active Member
    Banned

    Rsbot Gold Powerminer

    i agree with chaos
     
  15. Unread #8 - Mar 3, 2011 at 9:35 AM
  16. hippyskankerr
    Joined:
    Feb 27, 2011
    Posts:
    151
    Referrals:
    0
    Sythe Gold:
    0

    hippyskankerr Active Member
    Banned

    Rsbot Gold Powerminer

    but pritty good
     
  17. Unread #9 - Mar 3, 2011 at 8:31 PM
  18. bkid45
    Joined:
    Jul 15, 2010
    Posts:
    221
    Referrals:
    1
    Sythe Gold:
    0

    bkid45 Active Member
    Banned

    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.
     
  19. Unread #10 - Mar 4, 2011 at 10:49 PM
  20. bkid45
    Joined:
    Jul 15, 2010
    Posts:
    221
    Referrals:
    1
    Sythe Gold:
    0

    bkid45 Active Member
    Banned

    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.
     
  21. Unread #11 - May 1, 2011 at 1:16 AM
  22. epicdbower
    Joined:
    Apr 17, 2011
    Posts:
    106
    Referrals:
    0
    Sythe Gold:
    0

    epicdbower Active Member

    Rsbot Gold Powerminer

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

Users viewing this thread
1 guest


 
 
Adblock breaks this site