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


    KKnippenberg
     Share

    Recommended Posts

    this is my code. The issue is whenever I finish mining the gem it keeps trying to mine the same rock because it can't recognize their is no ore in it. I need a solution to how to have it know that the rock is empty.

    Gems.java

    Link to comment
    Share on other sites

    Could you please paste the source of your code at https://paste.ofcode.org/ and then post the link here.   Alternatively, you could use pastebin.com to do the same thing.  This would make it easier for more people to easily glance at your code.  Another option is to paste it here utilizing the <> brackets on the toolbar.  Just my two cents :)

    Link to comment
    Share on other sites

    2 hours ago, ozeki6 said:

    You need to check for id not for name. Both depleted and non-depleted rocks have the same name. However, they are different objects and you can use id's to sort them out.

    How Do I check for id. What is the script code for that. I understand the idea though

    Link to comment
    Share on other sites

    57 minutes ago, KKnippenberg said:

    How Do I check for id. What is the script code for that. I understand the idea though

    getId() instead of getName(). You'll have to learn some basics since I'm not gonna spoon feed you. Check some tutorials, please.

    Link to comment
    Share on other sites

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     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.