Jump to content

OSBot 2.3.57/58 - Weekend Release - New World API + Filters


Alek

Recommended Posts

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
  • Like 16
Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...