Jump to content
tweakmeup

colors changing constantly

Recommended Posts

Okay so i'm creating a script for prsc and attempting to have the script click on an NPC's shirt ~it's black. But, i've had SOOO much trouble with it, and i've realized the problem is the color codes are continuously changing. Even using ACA is not solving the issue as the color code changes to something else, and when the bot searches, the color I have in the script isn't there anymore! What function can I use to search for x, x1, x2. x3. x4 etc. colors, instead of just 1 color, so it goes through all the possibilities the color could be?

Link to comment
Share on other sites

http://wiki.scar-divi.com/index.php?title=FindColors

You can use tolerance, and grouping/sorting but that's about it for color finding. Now you can detect pixel animation, and do text finding.

 

here's an example using MSSL include:

 

[scar]

program aaa;

{$DEFINE PRSC}

{$I MSSL/MSSL.scar}

 

begin

MSSL_Setup;

PRSC_Setup;

if PRSC_UpText = 'Boomstick' then

ClickMouse

end.

 

[/scar]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...