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
  • Make mining function in a Thread


    abouhanafy87

    Recommended Posts

    23 minutes ago, Hashtag said:

    Are you sure you want to use a thread? It's generally not a good idea. What are you trying to achieve?

    I want to check other rocks and regist it in table through mining 

    Link to comment
    Share on other sites

    this is my mine func

    private void mine() {
        currentNode = GameObjects.closest(oreID );
        if(currentNode !=null) {
            if (currentNode.getID() == oreID) {  //if your'e free
                if (currentNode.interactForceLeft("Mine")) {
                    sleepUntil(() -> !currentNode.exists(), Calculations.random(5000, 30000));// this make my code to freeze 
                }
            }
        }
    }

    i want to make another function to catch other rocks and regist it's time how can i make it when my code is freeze in my mining function .

    i want to make catch function in another thread but i want some help . thanks for you 

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

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