MylesH 0 Posted January 21, 2024 (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, 2024 by MylesH
Pandemic 2853 Posted January 21, 2024 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!
MylesH 0 Author Posted January 22, 2024 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?
Benecim 0 Posted September 24, 2024 Hey, welcome to the community! That sounds like a cool project. You could definitely tweak the click distribution. One idea is to create a custom function that applies the distribution you want, like a weighted random selection. For instance, if you're aiming for more clicks towards the center, you can assign higher weights to those points. Just make sure to normalize your weights so they sum up to 1. That way, when you use Entity::interact, it'll be more likely to hit the center of the clickbox.
sandlesadam 0 Posted December 10, 2024 (edited) Tinkering with click distribution on game objects is such a satisfying way to enhance gameplay—it’s like finding that sweet spot where everything just flows. I’ve always loved diving into games that let you tweak mechanics or try different strategies to keep things fresh. Speaking of games, I recently stumbled upon worldwinner, and it’s been a solid find for anyone into competitive gaming with real rewards. It’s worth checking out if you like testing your skills against others while keeping it fun and engaging. Edited December 16, 2024 by sandlesadam
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