Sign in to follow this  
Followers 0
Metigue

My Newest Problem, Colour generalisation?

1 post in this topic

I have a new problem.

In my FFR bot the backlash of when you hit an arrow succesfully is triggering my bot to think another arrow is there,

the colours of the backlash are around

0x201D18

0x201E18

0x201D19

0x201E19

0x20201A

0x20201B

0x201F19

and more, how would I set it to cover all the colours around that area? and how would I tell my if statement to ignore it?

Example:

Posted Image

The green dots are where I'm detecting a pixel change, I need to keep it there, but make it ignore the backlash.

My code for the pixelchange is:

$Start3 = TimerInit()
    While 1
    If TimerDiff($Start3) > 1 Then
$up = PixelGetColor(518, 394)

      If $Up <> 0x000000 and $U = 0 and $starter3 = 0x000000 then
            $U = 1
    Send("{Up}")
    EndIf
While $U = 1 
    $up = PixelGetColor(518, 394)
    if $up = 0x000000 then
    $U = 0
    EndIf
WEnd
$Start3 = TimerInit()
EndIf
WEnd

How would I make it so, that around those pixels

0x201D18

0x201E18

0x201D19

0x201E19

0x20201A

0x20201B

0x201F19

It will ignore it, like as in making that shade of colour within about 5 variations $badc

The game is: http://www.flashflashrevolution.com/FFR_the_Game.php

Share this post


Link to post
Share on other sites



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
Sign in to follow this  
Followers 0