GPSwap Posted July 17, 2017 Posted July 17, 2017 (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 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 July 17, 2017 by GPSwap
Eagle Scripts Posted July 17, 2017 Posted July 17, 2017 Use WalkingEvent instead and set the minDistanceThreshold to 0 1
GPSwap Posted July 17, 2017 Author Posted July 17, 2017 8 minutes ago, Eagle Scripts said: Use WalkingEvent instead and set the minDistanceThreshold to 0 TYVM 1
strange_kid Posted July 17, 2017 Posted July 17, 2017 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 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)); }
Team Cape Posted July 17, 2017 Posted July 17, 2017 17 hours 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 It gets the correct positions in the log just wont walk use myPosition().translate(0, -1); 1