semanresu 0 Posted March 23, 2024 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?
Deep Slayer 63 Posted March 23, 2024 (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, 2024 by Deep Slayer
Meteorite 81 Posted March 26, 2024 Same error when trying to do this.getScriptManager().start(MeteoriteWalker.class); class file for org.dreambot.3v not found
Meteorite 81 Posted March 27, 2024 @Pandemic Chance for an insight on this? We can't seem to use the API for ScriptManager.
Pandemic 2853 Posted March 28, 2024 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
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