noidea
2009-05-24 18:12:59
Well, jagex has changed their Rocks again. So now, checking the difference of the colours on the rock won't work any more.
2009-05-24 18:12:59
2009-05-24 20:18:29
2009-05-24 20:58:07
2009-05-24 22:08:25
function FindRockColor: Integer;
var
GC, a, l, TestColor: integer;
var
P:array of Tpoint;
begin
GC := 5591394;
Flag;
FindColorsSpiralTolerance(MMCX,MMCY, P, GC, MMX1,MMY1,MMX2,MMY2, 80);
l:=GetArrayLength(P);
for a:= 0 to l-1 do
begin
TestColor := GetColor(P[a].x,P[a].y);
if (TestColor-GetColor(P[a].x-1,P[a].y)=1250837)then
begin
Result := TestColor;
WriteLn('Rock Color = ' + IntToStr(TestColor));
Exit;
end;
end;
WriteLn('Could not find Rock Color!');
Result := 0;
end;
2009-05-24 22:56:11