Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Moving 1 square from position[solved]

Featured Replies

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

  • Author
8 minutes ago, Eagle Scripts said:

Use WalkingEvent instead and set the minDistanceThreshold to 0

TYVM

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

 

 

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 :s

It gets the correct positions in the log just wont walk

use myPosition().translate(0, -1);

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.