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.

best way to add potting to a script

Featured Replies

Hi, I was looking at adding potting to a script. Not sure if i am missing something but I couldn't work out how best to go about it:

Firstly I thought: is it possible to grab the boosted say strength level and repot below a certain threshold: couldn't work out how to do this? Could just be missing a method on API

Secondly, I thought about adding a slightly random timer and potting in the timer after a 'random' amount of time. so after 700 seconds repot next time after 550 seconds repot

16 minutes ago, scriptersteve said:

Firstly I thought: is it possible to grab the boosted say strength level and repot below a certain threshold: couldn't work out how to do this? Could just be missing a method on API

Go with this option.

Compare the dynamic level and the static level of a skill to see if you should pot or not.

if((getSkills().getDynamic(Skill.STRENGTH) - getSkills().getStatic(Skill.STRENGTH)) < minDiff) {
                //pot
            }

Edited by Jammer

Just now, Jammer said:

Go with this option.

Compare the dynamic level and the static level of a skill to see if you should pot or not.

This should indeed work :)

15 minutes ago, scriptersteve said:

Hi, I was looking at adding potting to a script. Not sure if i am missing something but I couldn't work out how best to go about it:

Firstly I thought: is it possible to grab the boosted say strength level and repot below a certain threshold: couldn't work out how to do this? Could just be missing a method on API

Secondly, I thought about adding a slightly random timer and potting in the timer after a 'random' amount of time. so after 700 seconds repot next time after 550 seconds repot

https://osbot.org/api/org/osbot/rs07/api/Skills.html#getDynamic-org.osbot.rs07.api.ui.Skill-

for grabbing boosted and actual levels

  • Author

thanks guys - appreciate it: so getDynamic() gets boosted level and getstatic gets actual?

Edited by scriptersteve

1 minute ago, scriptersteve said:

thanks guys - appreciate it: so getDynamic() gets boosted level and getstatic gets actual?

Yes

  • Author
4 minutes ago, scriptersteve said:

thanks guys - appreciate it: so getDynamic() gets boosted level and getstatic gets actual?

Nvr mind just read jammers :)

13 minutes ago, Jammer said:

Go with this option.

Compare the dynamic level and the static level of a skill to see if you should pot or not.

if((getSkills().getDynamic(Skill.STRENGTH) - getSkills().getStatic(Skill.STRENGTH)) < minDiff) {
                //pot
            }

Thanks

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.