Welcome!

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

Sign up now!

Question Quicker Interaction with Moving NPCs

Joined
Feb 13, 2016
Messages
87
Who knows how I should deal with NPCs which are moving, a lot? I am working on a Thieving bot but it appears that the default interactions are really slow as the cursor cannot keep up with the NPC. Is there an approach to deal with this issue?
 
Joined
Feb 13, 2016
Messages
87
Mouse.setMouseMultiplier(1.2D)
Thanks for the suggestion. However, I have noticed that it is still very difficult to get realistic 'Pickpocket' actions in my bot.

EDIT:
Issues arise when an NPC starts to move while it is attempting to perform an interaction. It will try to keep up, but it doesn't click so this process iterates until the NPC stands still.
 
Joined
Sep 30, 2015
Messages
86
Could try removing mouse movement from the equation completely, but this only works in SDK mode as it isn't allowed on SVN.

Code:
            if (Environment.isSDK()) {
                Mouse.setPathGenerator(new Mouse.PathGenerator() {
                    @Override
                    public boolean move(Interactable interactable, double v) {
                        return interactable != null && interactable.getInteractionPoint() != null && hop(interactable.getInteractionPoint());
                    }
                });
            }
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Could try removing mouse movement from the equation completely, but this only works in SDK mode as it isn't allowed on SVN.

Code:
            if (Environment.isSDK()) {
                Mouse.setPathGenerator(new Mouse.PathGenerator() {
                    @Override
                    public boolean move(Interactable interactable, double v) {
                        return interactable != null && interactable.getInteractionPoint() != null && hop(interactable.getInteractionPoint());
                    }
                });
            }
This also wouldn't be allowed on the bot store but you could do new InteractablePoint(interactable.getInteractionPoint()).interact("action", "target");
but it's also not recommended.
 
Joined
Feb 13, 2016
Messages
87
This also wouldn't be allowed on the bot store but you could do new InteractablePoint(interactable.getInteractionPoint()).interact("action", "target");
but it's also not recommended.
Thank you for all the answers.

I'm just curious though. But why is this not recommended?
 
Top