Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users

    Recommended Posts

    Posted (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 by MylesH
    • MylesH changed the title to Change click distribution on game objects
    Posted

    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!

    Posted

    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?

    • 8 months later...
    Posted

    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.

    • 2 months later...
    Posted (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 by sandlesadam

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.