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

    Members
    • Posts

      5
    • Joined

    • Last visited

    Recent Profile Visitors

    The recent visitors block is disabled and is not being shown to other users.

    Qiwi's Achievements

    1. Well its 6 hours later and ive come to a conclusion: im over-complicating a problem in a language I dont understand yet; Ill write needlessly complex solutions all day as long as I know what im doing. The root problem was multiple clicks causing pathing issues, so I just slapped a boolean on it. Now we're booling too GameObject obj = GameObjects.closest("obj"); boolean booling = false; //logic and things if (!booling) { otherObj.interact("otherObj"); Magic.castSpell(Normal.teleport); booling = true; //Sleep.sleepUntil(() -> obj != null, 12000); } I guess I'll leave this hear maybe someone will find it helpful
    2. GameObject obj = GameObjects.closest("obj"); //logic and things otherObj.interact("otherObj"); Magic.castSpell(Normal.teleport); Sleep.sleepUntil(() -> obj != null, 12000); //logic and things This is my code however its pretty slow detecting the object, is there a way to optimize this? Sleep.sleepUntil(() -> bank.exists() == true, 12000); for some reason this always returns True, I'm out of ideas also tried doing the distance math, and sleeping ticks until we've theoretically loaded a bank; this would force me to do run energy handling and i cba for a script this simple (my first time for scripting and java)
    ×
    ×
    • 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.