Runescapian321
2009-08-16 18:38:29
It doesn't work because GetMMLevels('run', S) always returns -1 when Resting.
Here it is (Not a fix, I would try making a fix but I fail with color :p):
Here it is (Not a fix, I would try making a fix but I fail with color :p):
{*******************************************************************************
function RestUntil(Energy: Integer): Boolean;
By: ZephyrsFury
Description: Rests until your Run energy is above Energy. Results True if
successful.
*******************************************************************************}
function RestUntil(Energy: Integer): Boolean;
var
S: string;
begin
Result := (GetMMLevels('run', S) >= Energy);
if (Result) then exit;
SetRest;
while (GetMMLevels('run', S) < Energy) do
begin
Result := (CountColor(3777879, 713, 107, 732, 115) > 10);
if (CountColor(3777879, 713, 107, 732, 115) < 11) then exit;
if (SRL_Procs[srl_AntiBan] <> nil) then
SRL_Procs[srl_AntiBan]();
Wait(100 + Random(50));
end;
end;