n3ss3s
2007-09-15 15:24:29
a) WaterWalk does not work.
b) This is a tuned uber version just for edgeville.
Okay, put your sunglasses on (h)
So, First set UpOrDown, Up = True, Down = False the river.
MaxRadius as the maximum radius the river might be from you, your needs.
Its max radius because you dont wanna click the river so that you end up varrock side of it.
Worked pretty much flawless for me, but if you are currently logged in rs, in edgeville and lil bored, please test and tell how it went.
Also tell is there (propably is) some improvements my techniques there need.
b) This is a tuned uber version just for edgeville.
Okay, put your sunglasses on (h)
function EdgeWaterWalk(UpOrDown: Boolean; MaxRadius: Integer): Boolean;
// Sorry devs, WaterWalk doesnt work.
// False = Down, True = Up the river.
var
StartColor, x1, y1, RiverX, RiverY, Tol, Counter, I, X, Y: Integer;
var
StartRadial, EndRadial, Radius, MP: Integer;
var
H, S: Extended;
begin
ColorToleranceSpeed(2);
H := 0.3;
S := 0.3;
Radius := 5;
StartColor := FindWaterColor;
if (StartColor = 0) or (StartColor = -1) then
Exit;
case UpOrDown of
False: begin
StartRadial := 90;
EndRadial := 180;
repeat
Wait(20);
repeat
repeat
for i := StartRadial to EndRadial do
begin
x1 := Round(Radius * Sine(i)) + MMCX;
y1 := Round(-Radius * Cose(i)) + MMCY;
if not LoggedIn then Exit;
if (FindColorTolerance(RiverX, RiverY, StartColor, X1, Y1, X1 + 1, Y1 + 1, Tol)) then
begin
MP := 50;
repeat
if (Rs_OnMinimap(RiverX, RiverY + MP)) then
begin
Break;
end else
begin
MP := MP - 5;
end;
until (MP <= 1);
Result := True;
CountFlag(10);
ColorToleranceSpeed(1);
SetColorSpeed2Modifiers(0.3, 0.3);
Exit;
end;
end;
Tol := Tol + 2;
until(Tol >= 12);
Radius := Radius + 1;
until (Radius >= MaxRadius);
H := H + 0.05;
S := S + 0.05;
SetColorSpeed2Modifiers(H, S);
Counter := Counter + 1;
until (Counter >= 25) or (Result) or (not (LoggedIn)); // 3 failsafes :O
end;
True: begin
StartRadial := 1;
EndRadial := 90;
repeat
Wait(20);
repeat
repeat
for i := StartRadial to EndRadial do
begin
x1 := Round(Radius * Sine(i)) + MMCX;
y1 := Round(-Radius * Cose(i)) + MMCY;
if not LoggedIn then Exit;
if (FindColorTolerance(RiverX, RiverY, StartColor, X1, Y1, X1 + 1, Y1 + 1, Tol)) then
begin
MP := 50;
repeat
if (Rs_OnMinimap(RiverX, RiverY - MP)) then
begin
Break;
end else
begin
MP := MP - 5;
end;
until (MP <= 1);
MouseFindNoFlag(RiverX, RiverY - MP, 1, 1);
Result := True;
CountFlag(10);
ColorToleranceSpeed(1);
SetColorSpeed2Modifiers(0.3, 0.3);
Exit;
end;
end;
Tol := Tol + 2;
until(Tol >= 12);
Radius := Radius + 1;
until (Radius >= MaxRadius);
H := H + 0.05;
S := S + 0.05;
SetColorSpeed2Modifiers(H, S);
Counter := Counter + 1;
until (Counter >= 25) or (Result) or (not (LoggedIn));
end;
end;
end;
So, First set UpOrDown, Up = True, Down = False the river.
MaxRadius as the maximum radius the river might be from you, your needs.
Its max radius because you dont wanna click the river so that you end up varrock side of it.
Worked pretty much flawless for me, but if you are currently logged in rs, in edgeville and lil bored, please test and tell how it went.
Also tell is there (propably is) some improvements my techniques there need.