creationx Posted April 24, 2015 Posted April 24, 2015 Hey guys, the noob here again! So I want to make sure that my character is in a certain position, and if he isn't, I want the script to stop. This is what I have. if (myPlayer().getPosition() != myPosition(X, Y, 0)) { log("We are not in position! Stopping script!"); } else { log("We are in position! Moving on!"); } When I type this I get a red squiggly under the "myPosition" part. My question is: How do I fix this so that the script will check that my character is in a certain position? I have added "import org.osbot.rs07.api.map.Position;" to the top of the script.
Apaec Posted April 24, 2015 Posted April 24, 2015 if (!myPosition().equals(new Position(x,y,z))) { //blah } 1