Jump to content

Explv

Scripter II
  • Posts

    2314
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    100%

Everything posted by Explv

  1. Are you using CLI ( running OSBot from the command line) / an external application to launch OSBot? Are you using a proxy? Is your internet restricted in any way? Can you use the official osrs client? Are you using Java 8 and not any other version?
  2. Reuploading tonight, will be adding more features soonish
  3. Sorry forgot, will upload tonight. Accidentally leaked some private info, so just nuked the repo.
  4. If the item is a stacked item then what you posted should work. If it is not however, then it will be a little more complex. If you don't care if the ground items are all in the same position then you can do: List<GroundItem> items = getGroundItems().filter(getGroundItems().getAll(), new NameFilter<>("Item name")); if (items.size() >= 28) { ... } If you want to check if the ground items are all in the same stack, then it is a little more complicated. I *think* there is a way to get the stack in the API but i'm not sure. I can post some code if you really need.
  5. Yah, me dun did a goof, so me delete. Long storyerino. Will b reuploading this weekenderino, maybe b uploading new version, we will c
  6. Use your noggin and Google "osrs clipping flags" (what they are called in the API description) Pretty sure you don't need to specify that parameter though.
  7. You could maybe try handling the ditch crossing yourself. The delay before might be an issue where WebWalkEvent takes a while to break, i'm not really sure though.
  8. You mean it takes 5-10 seconds to click the widget?
  9. @sonda In your break condition: return widgets.get(475, 11).isVisible(); You need to make sure the widget returned by .get() is not null before calling isVisible. Otherwise an NPE will be thrown.
  10. You seem to think that everything sounds like mumble rap (hint, it doesn't) It's pretty good man, good job
  11. Explv

    OSBot 2.4.147

    Good decision to add the old logger back
  12. for (final Task task : tasks) { if (task.canProcess()) { task.process(); break; } } Please see my edited comment, I did not fully read yours.
  13. When you loop through the tasks, you could always break the loop once you process a task so that it starts over from the top.
  14. Really depends on what script he is making.
  15. That depends on whether he plans on losing his equipment during the script. If he only needs to check once, why cache?
  16. Except he doesn't need to cache anything.. The structure of his code is the problem.
  17. Why don't you just check if the player already has the items in their inventory / equipment? If they don't then check the bank If they still don't then go to GE. Sounds like the structure of your code is borked ("Task" pattern sucks)
  18. My chill playlist. There's probably a few trash songs in there because i'm too lazy to clean it up, but I enjoy it.
  19. Yes you will need to use more than one Area: You will need to implement some logic where if there is no tree in your current Area, walk to the next Area.
  20. Looking at your Area: It seems like the different Yew tree spawns are pretty far apart from each other. You *may* need to add your own code to say, "if there are no yew trees in my current spawn, walk to another yew tree spawn". That is assuming that there are no other issues with your code, which I cannot tell as you have only posted a small snippet.
  21. Because OOP. Regarding the original post though, would not recommend.
×
×
  • Create New...