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
  • ScriptManager seemingly does not exist


    Recommended Posts

    I'm trying to start a different script from within my current script, but I keep running into

    java: cannot access org.dreambot.6k
      class file for org.dreambot.6k not found

    All throw this error upon compiling.

    Any ideas how to solve?

    Link to comment
    Share on other sites

    @semanresuYou could try making your own script manager with something like

    private List<AbstractScript> scripts = new ArrayList<>();
    private AbstractScript currentScript = null;


    and then putting the below in your onstart method

    scripts.add(new myScriptName()); //this script would be in the same source file 
    currentScript = scripts.getFirst(); //pick a script in the list, we only have one so...

    and then you can access onLoop, onStart, stop etc from currentScript.

    technically you can add as many scripts as you like and then assign to currentScript.

    you'd be making your own script manager essentially and can do whatever you like

    Edited by Deep Slayer
    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
    • 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.