Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • maferosrs

    Members
    • Posts

      23
    • Joined

    • Last visited

    Posts posted by maferosrs

    1. my bot goes by color detection

      package Miner;
      
      import javafx.scene.control.ColorPicker;
      import org.dreambot.api.methods.Calculations;
      import org.dreambot.api.script.AbstractScript;
      import org.dreambot.api.script.Category;
      import org.dreambot.api.script.ScriptManifest;
      import org.dreambot.api.utilities.Timer;
      import org.dreambot.api.wrappers.interactive.GameObject;
      
      import java.awt.*;
      
      @ScriptManifest(
              category = Category.MINING,
              name = "PowerMiner_10",
              author = "Mafer",
              version = 10.0 )
      public class Main extends AbstractScript{
          private int countOre;
          private GameObject rock;
          private Timer timeInProgress = new Timer();
          private String itemCount = "Copper ore";
      
          @Override
          public void onStart() {
              countOre = 0;
          }
      
          @Override
          public int onLoop() {
      
              countOre = getInventory().count(itemCount);
              int[] rockOn = {4645,436};
              int[] getColorRock = getModelColors();
      
              if( getColorRock == rockOn )
                  rock = getGameObjects().closest(f -> f.getName().contains("Rock"));
                  rock.interact("Mine");
              }
              return Calculations.random(1, 3);
          }
      

      please help me :'(

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.