Hey guys, I'm making a completely new script for SRL members. I just need to know what Find''Road color is? What would it be (Market by the red square)? I have a suspicious feeling, it's FindRoadColor, but im not sure. Rep will be rewarded...
![]()
Remove your username from that pic, or fagex will see it.
The one your standing on is, FindVarrockRoadColor, but the one to your top right, there is not an autocolor function for that..good thing I made one, hasn't failed yet for me.
Pretty fast too averages 50 Milliseconds. Does 10 Millisecond Often if you can see enough of the road.SCAR Code:function VarrockDirtRoad: Integer;
var
i, Red, road, Green, Blue, GC, TestColor, Tol: Integer;
P: TPointArray;
begin
GC := 5992305;
FFlag(0);
Tol := 100;
Marktime(Road);
repeat
FindColorsSpiralTolerance(MMcx, MMcy, P, GC, MMx1, MMy1, MMx2, MMy2, Tol);
for i:=0 to High(p)-1 do
begin
if rs_OnMinimap(P[i].x,P[i].y) then
begin
TestColor := GetColor(P[i].x,P[i].y);
ColorToRGB(TestColor, Red, Green, Blue);
if InRange(Red - Blue, 18, 25) then
if InRange(Red - Green, 0, 9) then
if InRange(Green - Blue, 12, 24) then
if GetColor(P[i].x + 5, P[i].y + 5) = TestColor then
if GetColor(P[i].x + 3, P[i].y + 3) = TestColor then
if GetColor(P[i].x, P[i].y + 5) = TestColor then
if GetColor(P[i].x + 5, P[i].y) = TestColor then
if GetColor(P[i].x, P[i].y + 3) = TestColor then
if GetColor(P[i].x + 3, P[i].y) = TestColor then
if GetColor(P[i].x + 5, P[i].y + 3) = TestColor then
if GetColor(P[i].x + 3, P[i].y + 5) = TestColor then
begin
Result := TestColor;
Writeln('Found VarrockDirtRoad Color = '+IntToStr(Result)+' With a Tolerance of: ' + IntToStr(Tol));
WriteLn('Took: ' + IntToStr(timefrommark(Road))+ ' Milliseconds');
exit;
end;
end;
end;
Result := 0;
Tol := Tol + 100;
until(Result > 0) or(Tol = 500)
if(result = 0)or(Tol = 500)then WriteLn('Couldnt Find VarrockDirtRoad Color In: ' + IntToStr(timefrommark(Road))+ ' Milliseconds');
Tol := 0
end;
Current Project: All In 1 Falador Script - 20% DONE
Woohoo, Thanks! Goodluck making your script![]()
BTW here is the road that autocolor will autocolor..
http://s50.photobucket.com/albums/f3...ent=fail-1.jpg
Current Project: All In 1 Falador Script - 20% DONE
There are currently 1 users browsing this thread. (0 members and 1 guests)