Jump to content

Moving 1 square from position[solved]


GPSwap

Recommended Posts

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
Link to comment
Share on other sites

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));
}

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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