creationx Posted April 24, 2015 Share 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. Quote Link to comment Share on other sites More sharing options...
Okabe Posted April 24, 2015 Share Posted April 24, 2015 new Position(X, Y, 0) 1 Quote Link to comment Share on other sites More sharing options...
Apaec Posted April 24, 2015 Share Posted April 24, 2015 if (!myPosition().equals(new Position(x,y,z))) { //blah } 1 Quote Link to comment Share on other sites More sharing options...
creationx Posted April 24, 2015 Author Share Posted April 24, 2015 Aha! Thank you much Quote Link to comment Share on other sites More sharing options...