New to coding in general so let me start off with sorry if this is long winded. Im just trying to write a simple script for the experience but I keep running into a wall. Im trying to start by just having my script attack goblins in lumbridge then pick up the bones and finally bury them.
Following the examples given in the Scripting Overview doc Im able to attack goblins and then pick up the bones using the Pickables.getNearest example with the filter for distance. My first question is, how would I get my script to wait until Im done attacking to pick up the bones? As it is now I just use Time.sleep and wait 30-45 seconds randomly to pick up. Ive tried to use Time.sleepUntil(!local.isAnimating) but I get the red underline and ‘cannot resolve method sleepUntil(boolean)’
My next question where would I start to get my script to check my inventory for something and then interact with it? Ive looked at the docs for RSPeer but admittedly everything starts to run together for me so I have a bit of difficulty keeping my thoughts straight.
In the meantime, I think Im going to take a step back to compose myself and do a bit of reading/learning on Java in general to get a better grasp on things. I very much appreciate anyone that might take the time to read this and give any input. Thank you!
edit: spelling. wording.