BryceTheCoder Posted December 14, 2011 Share Posted December 14, 2011 hey guys, i have a chicken fighting bot and some of the chicken colors change soooo can someone help me edit for EXAMPLE this CODE: chickenColor1 = 4424087; if FindColor(x, y, chickenColor1, 0, 0, w - 1, h - 1) then WriteLn('Found Chicken NPC: ' + IntToStr(x) + ', ' + IntToStr(y)); MMouse(x, y, 1, 1); Wait(100 + Random(300)); TO: Something with the color 4424087 with some tolerance to colors very CLOSE to that color please? I need this becuase the chicken's colors change alittle soo i was wondering if i can add a tolerance so it will always detect the chickens color. Quote Link to comment Share on other sites More sharing options...
Wanted Posted December 14, 2011 Share Posted December 14, 2011 Use ACA 2 in OSI\Tools\ACA CTS2 probably, I'll have a tutorial up eventually Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted December 14, 2011 Author Share Posted December 14, 2011 oookk. ummm idk how to really use that tool:( i tried.. buuutt yaaa i have seen code like. FindColorsTolerance(TPA, 2181720, MSX1, MSY1, MSX2, MSY2, 5); Even though i have NOOO clue what TPA is or MSX, MSY, or the 5 means Quote Link to comment Share on other sites More sharing options...
FHannes Posted December 14, 2011 Share Posted December 14, 2011 The MS values mean "MainScreen", they represent the upper left and bottom right coordinates of the main screen whihc is the viewport through which you view the 3D world of RS. The 5 is the tolerance parameter. Quote Link to comment Share on other sites More sharing options...
wyn10 Posted December 14, 2011 Share Posted December 14, 2011 oookk. ummm idk how to really use that tool:( i tried.. buuutt yaaa i have seen code like. FindColorsTolerance(TPA, 2181720, MSX1, MSY1, MSX2, MSY2, 5); Even though i have NOOO clue what TPA is or MSX, MSY, or the 5 means http://forums.scar-divi.com/showthread.php?543-How-to-use-Auto-Color-Aid Quote Link to comment Share on other sites More sharing options...