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.

Script help - Items

Featured Replies

Hey,

I'm trying to write my first script and so far I feel it's going ok, however, If I want it to loot items does the first letter of the item have to be capitals exactly as it shows or does it not matter?

And how would I implement it to pick something up over a set value? 

 

Thanks

  • Author
1 minute ago, Juggles said:

 

 

 

Oh thanks Juggles, I'll look see if I can understand it :P

8 minutes ago, Pogba said:

If I want it to loot items does the first letter of the item have to be capitals exactly as it shows or does it not matter?

This is basic java.

String.toLowerCase().equals(String.toLowerCase())

 

And to answer how you can implement picking up items with values over X,

 

You need to access a database of item values and when you find a new item on the ground which you have not stored the value of you query the value.

You then make an item filter for nearby items and filter them based on their value you got earlier.

(do NOT re-query every item every loop cycle but rather store the value if read once)

 

Also for ideal income you should create your own unit of measurement for an items "worth" to pick up.

What if you have an item worth 2M that is 10 tiles away and an item worth 1M 1 tile away.

You generally want to grab the closer one if the worth of it is not too low.

This can ofc be expanded and tweaked to your liking.

Edited by House

  • Author
1 minute ago, House said:

This is basic java.

String.toLowerCase().equals(String.toLowerCase())

 

And to answer how you can implement picking up items with values over X,

 

You need to access a database of item values and when you find a new item on the ground which you have not stored the value of you query the value.

You then make an item filter for nearby items and filter them based on their value you got earlier.

(do NOT re-query every item every loop cycle but rather store the value if read once)

 

Also for ideal income you should create your own unit of measurement for an items "worth" to pick up.

What if you have an item worth 2M that is 10 tiles away and an item worth 1M 1 tile away.

You generally want to grab the closer one if the worth of it is not too low.

 

Ah thanks House, thought I'd attempt to look at my own script before purchasing from someone, I'll probably fail but...

Just now, Pogba said:

Ah thanks House, thought I'd attempt to look at my own script before purchasing from someone, I'll probably fail but...

 

You cant fail if you never stop typing :doge:

  • Author
Just now, House said:

 

You cant fail if you never stop typing :doge:

 

Haha true :ditto:

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.