January 13, 20188 yr 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
January 13, 20188 yr 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 January 13, 20188 yr by Jammer
January 13, 20188 yr 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
January 13, 20188 yr 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
January 13, 20188 yr Author thanks guys - appreciate it: so getDynamic() gets boosted level and getstatic gets actual? Edited January 13, 20188 yr by scriptersteve
January 13, 20188 yr 1 minute ago, scriptersteve said: thanks guys - appreciate it: so getDynamic() gets boosted level and getstatic gets actual? Yes
January 13, 20188 yr 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