Jump to content

progamerz

Scripter II
  • Posts

    3474
  • Joined

  • Last visited

  • Days Won

    4
  • Feedback

    100%

Everything posted by progamerz

  1. private void GoToMill2() throws InterruptedException { Position outsideMill = new Position(3166, 3300, 0); Position insideMill = new Position(3166, 3305, 0); if (!getMap().canReach(outsideMill)) { if (getDoorHandler().handleNextObstacle(outsideMill)) { ConditionalSleep2.sleep(5000, 500, () -> getMap().canReach(outsideMill)); } } else { WalkingEvent walk = new WalkingEvent(outsideMill); execute(walk); } // OR if (!getMap().canReach(outsideMill)) { RS2Object gate = getObjects().closest(o -> o.getName().equalsIgnoreCase("Gate") && o.hasAction("Open")); if (gate.interact("Open")) ConditionalSleep2.sleep(5000, 500, () -> getMap().canReach(outsideMill)); } else { WalkingEvent walk = new WalkingEvent(outsideMill); execute(walk); } } Basically the first method, it tries to use the DoorHandler API, which you pass in the position where you want to go to, and it will handle the obstacles, that will not let it reach the position https://osbot.org/api/org/osbot/rs07/api/DoorHandler.html The second method, is you handling the obstacle manually(without using the DoorHandler API) Both should work, but make sure to only keep one of the both methods.
  2. If you want you can post the code on something like pastebin and i can help, most probs its not from the conditional sleep
  3. @Sujamma It doesn't work because theoretically, it never changes the value of gate again, so it is stored as an old object which is closed, what you can do is use this new ConditionalSleep(5000, 600) { @Override public boolean condition() { return getObjects().closest(o -> o.getName().equals("Gate") && o.getPosition().equals(gate.getPosition()) && !o.hasAction("Open")) != null; } }.sleep(); The way this works, is that it keeps checking every 600ms if the condition is true, here we are trying to find new object which has the same position as the gate which we interacted but is opened
  4. Authed trial to all of you, enjoy
  5. The thing is that i currently don't have an acc that has burners unlocked or gilded altar
  6. At the time being no, but i'm thinking of adding support to it later
  7. Authed, enjoy
  8. RS2Object larder = getObjects().closest(o -> o.getName().equals("Object name here")); if (larder != null) if (larder.hasAction("Build"){ //add your building code here } else if (larder.hasAction("Remove"){ //add your remove larder code here }
  9. To use spoilers, you just surround whatever you want to be in the spoiler with [ spoiler ] and [ /spoiler ](spaces removed) Best of luck!
  10. Authed, enjoy
  11. Authed, enjoy
  12. Authed, enjoy
  13. Okay thanks, i will try to replicate and i will push a fix ASAP. Edit: I pushed v3.8, which should try to fix this, allow up to 24hrs for it to be live
  14. Activated trial, enjoy
  15. F2P is free to play, means without membership Idk tbh how much you can run to avoid bans, but if u let the account do something other than killing cows, like fishing/wc and having breaks you can survive in my opinion.
  16. You can try that, but i don't think you will survive the ban because its F2P
  17. Activated trials, enjoy
  18. What weapon are you using? can u take a screenshot of the combat styles tab? send me the logger, you can paste it on https://ghostbin.co/
  19. Sure, activated trial enjoy
  20. Activated trials, enjoy
  21. Authed, enjoy
  22. Authed, enjoy
  23. Enabled, enjoy
×
×
  • Create New...