Jump to content

Apaec

Scripter III
  • Posts

    11162
  • Joined

  • Last visited

  • Days Won

    91
  • Feedback

    100%

Everything posted by Apaec

  1. Sure - trial started. Enjoy Apa
  2. Sure - trial started Have you considered sand crabs instead? They're much better exp/h! Apa
  3. 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!
  4. Sure- trials started Apa
  5. 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
  6. Done! Sure, trial activated. Have you considered Sand Crabs instead? They're much better exp/h! -Apa
  7. 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
  8. Sure - trial started -Apa
  9. 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
  10. 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
  11. Sure - trial started. Enjoy! Apa
  12. Both trials activated -Apa
  13. Apaec

    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
  14. 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. This script is certainly in clear need of a re-write, I was working on one not long ago, although it seems the game has changed significantly since then so I may need to start from scratch. While I find the time for this rewrite, I will leave the script available on the SDN in case the Yanille portal is still useful to people. I'm not sure what an ETA on this rewrite will be, but I will post updates once I start. Cheers -Apa
  15. 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. Please let me know if there is anything I can help with by quoting this reply -Apa
  16. Apaec

    APA Rune Sudoku

    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. Please let me know if you're still interested in a trial by quoting this reply -Apa
  17. Sure - trial started Apa
  18. Sure - trial started -Apa
  19. Hey, Previously the script had this check, however occasionally the quest data would not be cached upon login from a break, and the script would think that the priest in peril quest wasn't complete even if it was. To prevent this from stopping the script for users, I removed the check altogether. I'll have to do some test runs to see whether this is still and issue and whether I can add the check back in, but for now i'd just recommend to manually configure the script without progressive mode when approaching the canifis course level. Best Apa
  20. The den cooker script is free - i've assumed that you meant the AIO cooker version. Please let me know if this is not what you meant! Both trials activated Apa
  21. Sure - trial started Apa
  22. Sure - trial started. Have you considered training at Sand crabs instead? They're much better exp! -Apa
  23. Both trials activated Thanks for stopping by Apa
  24. Sure- trial started Apa
  25. Both trials activated -Apa
×
×
  • Create New...