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
  • Any way of figuring out whether you are doing an automatic action?


    PissJar
     Share

    Recommended Posts

    I'm stuck at figuring out how to tell whether automatic actions that stop once you cannot do it anymore are active.

     

    For example, check if the user is:

    a) fletching
    b) smithing
    c) doing magic spells like charge orb

     

    Any help?

    Link to comment
    Share on other sites

    50 minutes ago, PissJar said:

    The issue with this is that there are breaks inbetween animations

    Make it sleep afterr the animation

    Link to comment
    Share on other sites

    What would that be of help? It has to KNOW whether it is doing said action, not simply guess. If the action gets cancelled by a level up it should be able to resume it

     

    Link to comment
    Share on other sites

    I think you would have to do something similar to this.  Check if the supplies for the item you are making are no longer in your inventory, and for level ups, use getDialogues().canContinue()

    MethodProvider.sleepUntil(() -> !getInventory().contains("Item Name") || getDialogues().canContinue(), 10000);

     

    Link to comment
    Share on other sites

    Shy beat me to it. However, for the case of the air orbs, have it check if the bot is in combat as well since you can get pk'd. There isn't a way for the bot to know you're doing something unless you tell it what to look for. For example, to extend on what zawy was saying about sleeping, if you want the bot to know it's still doing an animation that has breaks, wait until the animation stops, sleep for the number of game ticks between each animation (# * 600), and check if it's animating. Rinse and repeat. IMO this isn't very reliable and has a lot of potential to mess up from lag between game ticks, etc.

    Edited by morten1ela
    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.