From: i luffs yeww
Ah. I don't get what color it could be searching for that it doesn't find it when it's < 16%..
Thanks btw. The color it should be looking for is the highlighted/glowing color on the ring of the circle. Could you maybe spend a few minutes finding a color that works < 16% and > 16%? :D
I just spent 10 minutes comparing pictures of Rest w/ run, Rest w/o run, Run, and Walk, zoomed way in.
Unfortunately, there is no difference between rest enabled run and rest disabled run. It is impossible using color to know if run is activated if it's empty and your resting. Unless you moved the mouse over it to see if it came up 'turn on' or 'turn off run', very impractical :(. Rest will have to be assumed if it's less than 16 (or whatever, no energy in the circle) so you can't make a color if there is no color… when it runs that low that is.
However, it is possible to know using color if the Boot (not resting) is lit up.
Simple added or clause.
WriteLn(SimilarColors(GetColor(725, 111), 6608616, 10)); //detects change in boot color
Patch
--- C:/Users/James/AppData/Local/Temp/gametab.sc-revBASE.svn002.tmp.scar Mon Mar 28 20:42:09 2011
+++ C:/Users/James/Documents/SCAR Divi/Includes/SRL/SRL/core/gametab.scar Mon Mar 28 20:42:03 2011
@@ -1002,18 +1002,19 @@
{*******************************************************************************
function SetRun(Run: Boolean): Boolean;
-By: Wizzup? & EvilChicken!
+By: Wizzup?, EvilChicken!, & IceFire908
Description: Sets Run on or off.
*******************************************************************************}
+
function SetRun(Run: Boolean): Boolean;
-Begin
+begin
Result := false;
- if ((CountColorTolerance(3467501 , 720, 117, 723, 119, 80) > 1)) xor (Run) then
+ if (((CountColorTolerance(3467501, 720, 117, 723, 119, 80) > 1) or (SimilarColors(GetColor(725, 111), 6608616, 10))) xor (Run)) then
begin
Mouse(715, 95, 10, 10, True);
Result := True;
end;
-End;
+end;
{*******************************************************************************
function RunEnergy(Min: Integer): Boolean;
@@ -1559,4 +1560,4 @@
P := TPA[Random(Length(TPA))];
Mouse(P.X, P.Y, 0, 0, False);
Result := WaitOptionMulti(['Res', 'ese', 'set'], 1000);
-end;
+end;
\ No newline at end of file
I'll commit soon. Try testing.