Jump to content

progamerz

Scripter II
  • Posts

    3466
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    100%

Everything posted by progamerz

  1. Currently i don't have CLI support for this, when you run it through the cli you should use script id: 1067 In few days, i'll be sure to add CLI parameters.
  2. Pushed update v2.0 Changelog: - Added "personal host" mode, which makes the player be able to light up incenses - Added multiple modes to bank for gilded altar for the location Remmington Allow up to 24hrs for the sdn version to be updated.
  3. Thanks I am also working on an update which should make it also better!
  4. "smart people" don't do 6 hours straight, bans have many factors, i might be able to run a script for 12hrs straight and not get banned and others might get banned. You could've got a delayed ban.
  5. If you don't bot smart, thats what you can expect, and botting is against the game rules
  6. 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.
  7. If you want you can post the code on something like pastebin and i can help, most probs its not from the conditional sleep
  8. @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
  9. Authed trial to all of you, enjoy
  10. The thing is that i currently don't have an acc that has burners unlocked or gilded altar
  11. At the time being no, but i'm thinking of adding support to it later
  12. 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 }
×
×
  • Create New...