SRL Archive - SRL Archives

Ak Brown Rock Color Finder


XcanadamanX

2008-05-19 21:05:31

I decided to make this. its for the brown rock outside al kharid bank. could probably used elsewhere but i havent tested extensively. anyway i thought someone may use it. so here it is:

function FindAkRockColor: Integer;
var
GC, a, l, TestColor: integer;
var
P:array of Tpoint;
begin
GC := 4874910;
Flag;
FindColorsSpiralTolerance(MMCX,MMCY, P, GC, MMX1,MMY1,MMX2,MMY2, 75);
l:=GetArrayLength(P);
for a:= 0 to l-1 do
begin
TestColor := GetColor(P[a].x,P[a].y);
if (GetColor(P[a].x-1,P[a].y)=TestColor-527120) then
begin
Result := TestColor;
WriteLn('Ak Rock Color = ' + IntToStr(TestColor));
Exit;
end;
end;
WriteLn('Could not find Ak Rock Color!');
Result := 0;
end;

Timothegreat

2008-05-19 21:33:45

this one below works 100%

function GetBrownRockColor: integer;
var
GC, a, l, TestColor: integer;
var
P:array of Tpoint;
begin
GC := 3625335;
Flag;
FindColorsSpiralTolerance(MMCX,MMCY, P, GC, MMX1,MMY1,MMX2,MMY2, 75);
l:=GetArrayLength(P);
for a:= 0 to l-1 do
begin
TestColor := GetColor(P[a].x,P[a].y);
if (GetColor(P[a].x-1,P[a].y)=TestColor-1186871) then
begin
Result := TestColor;
WriteLn('Brown Rock Color = ' + IntToStr(TestColor));
Exit;
end;
end;
WriteLn('Could not find Brown Rock Color!');
Result := 0;
end;

XcanadamanX

2008-05-20 08:00:40

obviously your looking for a different color than I am.

Timothegreat

2008-05-20 15:19:13

same kind of rock but different color within the rock ;)

XcanadamanX

2008-05-20 15:55:49

From: Timothegreat
same kind of rock but different color within the rock ;)


thats what i meant :p