Timothegreat
2008-05-19 21:36:24
These are 99.9% guaranteed to work, havent failed yet…
if you like them feel free to rep me or 5 star the thread…
Works on minimap oak trees

works on maple trees
works on any brown rocks
works on cactuses
works on gray rocks
if you like them feel free to rep me or 5 star the thread…
Works on minimap oak trees

function GetTreeColor: integer;
var
GC, a, l, TestColor: integer;
var
P:array of Tpoint;
begin
GC := 1989413;
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-202247) then
begin
Result := TestColor;
WriteLn('Tree Color = ' + IntToStr(TestColor));
Exit;
end;
end;
WriteLn('Could not find Tree Color!');
Result := 0;
end;works on maple trees
function GetMapleColor: integer;
var
GC, a, l, TestColor: integer;
var
P:array of Tpoint;
begin
GC := 606068;
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-198418) then
begin
Result := TestColor;
WriteLn('Maple Color = ' + IntToStr(TestColor));
Exit;
end;
end;
WriteLn('Could not find Maple Color!');
Result := 0;
end;works on any brown rocks
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;works on cactuses
function GetCactusColor: integer;
var
GC, a, l, TestColor: integer;
var
P:array of Tpoint;
begin
GC := 2977359;
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-1709323) then
begin
Result := TestColor;
WriteLn('Cactus Color = ' + IntToStr(TestColor));
Exit;
end;
end;
WriteLn('Could not find Cactus Color!');
Result := 0;
end;works on gray rocks
function GetRockColor: integer;
var
GC, a, l, TestColor: integer;
var
P:array of Tpoint;
begin
GC := 4538428;
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,P[a].y+1)=TestColor-921359) then
begin
Result := TestColor;
WriteLn('Rock Color = ' + IntToStr(TestColor));
Exit;
end;
end;
for a:= 0 to l-1 do
begin
TestColor := GetColor(P[a].x,P[a].y);
if (GetColor(P[a].x,P[a].y-1)=TestColor-921359) then
begin
Result := TestColor;
WriteLn('Rock Color = ' + IntToStr(TestColor));
Exit;
end;
end;
WriteLn('Could not find Rock Color!');
Result := 0;
end;