scriptersteve Posted January 13, 2018 Share Posted January 13, 2018 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 Quote Link to comment Share on other sites More sharing options...
Jammer Posted January 13, 2018 Share Posted January 13, 2018 (edited) 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, 2018 by Jammer 1 Quote Link to comment Share on other sites More sharing options...
Eagle Scripts Posted January 13, 2018 Share Posted January 13, 2018 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 Quote Link to comment Share on other sites More sharing options...
CasDeBlanco Posted January 13, 2018 Share Posted January 13, 2018 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 Quote Link to comment Share on other sites More sharing options...
scriptersteve Posted January 13, 2018 Author Share Posted January 13, 2018 (edited) thanks guys - appreciate it: so getDynamic() gets boosted level and getstatic gets actual? Edited January 13, 2018 by scriptersteve Quote Link to comment Share on other sites More sharing options...
Jammer Posted January 13, 2018 Share Posted January 13, 2018 1 minute ago, scriptersteve said: thanks guys - appreciate it: so getDynamic() gets boosted level and getstatic gets actual? Yes Quote Link to comment Share on other sites More sharing options...
scriptersteve Posted January 13, 2018 Author Share Posted January 13, 2018 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 Quote Link to comment Share on other sites More sharing options...