OSRS Ahk - Clicking on a monster in random spot
Posted: 06 Mar 2024, 16:09
Hi all, I am creating a script for a game I play, old school runescape. I am looking to make a script that clicks on monsters in the game. Please see below I have screenshot a of a couple monsters which I have hilighted in red so I can easily detect them using a pixel search looking for the red color. The issue is there is more than 1 monster that has to be hilighted and they move around, not just sit still.
If mousemove to the pixel it goes to the first pixel at the top of the monster very oddly and I feel like the script will be easily detectable. Is there any simple code I can do to make it click on a random spot in the red pixels? not just the first one it finds?
Thank you for your help.
https://imgur.com/a/rpPVFAW
[Mod edit: Removed duplicate links with img-tags which only work with direct image links, not embedded pictures.]
[Mod edit: Moved topic from 'Scripts and Functions (v2)' to help subforum, since this is neither script nor function but a help request.]
If mousemove to the pixel it goes to the first pixel at the top of the monster very oddly and I feel like the script will be easily detectable. Is there any simple code I can do to make it click on a random spot in the red pixels? not just the first one it finds?
Thank you for your help.
https://imgur.com/a/rpPVFAW
[Mod edit: Removed duplicate links with img-tags which only work with direct image links, not embedded pictures.]
[Mod edit: Moved topic from 'Scripts and Functions (v2)' to help subforum, since this is neither script nor function but a help request.]