SRL Archive - OSR Help

MM Auto Color Help


Ethoroxyole

2011-02-12 19:59:57

I'm trying to make an AutoColor function for Lumbridge Castle as the FindRoadColor functions ect are not working and It's something I should really learn anyway although my function does not work very well (probably because it is crap) but yeah some help would be appreciated.


function LumbridgeFloorColor: Boolean;
var
x, y : Integer;
begin
if not LoggedIn then Exit;
x := MMCX;
y := MMCY;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.30, 0.12);
if FindColorSpiralTolerance(x, y, 7963015, MMX1, MMY1, MMX2, MMY2, 4) then
begin
MMouse(x, y, 4, 4);
Writeln('Found Color');
Result := True;
end else
Writeln('Cant find the color');
Result := False;
SetColorSpeed2Modifiers(0.2, 0.2);
ColorToleranceSpeed(1);
end;

This is the current code, at the moment I am just trying to make it find a color for now, although eventually I will need to store that color as a variable using something like GetColor although I am not really sure :duh:

YoHoJo

2011-02-12 20:04:43

Auto Color Aid.

Log into rs.
Open ACA.
Press F2.
Click on the road a few times to gather different colors.
Use different servers to get a good amount of different colors.
Go to the AutoColor Function, or any other tap, and click the create function button.
All done for you.

http://up.ht/hnvrTN

Ask for more help if you need it. This tool comes in the SRL SVN.

Ethoroxyole

2011-02-12 21:09:12

Thanks for this :)

Although i couldn't get it to find the colour i needed i did manage to get this working for different colours so i guess i just need to do some experimenting with this so it don't mess my radial walking up.

Rep+ for the help :)