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.

Walking?

Featured Replies

I'm not sure of how to walk.

I know that if i declare an area, and it is in range, i can make him walk there by:

walk(MY_AREA);
sleep(random(780, 1320));

However, i'm not sure how to make him walk to specific coords. Also, instead of making him walk on the same 50 tiles OVER and OVER, how can i make it random by like.. +/- 5 tiles?

Walk(new Position(x,y,);

 

Look at the API.

 

 

Thanks. If i put that into an array, how do i call it?

 

for:

private Position[] TO_LOL = new Position[]{
			new Position(3045, 3235, 0), new Position(3035, 3236, 0), new Position(3026, 3241, 0),
			new Position(3016, 3241, 0), new Position(3006, 3244, 0), new Position(2996, 3247, 0),
			new Position(2987, 3254, 0), new Position(2977, 3258, 0), new Position(2967, 3257, 0),
			new Position(2957, 3261, 0), new Position(2947, 3263, 0), new Position(2937, 3264, 0),
			new Position(2927, 3264, 0), new Position(2917, 3270, 0), new Position(2912, 3280, 0),
			new Position(2909, 3290, 0), new Position(2907, 3296, 0) };
	
	

This won't work:

walk(TO_LOL);

Is there a way i can set and array and have the script go to those positions in order? Or should i just manually input each position? I'm not looking for an easy way out, i'm looking to learn all i can to make my code look better.

 

 

EDIT: Semi-solved that..

You use this i think:

walk(List<Position>, boolean, int, boolean)

Still having issues.

Edited by Bitter

Thanks. If i put that into an array, how do i call it?

for:

private Position[] TO_LOL = new Position[]{			new Position(3045, 3235, 0), new Position(3035, 3236, 0), new Position(3026, 3241, 0),			new Position(3016, 3241, 0), new Position(3006, 3244, 0), new 
Position(2996, 3247, 0),			new Position(2987, 3254, 0), new Position(2977, 3258, 0), new Position(2967, 3257, 0),			new Position(2957, 3261, 0), new Position(2947, 3263, 0), new Position(2937, 3264, 0),			new Position(2927, 3264, 0), new Position(2917, 3270, 0), new Position(2912, 3280, 0),			new Position(2909, 3290, 0), new Position(2907, 3296, 0) };
This won't work:
walk(TO_LOL);
Is there a way i can set and array and have the script go to those positions in order? Or should i just manually input each position? I'm not looking for an easy way out, i'm looking to learn all i can to make my code look better.

EDIT: Semi-solved that..

You use this i think:

walk(List<Position>, boolean, int, boolean)
Still having issues.
You can make your own walking methode or look at the snippets also I can give you mind on skype.

You can make your own walking methode or look at the snippets also I can give you mind on skype.

 

Ooo please <3

Ooo please QwPha8E.png

 

dude, search walking in the snippets section, i know for a fact there are at least 3 which will comply with this.

Guest
This topic is now closed to further replies.

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.