SRL Archive - General

AutoColor help


Heavenguard

2009-12-01 17:33:56

Is there an AutoColor that works with finding the grass near the trees in draynor?
UPDATE: Yeah FindTreeColor of course would work, Im still a begginer semi intermediate scripter, Ill try the thing YoHoJo told me as it seems simple. The Box thing Naum was suggesting seems very useful, only I have no idea how to do that at this point. A couple of searching and im bound to find it, but Ill try YoHoJo's plan.
UPDATE2: Ok, I got the colors I want it to click for that area on this one particular server. Now what do I do next? I type in each color for the function? as RadialRoadWalk will click on those colors in the area right?

Update3: :D lol You know what I just noticed, I coulda just used the color picker in scar and it works perfectly fine. Why did i make it so complicated lmao. Its really simple, Its definetly an easy step for map walking for me :D. Thanks dudes, O one last itsy bitsy easy question.

Update4: Nvm That color picker = Not work for me anymore. I guess its not as accurate?

Is it possible to add multiple colors to: RadialWalk(Color, SR, ER, Radius, This x thingy, this y thingy) ? So it has multiple colors its allowed to choose from? or should I just use a If not statement

updateOMGOMG: OMG OMG OMG OMG Plz dont report me im just so happy!!!! Check this out!

program RadialWalk3;
{.include SRL/SRL.scar}

Function WalktoWillow : Boolean;
begin
if not LoggedIn then Exit;
SetRun(True);
if RadialWalk(FindTreeColor, 246, 222, 34, 1, 1) then
begin
Writeln('Walking to RadialWalk(Line6)');
Result := True;
end else
Writeln('Error Occured');
end;

Function WalkOutofWillowArea : Boolean;
begin
if not LoggedIn then Exit;
SetRun(True);
if RadialWalk(FindRockColor, 129, 155, 52, 1, 1) then
begin
Writeln('Walking To RadialWalk(Line18)');
Result := True;
end else
Writeln('Error 2 Occured');
end;

begin
SetupSRL;
ClearDebug;
ActivateClient;
if WalkToWillow then
WalkOutofWillowArea
end.

Autocolor saved my life, Find Tree Color worked pretty good, then it happened! FindRockColoR!!, Only thing is it didnt exactly click the farthest rock that i wanted to, it clicked the closest one instead. I used this for that draynor bank to willow trick. Althought, FindRockColor Works only now and then? anyone know why?

YoHoJo

2009-12-01 17:36:29

Not in SRL I dont think so.
Go to your " C:\Program Files\SCAR 3.21\includes\SRL\Scripting Tools "
and use the program called Auto Color Aid (ACA).

Open rs, open ACA, press F2, rs image will load onto ACA. Then just click points where there is color you want, log out, log in, switch servers ect to ensure you gets lots of good colors, then press f2, click 'test'? or something like that, and your color will be highlighted in RED on ACA.

Ask if you need better explanation on how to use that, it's quite easy though.

Naum

2009-12-01 17:40:29

From: Heavenguard
Is there an AutoColor that works with finding the grass near the trees in draynor?


Well, if you were really clever you could use FindTreeColor with radialwalk. Or use FindTreeColor and create a box around the first and second point. Then search for similar colors and the one most cropped up will be your grass color.

noidea

2009-12-01 19:37:53

btw I tested FindTreeColor the other day ;) It still works (<3). And this is the first time any one has ever thought of using it (that I know of)