FrÕzÑ_§ÕµL
2007-12-02 18:43:11
Hey guys, just wondering what I can use to get the color of the road to the east of the Grand Exchange? I tries FindDirtRoadColor and FindVarrockRoadColor but neither works :(
2007-12-02 18:43:11
2007-12-02 20:34:19
2007-12-02 20:38:30
2007-12-02 20:40:28
2007-12-02 20:41:40
2007-12-02 20:42:42
2007-12-02 20:49:19
2007-12-02 21:23:52
2007-12-02 21:30:31
function FindVarrockRoadColor: Integer;
var
GC, a, l, TestColor, Red, Green, Blue : integer;
var
P:array of Tpoint;
begin
GC := 7304312; //change generic color
Flag;
FindColorsSpiralTolerance(MMCX, MMCY, P, GC, MMX1, MMY1, MMX2, MMY2, 60);
l:=GetArrayLength(P);
for a:= 0 to l-1 do
begin
if rs_OnMinimap(P[a].x,P[a].y) then
begin
TestColor := GetColor(P[a].x,P[a].y);
if SimilarColors(TestColor,GC,60) then
begin
red := (TestColor mod 256);
green := ((TestColor / 256) mod 256);
blue := ((TestColor / 256) / 256);
if Red - Blue <= 12 then if Red - Blue >= 8 then //change these values
if Red - Green <= 6 then if Red - Green >= -1 then //change these values
if Green - Blue <= 10 then if Green - Blue >= 4 then //change these values
if GetColor(P[a].x + 5, P[a].y + 5) = TestColor then
if GetColor(P[a].x + 3, P[a].y + 3) = TestColor then
if GetColor(P[a].x, P[a].y + 5) = TestColor then
if GetColor(P[a].x + 5, P[a].y) = TestColor then
if GetColor(P[a].x, P[a].y + 3) = TestColor then
if GetColor(P[a].x + 3, P[a].y) = TestColor then
if GetColor(P[a].x + 5, P[a].y + 3) = TestColor then
if GetColor(P[a].x + 3, P[a].y + 5) = TestColor then
begin
Result := TestColor;
WriteLn('Varrock RoadColor = ' +
IntToStr(TestColor));
Exit;
end;
end;
end;
end;
WriteLn('Could not find Varrock Road Color!');
Result := 0;
end;
2007-12-02 21:46:21
if Red - Blue <= 50 then if Red - Blue >= 46 then //from 48
if Red - Green <= 23 then if Red - Green >= 19 then // from 21
if Green - Blue <= 29 then if Green - Blue >= 25 then //from 27
2007-12-02 21:50:05
if Green - Red >= 24 then if Green - Red <= 65 then
if Red - Blue >= 1 then if Red - Blue <= 33 then
if Green - Blue >= 40 then if Green - Blue <= 78 then2007-12-02 21:53:25
2007-12-03 00:50:11
2007-12-03 00:59:28