Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

roguehippo's Basket Filler

Featured Replies

Hello everyone, I am thinking about applying for scripter status and decided to show the community what i can do. Here is a script i quickly made to fill baskets! :) 

works by any banker npc just have the empty baskets and whatever object you want to fill them with in the bank.

includes: 

easy to use gui

all fruit / vegetable options 

 

let me know if any bugs are found, thanks!

( I updated with gui of time spent and baskets made)

the baskets made / hr will be around 1600 and can profit from like 150k - 300k depending on prices

BasketFiller.jar

Edited by roguehippo
updated file

  • Author

i dunno i havent really bought in enough quantity to check but probably a great amount for needing 0 reqs

I can actually add some paint to show baskets filled / hr and reupload

Edited by roguehippo

  • 4 weeks later...
  • 1 month later...
  • Author

i didnt really put too much time into it, maybe some feedback of how it is bad would let me fix it. 

  • 2 months later...

Is any chanse to script to work more than 1 hours + , it stop by it self it say bot need to restart.

On 8/11/2017 at 3:05 PM, roguehippo said:

i didnt really put too much time into it, maybe some feedback of how it is bad would let me fix it. 

If you want feedback, post the code and people can critique it.

I used a decompiler to take a look at your code and there are a few things I can see that could use some fixing up before applying for scripter status.

1) OSbot's API methods can fail and so you should be checking if they return true before sleeping after calling them. Example:

if (bank.depositAll()) {
	sleep;
}

2) You should be using conditional sleeps instead of just random sleeps so that the script waits till the condition has passed.

3) I don't know why you're declaring String arrays every time you want to interact with something. 

NPC banker = (NPC)this.getNpcs().closest(new String[]{"Banker"});

should be

NPC banker = (NPC)this.getNpcs().closest("Banker");

And even then, it's a good idea to store things as variables and even final variables if you know the value is never going to change.

  • Author
1 hour ago, d0zza said:

I used a decompiler to take a look at your code and there are a few things I can see that could use some fixing up before applying for scripter status.

1) OSbot's API methods can fail and so you should be checking if they return true before sleeping after calling them. Example:


if (bank.depositAll()) {
	sleep;
}

2) You should be using conditional sleeps instead of just random sleeps so that the script waits till the condition has passed.

3) I don't know why you're declaring String arrays every time you want to interact with something. 


NPC banker = (NPC)this.getNpcs().closest(new String[]{"Banker"});

should be

NPC banker = (NPC)this.getNpcs().closest("Banker");

And even then, it's a good idea to store things as variables and even final variables if you know the value is never going to change.

i didnt even know that osbot functions returned true if they were successful, i can think of so many places where this would get rid of some bugs. thanks so much for the helpful information!

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.