Jump to content

Apaec

Scripter III
  • Posts

    11151
  • Joined

  • Last visited

  • Days Won

    91
  • Feedback

    100%

Everything posted by Apaec

  1. All trials activated! Thanks for stopping by -Apa
  2. Sure - trial started Apa Fair enough, not sure if the chances of ban differs between those locations, but rock crabs are certainly a lot less crowded so player reports are less likely. Let me know if you would like a Sand Crabs trial at any point in the future! -Apa
  3. Sure - trial activated -Apa
  4. Sure - trial activated -Apa
  5. Glad the script works well for you and congrats on 99! -Apa
  6. Sure - trial started. Have you considered botting at Sand Crabs instead? They're much better exp/h! -Apa
  7. Both trials started Thanks for stopping by Apa
  8. 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
  9. Both trials started Thanks for stopping by. -Apa
  10. Both trials activated - thanks for stopping by! -Apa
  11. Sure - trial started Apa
  12. Sure - trial started! Apa
  13. 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
  14. Sure. Trial activated! -Apa
  15. Sure - trial started. Enjoy Apa
  16. Sure - trial started Have you considered sand crabs instead? They're much better exp/h! Apa
  17. 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!
  18. Sure- trials started Apa
  19. 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
  20. Done! Sure, trial activated. Have you considered Sand Crabs instead? They're much better exp/h! -Apa
  21. 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
  22. Sure - trial started -Apa
  23. 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
  24. 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
  25. Sure - trial started. Enjoy! Apa
×
×
  • Create New...