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
1 hour ago, Eragon said:

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

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:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Posted

:)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

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

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