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
  • 0x1nsomnia

    Members
    • Posts

      2
    • Joined

    • Last visited

    0x1nsomnia's Achievements

    1. Hi Pandemic, just want to thank you for sharing this. I'm not the best programmer and didn't really know much Java to get started with, so this really gave me a big boost. You mentioned it is possible to prioritize tasks -- could you share a resource or some info on that if and when you have time? I have a buying tasks for my script and the accept() method gets called, returns true, but instead of calling execute() of buy tasks, something happens and instead an entirely different accept() method of a different tasks is called so things break. Is this something to do with async stuff? What is a good way to prevent this from happening? Maybe it sounds like I am trying to do synchronous stuff and don't know how to properly handle async? Really appreciate any pointers or nudges in the right direction! Even any recommended resources on continuation of this TaskScript style is appreciated; I am either looking in the wrong spots or are just dumb EDIT: I still don't quite know exactly what I'm doing, but I got things working by instantiating my Buy and Sell task class inside of another task class being used, then calling Buy.execute() and Sell.execute() directly which feels very wrong and dirty (especially considering that completely skips .accept()), but it works for now 🤷‍♂️
    2. edit: I'm dumb nice script btw! all seems to be working great so far! edit again: has been running 2+ hours now -- super smooth and zero problems. 🥳 I really like the paint too! ty!
    ×
    ×
    • 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.