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

    Members
    • Posts

      3
    • Joined

    • Last visited

    Recent Profile Visitors

    The recent visitors block is disabled and is not being shown to other users.

    Bumble's Achievements

    1. Very good tutorial and code! Little suggestion to add for tutorial, allow bot to only mine rocks which it can depending on level. Get rock to mine. GameObject rockToMine = getGameObjects().closest(new Filter<GameObject>() { @Override public boolean match(GameObject rock) { return rock != null && rock.hasAction("Mine") && rock.getName().contains("Rocks") && rock.getModelColors() != null && Rock.getAllowedRocksByLevel(getSkills().getRealLevel(Skill.MINING)). anyMatch(rockEnum -> contains(rock.getModelColors(), rockEnum.getColour())); } }); And then do filtering for colors in Rock enum. public static Stream<Rock> getAllowedRocksByLevel(int level) { return Rock.stream() .filter(p -> p.getLevel() <= level); } I wrote this bot code yesterday so please give some feedback about it Rock.java MinerNode.java
    ×
    ×
    • 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.