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
  • Try asking for help in the chatbox
  • Problem with depleted rocks


    Studentcoder
     Share

    Recommended Posts

    Hey guys, so currently I have these line of codes in my script to detect iron ore rocks and mine them, and then wait till they appear in the inventory

     

    https://gyazo.com/a0d65b1beca8d958ce9edd5d4a22b670

     

    the problem is that it click the rock even when it is depleted. What can I change to make it only click the rock when it's not depleted? (Color is brown when it has iron ore, when depleted its gray)

     

    also, is there a way in which i can make it left click on the iron ore instead of right click -> option mine? I tried iron.click() but it didn't accept that

    Link to comment
    Share on other sites

    public boolean interactForceLeft(java.lang.String action)

     

    Now I do not code Java at all or use the API but at a quick look this can be used to force left click with an ingame object such as ores.

     

    public int[] getModelIds()

     

    Also this could be used to check if the ore is depleted as the ID should change between the depleted or none depleted. This can be used to only click when the ID is the non depleted version.

     

    Like I said I could be wrong but give it a go it does no harm ;)

    Link to comment
    Share on other sites

     Share

    ×
    ×
    • 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.