Everything posted by Explv
-
Explv's AIO [13 skill AIO in 1 script]
I think saving/loading is broken at the moment, will take a look at fixing it this weekend
-
Explv's OSBot Manager
I might find some way to do it I'll take a look. If not I'll probably update my tut island script to include a parameter that closes the client when the script finishes, as I would be able to detect that. Edit: nevermind I have thought of a very simple way of doing this. It will require the manager to close the OSBot client after each script finishes however. I will implement this, along with the scheduling this weekend.
-
Explv's OSBot Manager
I will be adding a scheduler at some point to start scripts at specific times. I can probably modify my tut island to achieve the second one, however to do it for other scripts would require modification of the source code. I'll think about adding the third one.
-
Explv's AIO [13 skill AIO in 1 script]
Thanks for the report i'll take a look when I get home
-
Optimizing Code - Iterating over Objects/NPCS & Inventory Slots
Use Filters to filter npcs: Filter class: http://osbot.org/api/org/osbot/rs07/api/filter/Filter.html Filter API: http://osbot.org/api/org/osbot/rs07/api/filter/FilterAPI.html Example usage: List<NPC> fishingSpots = getNpcs().filter(getNpcs().getAll(), new Filter....);There is also a .singleFilter method that will return a single NPC
-
Can someone check if this script works on your PC?
To put it very simply, you can't make API calls before onStart() is called, because context has not yet been exchanged with your script
-
Can someone check if this script works on your PC?
Try moving that line into getState() (or remove it)
-
Graph for webwalker?
Nope, you'll have to do it yourself
-
Explv's AIO [13 skill AIO in 1 script]
I have added a show/hide button to the paint, it will be displayed when the SDN is next updated.
-
Explv's OSBot Manager
Sorry I don't understand what you mean
-
Explv's AIO [13 skill AIO in 1 script]
Sure I'll add a show/hide button
-
Explv's AIO [13 skill AIO in 1 script]
Recent updates now available: Improved stability of firemaking, added new firemaking locations Improved stability of agility Now drops gems as well as ores when mining in drop mode Added paint Fixed arrow shaft fletching, added javelin shaft fletching Fixed crafting level up where level up dialogue not continued Fixed agility banking Fixed Tutorial Island not completing first dialog Fixed clay & coal mining where it banks after 1 "ore" Fixed shrimp fishing
-
Remove the ability to gain post count from the off-topic section
100% Support Either this or change the rules
-
Explv's OSBot Manager
Issue resolved, user had space after passwords, I will add some more error checking to try and help future users
-
Explv's AIO [13 skill AIO in 1 script]
I have pushed a fix for arrow shaft fletching, it will be available when the SDN is next updated.
-
Explv's OSBot Manager
Yes, you press the save button at the top right
-
Explv's AIO [13 skill AIO in 1 script]
I have pushed some changes to improve firemaking, I have also added some new locations, the full list is now: Grand Exchange Lumbridge Varrock West Falador East Draynor Al Kharid Edgeville Seers' Village Varrock East Yanille If you would like me to add any more locations let me know. You will be able to use the latest firemaking when the SDN is updated, I will post again when it is available. Thanks
- Explv's Walker
-
[Java] Help with ArrayList please? Would appreciate it since i cant seem to understand the problem
If I understand you correctly, you are trying to write a method that gets all the fighters that have any of the initials in a String, and the same Combat style, and you want to remove those from the barracks and return them as a new list? If so, why not get rid of all those Lists and just use an iterator: private List<Fighter> callFighters(String initial, Combat combat) { String upperCaseInitial = initial.toUpperCase(); List<Fighter> calledFighters = new ArrayList<>(); for (Iterator<Fighter> fighterIterator = barracks.iterator(); fighterIterator.hasNext();) { Fighter fighter = fighterIterator.next(); if (upperCaseInitial.contains(Character.toString(fighter.getInitial())) && fighter.getCombatStyle() == combat) { calledFighters.add(fighter); fighterIterator.remove(); } } return calledFighters; }
- Explv's OSBot Manager
-
Guranteed Dismissal of Random Events
I'm pretty sure the built in solver does the same thing as your code, have you tested this with the same random events that the built in solver doesn't work for? Did you file a bug report detailing the case where it didn't work so that the devs can fix it?
-
Explv's Tutorial Island [Free] [Random Characters]
Have you updated to the latest version? 5.1 I added a fix for this
-
if player is in closest bank
Why would you sort the Areas to determine if you are in the closest bank? Just loop over the Area[]... if you are in one of the Areas, guess what? You are in the closest bank. To walk to the closest bank you can just call getWalking().webWalk(bankAreas)
-
if player is in closest bank
All you need to do is check if any of the Areas in the Area[] contain your Position. I'll give you a hint, you might want to use a for loop: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/for.html
-
if player is in closest bank
Consider reading this tutorial on Arrays: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html