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.

[Bug] "Interaction with entity" issue

Featured Replies

I'm still having problem with interactions with npc.

 

The problem only occurs when the entity is moving; the mouse will follow the entity until it stops and then interact.

 

Take a look (the quality sucks, don't know how to get it better):

c71e61cafbc672880b12eb0d45be2bf7.gif

You can see how the mouse is "chasing" the moving npc.

 

I didn't have this problem with version .123. Latest version I tested before .131 was .127, and it was worse than now. I made no changes in my code since version .123. It was working perfectly fine until now.

 

This is what I'm using:

InteractionEvent ie = new InteractionEvent(entity, "Attack");
ie.setHover(true);
api.execute(IE);
	if(IE.hasFinished()) {
		if(api.getMouse().isOnCursor(entity)) {
			if(api.getMouse().click(false)) {
				return api.getMouse().getCrossHairColor().equals(CrossHairColor.RED);
			}
		}
	}

And I tested osbot's interaction, which gives same result as above:

NPC npc = getNpcs().closest(true, "Chicken");
if npc != null
npc.interact("Attack");

Why are you setting hover and an action in method 1? You should be using MoveMouseEvent instead (from what it looks like). I'm sure Zach will take a peek at this later. 

  • Author

Why are you setting hover and an action in method 1? You should be using MoveMouseEvent instead (from what it looks like). I'm sure Zach will take a peek at this later.

I was just testing some things and found out setting interactionEvent on hover works actually nicely. I could try to do it with MoveMouseEvent to see if it gives different result or no.
  • Author

Just tried MoveMouseEvent and ClickMouseEvent, still same result. 

 

Could some other scripters share their experience on interactions with NPCs? I want to know if there's someone else who's having the same issue as me.

  • Author

It should be a lot better on .131+

I will try it out and come back with a report.
  • Author

It should be a lot better on .131+

I tested the interaction and it's better now. However, in the begging when it moves towards the entity, the mouse kinda lags for a very short time then normal movement. 

 

The interaction in V .123 was really good, maybe you could go back to that?

  • Administrator

I tested the interaction and it's better now. However, in the begging when it moves towards the entity, the mouse kinda lags for a very short time then normal movement. 

 

The interaction in V .123 was really good, maybe you could go back to that?

 

No because it caused more problems in other cases. It actually made several assumptions that leads to bugs. That's why it needed extra patches.

Edit: I also mentioned this to you before

...There were changes we had to make because .123 was terrible in certain areas while great in others.

In other words, we had scripters like you who love it and other scripters who told their users to get off of it.

...

  • Author

 

No because it caused more problems in other cases. It actually made several assumptions that leads to bugs. That's why it needed extra patches.

Edit: I also mentioned this to you before

Oh yea, now I remember, my bad.

 

By the way, the mouse tend to make a circle and sometimes two before clicking on the entity. Just some info.

  • 2 weeks later...

This is an old topic, interaction has been modified a bunch since then. Going to close this, open up a new topic if you are continuing to have issues.

Guest
This topic is now closed to further replies.

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.