Jump to content

best way to add potting to a script


scriptersteve

Recommended Posts

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

Link to comment
Share on other sites

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
  • Like 1
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...