Jump to content

Precise

Lifetime Sponsor
  • Posts

    1854
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    100%

Everything posted by Precise

  1. he spent that much time on the forum everyday, he'll be back vading lol
  2. here is what it could look like: if(!getInventory().isFull()) { //Chop if(!myPlayer().isAnimating() && !myPlayer().isMoving()) { if(TREE_AREA.contains(myPlayer())) { Entity tree = getObjects().closest(AREA_HERE, TREE_NAME); if (tree != null) { if(tree.interact("CHOP??")) add sleep here } } } }
  3. yes there is a methods for it, but then it will do nothing if the entity is not in the area. you want to filter out the ones like i have above
  4. RS2Object tree = getObjects().closest(AREA_HERE, TREE_NAME HERE); check out the api here for more options: http://osbot.org/api/org/osbot/rs07/api/EntityAPI.html
  5. interaction event spam clicks and other weird behavior, example would be dropping a full inventory of fish with .interact() and you'll see the difference with normal vs. low cpu
  6. low cpu mode helps a lot too, but may cause issues with some scripts so use it carefully
  7. it's resolved, just needed to save :P
  8. what lol add my skype, probably save more time: precise.scripting no need since onLoop throws Interrupted Exception
  9. could you show what is on these lines?
  10. to save time, which line does the unhandled exception occur at?
  11. if you are purchasing a private scripts make sure to get a quote for everything you want otherwise this will happen. It isn't the clients fault since it isn't supposed to handle every situation when you can't break before breaking, this is for the scripter to implement.
  12. this is a script related issue, not a client issue.
  13. this can be handled by the script. just check how much time left before break, like if < 2 minutes, walk to safe area and wait. The client cannot be responsible for this and must be handled by the script.
  14. http://osbot.org/api/org/osbot/rs07/api/Bank.html#enableMode-org.osbot.rs07.api.Bank.BankMode-
  15. i'd say the elite, and don't get a scuf
  16. getSettings().setRunning(true);
  17. ! Basically means NOT, like !Inventory.isEmpty() means NOT empty.
  18. Ok so, when you call: Entity tree = objects.closest("Tree"); You're getting the closest object which matches the name "Tree" and that only. So you could get a tree which is closest to you, but isn't in the area, and so it won't click it. The code i posted finds the closest object using a filter and only gets objects which have the name "Tree" AND are in the area you specified. let me know if i wasn't clear. Edit: here is another example of how you can write it, might be easier to understand: RS2Object tree = getObjects().closest(new Filter<RS2Object>() { @[member=Override] public boolean match(RS2Object o) { if(o != null && o.getName().equals("TREE_NAME") && AREA_HERE.contains(o)) { return true; } return false; } }); Precise.
  19. when attempting to find the closest and most appropriate tree in that area, i would recommend usng a filter like so: RS2Object tree = script.getObjects().closest(t -> t != null && t.getName().equals("TREE_NAME_HERE") && AREA_NAME_HERE.contains(t)); this will only find trees in that area. Precise.
  20. Was the only thing annoying me about my new laptop with a high resolution was i couldn't use OSBot easily. This fixed my issue, thanks for the easy guide. (i changed it for both jre and jdk for anyone who is having issues still). Precise.
  21. Seems to be more of an issue with the welcome random solver which will override the script, i'd include the logger, any other information and how to replicate if you can.
  22. I'd look into nested if statements like so: private State getState(){ if (getInventory().isFull()) { if(TheBank.contains(myPlayer())){ return State.Bank; } else { return State.WalkToBank; } } else if(Shop.contains(myPlayer())) { return State.BuyOre; } return State.WalkToOre; } Also would look into naming conventions.
  23. When I sometimes play legit I cba to dismiss them, and I'm pretty sure the built in Random solver does this already and would override any script anyways (if enabled).
×
×
  • Create New...