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
  • how can i make a new function in a new thread ?


    abouhanafy87

    Recommended Posts

    i want to make a function in a new thread to check the ore and print rock1 is here ( for example ) when the player sleep until game object == null  work together but if i use sleep i can't see any thing ?

    i'm sorry for my language .

     

    Link to comment
    Share on other sites

    You dont really need to do this, you can just save the ore youre currently mining into a GameObject and only allow it to mine when that GameObject is null. No need to use sleepUntil.

    However, for future purposes you can use a TimerTask to execute a new thread. Having a different thread can definitely be useful

    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.