Alek Posted April 4, 2015 Share Posted April 4, 2015 This update is pretty large and encompasses something which everyone can benefit from. The FilterAPI now contains something called a singleFilter, returning the first matching result. With this, you don't have to wait for a collection to populate if you only need to filter for a single entity. On the subject of filters, you can now dynamically hop to worlds through the use of world filters in the new Worlds API. In this new API, you can scan for worlds using parameters of your choice such as if a world is P2P, has population of less than 1000, and is not a duel arena world. This will allow for stability in scripts that are reliant on world hopping. worlds.hopToP2PWorld(); Check out the World API here. And for the Worlds API click here. If you are unfamiliar with making filters, here is a quick snippet: Filter ActivityFilter = new Filter<World>() { @Override public boolean match(World world) { return world.getActivity().equals("Duel Arena"); } } Scripter note: The Worlds getAll() method behaves differently from other classes that extend FilterAPI. API such as NPCs can only return getAll() if you are logged into the game, however Worlds can only return getAll() if you are logged out. v2.3.57: -Added unregisterHook to RandomExecutor -Decreased RandomExecutor loop time in half -Added World API -Added Worlds API --Contains new world hopping methods -Deprecated WorldHopper -Added FilterAPI method singleFilter() -Added Widgets method singleFilter() -Added Widgets method getWidgetContainingText(id, text) -Added Widgets method getWidgetContaining(text) -Updated Dialogues API for general performance -Updated Bank API withdraw() method v2.3.58: -Updated Random Executor --Fixes a null issue people were having with world hopping -Other changes Have a great weekend! -The OSBot Staff 16 Link to comment
Bucket1337 Posted April 4, 2015 Share Posted April 4, 2015 (edited) Nice Update! Thank you! Edited April 4, 2015 by Slawa Link to comment
Jamez Posted April 4, 2015 Share Posted April 4, 2015 Very nice ! ALot of scripters needed this :p Link to comment
Czar Posted April 4, 2015 Share Posted April 4, 2015 (edited) Phew you just ended all the complaints from world hopping :P Loving the new filter! Filters, filters everywhere! Edited April 4, 2015 by Czar Link to comment
Kittens Posted April 4, 2015 Share Posted April 4, 2015 good to see you layed off the SHOTS and did tons of work. grats bae. still waiting for that script you said u could make Link to comment
Mysteryy Posted April 4, 2015 Share Posted April 4, 2015 Making me stop my bot and redownload. Damn you alek. Link to comment
Vource Posted April 4, 2015 Share Posted April 4, 2015 This is a very nice update! Thank's for keeping us posted. Cheers, ~Vource. Link to comment
Fused Posted April 4, 2015 Share Posted April 4, 2015 Will this break any scripts? Also thanks Link to comment
Administrator Maldesto Posted April 4, 2015 Administrator Share Posted April 4, 2015 Thanks Link to comment
Alek Posted April 4, 2015 Author Share Posted April 4, 2015 Will this break any scripts? Also thanks I don't think any scripts will be affected. Scripts that have world hopping currently however will not be using the new world hopper until the scripter updates his/her script. Link to comment