Jump to content

Khaleesi

$250.00 Donor
  • Posts

    27133
  • Joined

  • Last visited

  • Days Won

    215
  • Feedback

    100%

Everything posted by Khaleesi

  1. public class AnimationCheck extends Script { private final Timer animationTimer = new Timer(3_000); @Override public void onStart() { } @Override public int onLoop() { if(myPlayer().isAnimating()){ animationTimer.reset(); } if(animationTimer.isRunning()){ log("Animating"); }else{ //Start doing whatever you wanted to do } return 50; } } Basic Timer class public class Timer { private long period; private long startTime; public Timer(long period) { this.period = period; startTime = System.currentTimeMillis(); } public boolean isRunning() { return getElapsed() < period; } public long getElapsed() { return System.currentTimeMillis() - startTime; } public long getRemaining() { return period - getElapsed(); } public void reset() { startTime = System.currentTimeMillis(); } public void stop() { period = 0; } public static String formatTime(long ms) { long sec = ms / 1000L; return String.format("%02d:%02d:%02d", Long.valueOf(sec / 3600L), Long.valueOf((sec % 3600L) / 60L), Long.valueOf(sec % 60L)); } }
  2. Ya do not use a while loop. You can use a Timer and set it to 2-3 seconds and reset it every time u animating and only start interacting or crafting when the timer is not running
  3. I don't think you can retrieve those values tbh, the only method available is getBot().getTimeUntilNextBreak();
  4. Khal Snither (All in One) updated to V1.17: - Banking efficiency improved - Banks noted items on start Live soon! Enjoy
  5. Khal Crafter updated to V3.08: - Banking improved - Banks noted items on start Live soon! Enjoy
  6. Khal Magic updated to V1.38: - Banking fficiency improved - Banks noted items on start Live soon! Enjoy
  7. return true => starts the breakhandler retrun false => stopts the breakhandler Every other logic is up to you how you want to implement it ^^ Have some kind of method in the breakmanager to set a variable which you can check in shouldActivate
  8. Hmm it should upgrade to it but only when it's going to bank in the chest, if you are using the depositbox it will never do it
  9. I was looking at my crafter It can just do withdraw all right?
  10. Ya but that's just chopping oaks right? Nothing to do with plankmaking
  11. Works for me, can you grab a screenshot fo the whole client when running and check the logger? Make sure to also have restarted your cleint after today OSBot update Not sure what you mean by this because all banking code is shared between all my scripts. So if 1 does it like that another will do it aswell... IS withdraw X selected in the bank? and 14 pieces correct?
  12. Yes you can chop oaks and make planks from them in woodcutting guild
  13. Ya that's not supported atm, it's on my todo list to check ti out though!
×
×
  • Create New...