Jump to content

Recommended Posts

Posted (edited)

Hi there, i'm new to the forums and looking for some help. Any tip wil be appreciated.

I'm making an autoaim Bot for a 2d mmorpg game. The program is working OK, except for some minor issues:

What i'm doing is searching using pixelsearch the color of the name below the characters, after getting it i'm positioning the mouse -30 pixels up their name.

The problem is that when their name is too long, the program following the logic finds a pixel, goes up 30 pixels up, but because of the name being too long it will not target the character.

Summing it up: since the X coordinate is displaced by the pixel which is far away from the character due to their name being too long it will not proper autoaim the character.

Any helps?

I thought that i could search for the first pixel colour of the name, and the last, and then get the mid-point so i get exactly the X coordinate where the character is...

The problem is that the pixel search is looking for a pixel around an invisible rectangle around my mouse pointer so i can't get exactly the first and last pixel around the name...

 

Here is an image for you to visualize it: 

If you see the name Leminer, if the autoaim gets the "L" blue pixel colour it will not hit the character.

Thanks you in advance,

Yours sincerely: Eragon

 

Edited by Melba23
Posted
  On 10/2/2016 at 7:20 PM, Eragon said:

I'm making an autoaim Bot for a 2d mmorpg game.

Expand  

Seems you didn't read the forum rules on your way in.
I suggest to do so now and you will see why you do not get any support on this subject.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

:)

My UDFs and Tutorials:

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...