Ethoroxyole
2011-02-12 19:59:57
I'm trying to make an AutoColor function for Lumbridge Castle as the FindRoadColor functions ect are not working and It's something I should really learn anyway although my function does not work very well (probably because it is crap) but yeah some help would be appreciated.
This is the current code, at the moment I am just trying to make it find a color for now, although eventually I will need to store that color as a variable using something like GetColor although I am not really sure :duh:
function LumbridgeFloorColor: Boolean;
var
x, y : Integer;
begin
if not LoggedIn then Exit;
x := MMCX;
y := MMCY;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.30, 0.12);
if FindColorSpiralTolerance(x, y, 7963015, MMX1, MMY1, MMX2, MMY2, 4) then
begin
MMouse(x, y, 4, 4);
Writeln('Found Color');
Result := True;
end else
Writeln('Cant find the color');
Result := False;
SetColorSpeed2Modifiers(0.2, 0.2);
ColorToleranceSpeed(1);
end;
This is the current code, at the moment I am just trying to make it find a color for now, although eventually I will need to store that color as a variable using something like GetColor although I am not really sure :duh: