semanresu 0 Share Posted March 23 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 ScriptManager.getScriptManager().getAllScriptNames(); ScriptManager.getScriptManager().start(ClassClass); Client.getInstance().getScriptManager()... All throw this error upon compiling. Any ideas how to solve? Link to comment Share on other sites More sharing options...
Deep Slayer 20 Share Posted March 23 (edited) @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 March 23 by Deep Slayer Link to comment Share on other sites More sharing options...
Meteorite 54 Share Posted March 26 Same error when trying to do this.getScriptManager().start(MeteoriteWalker.class); class file for org.dreambot.3v not found Link to comment Share on other sites More sharing options...
Meteorite 54 Share Posted March 27 @Pandemic Chance for an insight on this? We can't seem to use the API for ScriptManager. Link to comment Share on other sites More sharing options...
Pandemic 2714 Share Posted March 28 You need to specify the version that has args (even if just null), and I believe you need to use the script's name as shown in the Script Manager panel instead of a class file. Deep Slayer 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now