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 to tell if the user is Smithing?


    dominospizza

    Recommended Posts

    When Smithing, the animations continuously goes back and forth from 899 to -1. How would you be able to check if the player is still smithing before performing the next action?

     

     

    if (!getLocalPlayer().isAnimating())

     

    That code does not work in this use-case.

    Link to comment
    Share on other sites

    When Smithing, the animations continuously goes back and forth from 899 to -1. How would you be able to check if the player is still smithing before performing the next action?

    if (!getLocalPlayer().isAnimating())

    That code does not work in this use-case.

    could add a timer to see if it's not animating for like 5 secs

    Link to comment
    Share on other sites

    • 2 years later...

    Idk how to edit comments but this is the code snippet I meant to put:

    sleepUntil(() -> getInventory().count(item -> item.getID() == MITHRIL_BAR_ID) <= 2, randomSleep());

     

    Link to comment
    Share on other sites

    22 hours ago, aestheticfc said:

    Idk how to edit comments but this is the code snippet I meant to put:

    sleepUntil(() -> getInventory().count(item -> item.getID() == MITHRIL_BAR_ID) <= 2, randomSleep());

     

    bruh this post is 2 years old

    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.