Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Request Force *no* menu interaction

Joined
Mar 28, 2017
Messages
286
Seeing as we have an option to force menu interactions, is there a way to force clouse to not use menu interactions?

Seems viable for cases such as OSRS when skilling: thieving (with hide NPC attack option), you can spam left click to pickpocket NPC's, woodcutting, mining, etc.

It'd be nice to be able to have the freedom to enable/disable this option if it isn't too hard or time-demanding to implement.
 
Client Developer
Joined
Oct 12, 2015
Messages
3,781
i guess the idea is that instead of opening the right click menu, the interaction should just fail

That's what happens if you call #interact(String) where the Menu doesn't contain the MenuItem you want.
 
Joined
Aug 23, 2015
Messages
1,970
That's what happens if you call #interact(String) where the Menu doesn't contain the MenuItem you want.
I haven't debugged it, but just watching bots, I'm pretty sure it will sometimes fail even when the option is in the open menu.

Anyways, that's a different topic really. Right clicks are very frequent for me even when the option is left-clickable, which is very inappropriate for some circumstances.
 
Client Developer
Joined
Oct 12, 2015
Messages
3,781
All left click pickpocketing, high alching, enchanting, fletching darts or bolts or zeah essence, cleaning herbs, and anywhere else that you would never right click as a person playing.

So surely this should be covered by just #click?
 
Joined
May 24, 2016
Messages
1,113
I think what they mean is that you force a left click when you can, however if something is blocking the entity, it will right click instead of just clicking whatever is blocking the entity which #click will do.
 
Joined
Aug 23, 2015
Messages
1,970
So surely this should be covered by just #click?
Click doesn't have any way to verify the action being completed, and players like to use cannons and other things to mess with bots. I'm hoping its possible to somehow confirm the action that shows up in the top-left of the game window before actually clicking, but it's not an interface and there's nothing I know of in the API for it.
 
Client Developer
Joined
Oct 12, 2015
Messages
3,781
Click doesn't have any way to verify the action being completed, and players like to use cannons and other things to mess with bots. I'm hoping its possible to somehow confirm the action that shows up in the top-left of the game window before actually clicking, but it's not an interface and there's nothing I know of in the API for it.

Click has the same wasClickSuccessful call that interact has... Also, Menu.getActions or getItems, can't remember from memory.
 
Top