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
  • abouhanafy87

    VIP
    • Posts

      118
    • Joined

    • Last visited

    Status Updates posted by abouhanafy87

    1. 
       
      public void onStart() {
      
          SkillTracker.start(Skill.MINING);
          here i want to stop camera 
          ironObjects = new ArrayList<GameObject>();
          ironObjects.add(GameObjects.getTopObjectOnTile(new Tile(3285, 3368, 0)));
          ironObjects.add(GameObjects.getTopObjectOnTile(new Tile(3286, 3369, 0)));
      
          rotation = 0;
      
      }
      this function didn't work . 
      i want to interact the rock one by one and if one didn't have id ==11365 then interact the next
      help plz >>>
      private void mine() {
          log("mining>>>>");
          currentNode = ironObjects.get(rotation);
          if(rotation == 1) {
              rotation = 0;
          }
          else{rotation++;}
          if(currentNode.isOnScreen()&& currentNode.exists()&& currentNode!= null){
          currentNode.interactForceLeft("Mine");}
      
          if (currentNode.getID() == 11365 && getLocalPlayer().getAnimation() != -1) {
              sleepUntil(() -> currentNode.getID() == 11391, (Calculations.random(2000, 2400)));
          } else if (currentNode.getID() == 11391 && getLocalPlayer().getAnimation() != -1) {
              if(rotation == 1) {
                  rotation = 0;
                  currentNode.interactForceLeft("Mine");
              }
              else{
                  rotation++;
                  currentNode.interactForceLeft("Mine");
              }
          }else {
              mine();
          }
      }
    ×
    ×
    • 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.