Skip 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.

[OSBot 2.4.58] Weird "Walk here" interaction spam

Featured Replies

Has anyone else experienced a walking spam click when trying to interact with a tile? I know this problem existed with the webwalker (spam clicking), but haven't heard about it with interactions. Just seeing if anyone else has encountered this problem before I go making a bug report about it. Or if anyone has experienced this and found a solution!

 

Here is the code along the lines of what I am using:


if(!myPlayer().isMoving() && ENTITY.getPosition().interact(getBot(), "Walk here")){

}

It does not spam click every time, but rather I would say 5/15. The tile that I am interacting with IS walkable and you can walk over it by either clicking the very corner spot of the tile, or right clicking it and choosing the option to "Walk here". It normally only spams when trying to right click the tile and selecting "Walk here". I even tried adding other things to make the code have a conditional sleep in it to see if that would help at all. Something like:

if(!myPlayer().isMoving() && ENTITY.getPosition().interact(getBot(), "Walk here")){
	new ConditionalSleep(2000, 4500){
					@Override
					public boolean condition(){
						return (myPlayer().isMoving());
					}
				}.sleep();	
}

The reason I added this conditional sleep was because the conditions for the method to run state that if the player is currently not moving, it is able to run. So, if we add a conditional sleep timer to sleep until we start moving, then by the time the conditional sleep meets the condition, the player will have been moving, meaning that the method could not run due to the player moving. I even added a log message to see if the method was being called more than once, but it was not. It is only called once, but clicks multiple times... which makes me believe it is an interaction problem.

 

If anyone has experienced this or could maybe give me a tip or something they think I should try, I'm open for it!

 

Thanks,

 

- PP

Please run the following, should be returning as a failed event.

InteractionEvent event = new InteractionEvent(Bot bot, Position position, String... actions);
execute(event);
System.out.println(event.hasFinished());

Next I want you to run, and tell me the result:

WalkingEvent event = new WalkingEvent(Position position);
execute(event);
System.out.println(event.hasFinished());

Next I want you to run:

        short[][] vertices = position.getVertices(bot);
        int count = 0;
        for (short[] p : vertices)
            if (GraphicUtilities.MAIN_SCREEN_CLIP.contains(p[0], p[1]))
                count++;
System.out.println(count);

Also I'm interested in the distance.

 
  • Author

Please run the following, should be returning as a failed event.

InteractionEvent event = new InteractionEvent(Bot bot, Position position, String... actions);execute(event);System.out.println(event.hasFinished());
Next I want you to run, and tell me the result:
WalkingEvent event = new WalkingEvent(Position position);execute(event);System.out.println(event.hasFinished());
Next I want you to run:

short[][] vertices = position.getVertices(bot);        int count = 0;        for (short[] p : vertices)            if (GraphicUtilities.MAIN_SCREEN_CLIP.contains(p[0], p[1]))                count++;System.out.println(count);
Also I'm interested in the distance.

Ok! I'll try those things out in a little when I'm back! Thanks!

  • Author

 

 

Also I'm interested in the distance.

 

 

 

As far as the distance in which I am trying to walk, it ranges from about 1-5 tiles. So it is a very close distance interactions.

 

 

The results from the tests are as followed:

 

 

1: The code returned "true", but still would interact with the tile 2-3 times (by right clicking and using the menu to select "Walk here", or it will right click the tile then select "Walk here" then click the tile right after it just selected it from the menu). The only thing it printed out was "true", and it only printed that out once.

InteractionEvent event = new InteractionEvent(Bot bot, Position position, String... actions);
execute(event);
System.out.println(event.hasFinished());

2: The second test would return true, when it would never interact with the tile. The code would run, would print out "true", but the bot never attempted to walk to the position.

WalkingEvent event = new WalkingEvent(Position position);
execute(event);
System.out.println(event.hasFinished());

3: When testing the third instance, I reverted back to the original code I was using and added what you told me to test. The bot would log out the number "4" every time, even when it double clicked. 

  short[][] vertices = position.getVertices(bot);
        int count = 0;
        for (short[] p : vertices)
            if (GraphicUtilities.MAIN_SCREEN_CLIP.contains(p[0], p[1]))
                count++;
System.out.println(count);

I hope this helps! If you need me to test anything else, please let me know!

 

 

 

Thank you!

 

- PP

Edited by ProjectPact

Thanks, your test results were very helpful. I'll try and get it sorted out on the next release. 

  • 2 weeks later...
  • 1 month later...
  • 3 weeks later...
  • Author

Still an issue?

 

 

Yes sir sad.png

 

 

Edit: I have not tried it on the newest client however. I will be able to test this for you tomorrow after my final! :)

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.