Hello OSBot scripters, Today I bring to you, a new store class library. I plan to maintain and modify this to work flawlessly. Until the OSBot team is able to add it into their API. I happen to know that there is already an library like this. However that library wasn't maintained or offered support for which I plan to do. Any feedback given will be appreciated and considered. 1. Setting up: A. You add the class files to your source and compile them with it. B. You import the Jar as an external library and include it with your script for usage.
2. Store example:
//Make a store instance
Store store = new Store(this.bot.getAPI());
//Check if store is open
if(store.isOpen()){
//Buy something
}else{
//Open the store
}
3. Item example:
//get item from the store
StoreItem item = store.getStoreItem("Bronze arrow");
//interacting with the item
if(item != null && item.getAmount>0){
item.interact("Buy 10");
sleep(1000);
}
Link: Store.java StoreItem.java Releases:
v0.2 - Store.jar
v0.1 - Store.jar
Changelogs: