FearMe 43 Share Posted July 31, 2018 is this possible without having to rewrite it myself? cant seem to find any of the random solver/managers instances havent scripted dreambot or any other bot in more than 3 years Link to comment Share on other sites More sharing options...
Nex 2542 Share Posted July 31, 2018 depends on what you wanna do,https://dreambot.org/javadocs/org/dreambot/api/randoms/RandomSolver.html Link to comment Share on other sites More sharing options...
FearMe 43 Author Share Posted July 31, 2018 16 minutes ago, Nex said: depends on what you wanna do,https://dreambot.org/javadocs/org/dreambot/api/randoms/RandomSolver.html ok thats nice and all but i can't find the RandomSolver instance, so I'm not able to execute the on-static methods edit:ok i got as far AbstractScript#getRandomManager() but that still gives me nothing to work with Link to comment Share on other sites More sharing options...
Milasoft 202 Share Posted July 31, 2018 3 hours ago, FearMe said: ok thats nice and all but i can't find the RandomSolver instance, so I'm not able to execute the on-static methods edit:ok i got as far AbstractScript#getRandomManager() but that still gives me nothing to work with Create a new LoginSolver and register it with the RandomManager #register method. It states that: Quote Registers a random solver with priority higher than default. If two or more random solvers are registered, the one registered last will have priority Link to comment Share on other sites More sharing options...
Nuclear Nezz 2055 Share Posted July 31, 2018 public class YourLoginSolver extends RandomSolver public YourLoginSolver(AbstractScript script){ super("FearLogin",script); } fill in needed methods. then in your onStart(): YourLoginSolver yourLoginSolver = new YourLoginSolver(this); getRandomManager().disableSolver(RandomEvent.LOGIN); getRandomManager().registerSolver(yourLoginSolver); getRandomManager().enableSolver("FearLogin"); Edit: For helpful methods to handle logging in, see script.getLoginUtility() and cycle through the methods you see. Docs on the class are not yet released, I don't think. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.