Everything posted by Apaec
-
APA Rooftop Agility
Sure - trial activated -Apa
-
APA Script Trials
Sure - trial activated -Apa
-
APA AIO Cooker
Glad the script works well for you and congrats on 99! -Apa
-
APA Script Trials
Sure - trial started. Have you considered botting at Sand Crabs instead? They're much better exp/h! -Apa
-
APA AIO Smither
Both trials started Thanks for stopping by Apa
-
APA Rooftop Agility
Sure - trial started Hmm, not sure why the script would not recognise it has fallen, perhaps it could be something to do with mirror mode. I'll take a look and see if I can recreate this. Glad to hear that the script is working well other than this issue, and that you've achieved graceful Apa
-
APA Script Trials
Both trials started Thanks for stopping by. -Apa
-
APA Script Trials
Both trials activated - thanks for stopping by! -Apa
-
APA Script Trials
Sure - trial started Apa
-
APA Rooftop Agility
Sure - trial started! Apa
-
APA Rooftop Agility
Thanks both! -Apa Hmm, thanks for letting me know. I'm not sure if tweaking the timings will be possible with the current script structure, but i've made a note of this issue and will see if I can do something to tune the Draynor course. Apa
-
APA Rooftop Agility
Sure. Trial activated! -Apa
-
APA Script Trials
Sure - trial started. Enjoy Apa
-
APA Script Trials
Sure - trial started Have you considered sand crabs instead? They're much better exp/h! Apa
-
Trying to understand this Sleep class
As you say, you're able to use the `sleep` method as the class extends ConditionalSleep, but you still need to construct an instance of the ConditionalSleep parent class for this to happen. In the same way, ConditionalSleep (which extends `Object`) has to construct an instance of Object. Rather than trying to explain the details of this myself, I think it would be better to refer you to the Java documentation about inheritance, as this should answer your question while giving you wider understanding: https://docs.oracle.com/javase/tutorial/java/IandI/subclasses.html Apa Edit: I'd recommend going through the whole of the tutorial I link, not just the page at that URL. It explains the concepts very nicely!
-
APA Script Trials
Sure- trials started Apa
-
Trying to understand this Sleep class
As you correctly say, the `super` keyword is a means to access the parent class. Roughly speaking, to construct an instance of a child object (e.g. Sleep in this case), an instance of the parent class also must be constructed (ConditionalSleep). If it did not do this, then how would you access the `sleep` method of ConditionalSleep? The `super` keyword when used in the constructor enables this: in this particular case, it will create an instance of the parent class with the `ConditionalSleep(int timeout)` constructor. It is clear that this is necessary as the ConditionalSleep class needs to know the duration of the sleep. The `condition` method is actually used by the ConditionalSleep class. As you again rightly say, it is abstract, so though ConditionalSleep refers to it, it does not provide a concrete implementation. It is for this reason that ConditionalSleeps are commonly defined anonymously, e.g.: new ConditionalSleep(3000) { @Override public boolean condition() { return getCombat().isSpecialActivated(); } }.sleep(); This class which you show simply provides a concrete implementation for the condition method, where a BooleanSupplier (supplied during construction) provides the return value. It looks like this class is essentially pointless, other than perhaps to enable succinct code by working with BooleanSuppliers rather than anonymous instantiations. If it's easier to understand for you, i'd stick with anonymous instances, or you could create your own concrete sleep classes, e.g.: public class RunSleep extends ConditionalSleep { private final MethodProvider mp; public RunSleep(MethodProvider mp, int timeout) { super(timeout); this.mp = mp; } @Override public boolean condition() throws InterruptedException { return mp.getSettings().isRunning(); } } Hopefully this is helpful, let me know if you're still stick or have any further questions, i'm always happy to help. Good luck! -Apa
-
APA Script Trials
Done! Sure, trial activated. Have you considered Sand Crabs instead? They're much better exp/h! -Apa
-
APA AIO Smither
Sure- trial started. Hey - it looks like the latest client build is having some problems (this should be the case for most/all scripts, see https://osbot.org/forum/topic/160945-stable-osbot-2583/). Please be patient while the developers work on a fix, and in the mean time use stealth injection -Apa
-
APA Script Trials
Sure - trial started -Apa
-
APA Den Cooker
Hey, This script only works at Rogues den - I presume the script is failing to find a path to Rogues Den which is what is causing this issue. If you start the script at Rogues den, do you still have this issue? -Apa
-
APA Den Cooker
Hey, please could you elaborate on the problem a little? I'm not sure what you mean exactly. Are you starting at Rogues den? Apa
-
APA AIO Smither
Sure - trial started. Enjoy! Apa
-
APA Script Trials
Both trials activated -Apa
-
APA AIO Miner
Hi all, apologies for no replies. For some reason I was unfollowed from this thread, and therefore didn't get a notification when you all posted. I'm not sure why people are experiencing slow mining, perhaps try in stealth injection? I will investigate this further nevertheless. If there is anything I can still help with, please quote this reply. -Apa