MylesH 0 Share Posted January 21 (edited) Hi, I'm fairly new to this community but have been building bots for a while. I'm currently using `Entity::interact` to perform actions in-game, however I'm wondering if there's a way for me to provide a different distribution to use that can decide where the click should land on the clickbox. For example, using a uniform distribution would cause us to have the same probability of clicking any point on the object. But using a binomial or poisson would give us a greater chance of clicking points near the center of the object. Thanks in advance Edited January 21 by MylesH Link to comment Share on other sites More sharing options...
Pandemic 2715 Share Posted January 21 Welcome The only way to do what you're describing would be either: 1) Create and use your own MouseAlgorithm (you can find a few examples on the forums/GitHub I believe), that way you'd be able to choose the exact point per destination, or 2) Manually interact with a PointDestination instead (which can be a bit error prone with moving entities) using whatever point you'd like from the Entity using something like Model#calculateModelArea Hope that helps! Link to comment Share on other sites More sharing options...
MylesH 0 Author Share Posted January 22 That's super helpful of you, thank you! One things that's slowing development a bit is the obfuscated sources. I usually read through the source of the libraries I'm using to better understand how they work. Is there any way to get the sources for Dream Bot's StandardMouseAlgorithm, or a way to view source files for a subset of the client that you deem to be non-proprietary? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now