Jump to content

Moving 1 square from position[solved]


Recommended Posts

Posted (edited)

Trying to move 1 square south from current positon on a message, I thought this would work but it doens't seem to be :s

It gets the correct positions in the log just wont walk
 

{
    		  getX = myPlayer().getX();
    		  getY = myPlayer().getY() - 1;
    		  log("X " + getX + " Y " + getY);
    	  	newSpot = new Position (getX,getY,0);
    	  	log (newSpot);
    	  	getWalking().walk(newSpot);
    	  	
    	  	
    	}

 

Edited by GPSwap
Posted
1 hour ago, GPSwap said:

Trying to move 1 square south from current positon on a message, I thought this would work but it doens't seem to be :s

It gets the correct positions in the log just wont walk
 


{
    		  getX = myPlayer().getX();
    		  getY = myPlayer().getY() - 1;
    		  log("X " + getX + " Y " + getY);
    	  	newSpot = new Position (getX,getY,0);
    	  	log (newSpot);
    	  	getWalking().walk(newSpot);
    	  	
    	  	
    	}

What he said is definitely a life saver, another thing I used to do before I had known that method (although I knew the tile deviation for walking 1 tile) I would check if my player was on that exact position, then if not I would just hover the tile and left click mouse.


if(miningGuildIron[1] != null && miningGuildIron[1].isVisible() && myPosition() != miningGuildIron[1])	{
	miningGuildIron[1].hover(bot);
	sleep(random(411, 611));
	mouse.click(false);
	sleep(random(1412, 2211));
}

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...