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 Optimizations

Featured Replies

I'm looking for possible ways to optimize a script or lower CPU usage from my script. Are there any practices I should implement that are great for lowering CPU usage?

Also, there is something I notice with the scripts. If I use it, it will work fine normally but when I have say multiple of them running at the same time they will start to misclick with certain stuff, such as interacting with a NPC etc. Is this due to the CPU being a limiting factor or could it be something else? I am hoping to squeeze out as many bots as I can on a single server/vps.

  • Cache data as @ProjectPact mentioned
  • Avoid updating the cache every other second if it can be helped
  • Bulky logic and calculations belong in your main script loop
  • Keep rendering to a minimum and allow users to turn it off
  • Use multi-threading in places where it makes sense to handle multiple set of tasks separately
  • For power-users, script parameters > GUI
  • If the task is simple, then the code should be too. Don't go overboard with task nodes, switch-case states, etc. think 'happy path'.

Also, you should check out:

 

Anything that you're painting. Scripts with fancy paints are certainly more cpu expensive than a script with absolutely no paint.

6 hours ago, Alek said:

Anything that you're painting. Scripts with fancy paints are certainly more cpu expensive than a script with absolutely no paint.

Perhaps it's worth adding some sort of box you can tick/script parameter you can enter to forcibly turn it off/on.

21 minutes ago, liverare said:

Perhaps it's worth adding some sort of box you can tick/script parameter you can enter to forcibly turn it off/on.

Low resource mode, if I have the checkbox there I will have complaints that users cant see their paints, even if it says "Disable paint".

On 9/11/2018 at 3:11 PM, flakeybanana said:

Extra question :

Will switching from webwalk to path's significantly reduce resource usage?

it will

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.