SRL Archive - OSR Help

Radialwalking


Syntax

2012-07-06 07:05:44

Hi guys I'm trying to make my bot walk to the bank on 06scape.com heres what i've tried so far:
program walker;
//{$DEFINE SMART}
{$i srl/srl.simba}

procedure WalkingSpec(TheWalk:Integer);

begin
case TheWalk of
1: RadialWalkTolerance(1738633,15,60,65,5,5,12);
2: RadialWalkTolerance(1232342,15,60,65,5,5,8);
3: RadialWalkTolerance(1812345,0,90,65,5,5,9);

end;
end;
procedure WalkingToRock1;
var
i, x, y:Integer;
begin
for i:= 1 to 3 do
begin
Writeln('You are on Walk Number'+IntToStr(i));
WalkingSpec(i);
end;
//anything u want script to do after
//it has walked there.
end;



begin
SetUpSRL;
end.

Here's what the minimap looks like:

This is not my image, I have no copyright over it. This is just to show you what the minimap looks like on the RSPS i'm playing

Daniel

2012-07-06 07:15:17

RadialWalk and its variants should work regardless of the Runescape version you are running (unless it's RS: Classic).

Syntax

2012-07-06 07:20:26

From: Daniel
RadialWalk and its variants should work regardless of the Runescape version you are running (unless it's RS: Classic).


Maybe its because i'm the dipshit scripting it lol.. From what i've done does it look right? How do i know its using the minimap?

Main

2012-07-06 07:43:58

you need to fix the compass function. Because radial walk does use compass IIRC

Daniel

2012-07-06 07:49:01

From: Main
you need to fix the compass function. Because radial walk does use compass IIRC


Does it? :S I can't think of a reason why..

EDIT: From looking at the code, it appears it is because of the LoggedIn function (found in SRL/Core/Players.simba) not validating that you are logged in. You will need to change this to use the majority of methods within and utilised by the SRL include.

Main

2012-07-06 08:00:13

If it doesn't use compass then ..
*facepalm* myself.

As daniel was explaining


function RadialWalkEx(var TPA: TPointArray; cx, cy, TheColor, tol: Integer; StartRadial, EndRadial: Variant; Radius: Integer): Boolean;
var
time: Integer;
SD, ED: extended;
begin
Result := False;
if (not LoggedIn) then Exit;
You should get rid of

If Not LoggedIn Then
Exit;

and makesure your compass is facing north.