Metigue Posted February 15, 2009 Share Posted February 15, 2009 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 around0x201D180x201E180x201D190x201E190x20201A0x20201B0x201F19and 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: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 WEndHow would I make it so, that around those pixels 0x201D180x201E180x201D190x201E190x20201A0x20201B0x201F19It will ignore it, like as in making that shade of colour within about 5 variations $badcThe game is: http://www.flashflashrevolution.com/FFR_the_Game.php Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now