BryceTheCoder Posted December 22, 2011 Share Posted December 22, 2011 Ok.. soo i have the color tolerance things for a NPC's head, which is this: if FindColorsTolerance(TPA, 2651579, MSX1, MSY1, MSX2, MSY2, 4) then it almost always finds the color and does what i ask it to do.. buuuttt there is like a chance of 1/50 clicks that it will NOT find that color, sooo how can i make it so i can say, if that color is NOT found, look one more then, then if not found again Logout; this would be extremely helpful to me, thanks. Quote Link to comment Share on other sites More sharing options...
Se7eN Posted December 31, 2011 Share Posted December 31, 2011 for the quick and dirty solution just put it in a loop and break after x tries ... while Int < 5 do begin Inc(Int); if FindColorsTolerance(TPA, 2651579, MSX1, MSY1, MSX2, MSY2, 4) then ... end; ... -Se7eN Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted December 31, 2011 Author Share Posted December 31, 2011 haha thnx Se7eN, this post was awhile ago but thnx anyways:) Quote Link to comment Share on other sites More sharing options...
rsutton Posted January 1, 2012 Share Posted January 1, 2012 the problem with it is that you have it going to the same location even when it is not found. trying setting a random mouse afterwards if fails, anywhere on screen. NO NOT AN OFFSET. just a random place. Quote Link to comment Share on other sites More sharing options...