Sumilion
2007-09-05 09:28:49
It seems that (only in smart) FindBox always returns true… even when i was logged out.
For your lazyness here is FindBox :
Suggestions ?
For your lazyness here is FindBox :
function FindBox: Boolean;
var
xb, yb: Integer;
begin //color from the bitmap NewBox
if (FindColorTolerance(xb, yb, 6776687, MIX1, MIY1, MIX2, MIY2, 40)) then
begin
if (FindBitmapToleranceIn(Box, xb, yb, MIX1, MIY1, MIX2, MIY2, 40)) then
begin
Players[CurrentPlayer].Rand := 'New Box';
//Players[CurrentPlayer].loc := 'New Box';
Result := True;
end;
end;
end;Suggestions ?