abouhanafy87 1 Share Posted March 2, 2021 public void onStart() { SkillTracker.start(Skill.MINING); here i want to disable the 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; } her i want to interact the rocks one by one and if one didn't have id == 11365 the interact the next plz help me if you can 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(3000, 5000))); } else if (currentNode.getID() == 11391 && getLocalPlayer().getAnimation() != -1) { if(rotation == 1) { rotation = 0; currentNode.interactForceLeft("Mine"); } else{ rotation++; currentNode.interactForceLeft("Mine"); } }else { mine(); } } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now