SRL Archive - OSR Help

Long distance radial walking.


mafia miles

2013-04-12 10:59:03

program RunToAlterWorking;
{$DEFINE SMART8}
{$I SRL-OSR/SRL.Simba}
{$I SPS/sps-osr.simba}



var
tmpCTS, l, r:Integer;
ObjectTPA:TPointArray;
X, Y, AltarCol1:Integer;


const
AccountLogin = '';
AccountPass = '';
CharacterName = '';
version = '1.1';


//Declare your username and password
procedure DeclarePlayer;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := AccountLogin;
Players[0].Pass := AccountPass;
Players[0].Nick := CharacterName; //Important for antirandoms
Players[0].Active := True;
end;






procedure WalkingToAlter;
begin
if not LoggedIn then Exit;

makecompass('E');
begin
RadialWalk(5527389,26,77,40,1,1); //walk to road 1
wait(2000);
RadialWalk(2508633,26,70,47,1,1); //walk to docks
wait(2000);
makecompass('N');
RadialWalk(5724768,80,77,108,1,1); //walk to enddocks
wait(2000);
RadialWalk(5724768,47,70,76,1,1); //walk east pray alter
wait(2000);
RadialWalk(543010,15,73,70,1,1);
wait(2000);
RadialWalk(85289,15,70,70,1,1);
wait(2000);
RadialWalk(85017,50,66,30,1,1);
wait(2000);

end;
end;






begin

SetupSRL;
activateclient;
DeclarePlayer;
LoginPlayer;
SMART_FIXSPEED := TRUE;
wait(500);
repeat


WalkingToAlter;
until(false)
end.

Heres my code. Why won't radial walk work for long distances? should i only face one direction the whole time? any tips on doing that?
BTW walking from balloon to law alter

Haxz

2013-04-12 11:04:46

Color on minimap changes. If it doesn't find the color, it will skip your radialwalk function, which means you might end up skipping a few radialwalk functions there.

mafia miles

2013-04-12 11:48:48

So radial walkings out of the picture… SPS? I have a custom map but it sometimes returns -1 -1 as my position :0

Haxz

2013-04-12 11:58:19

Radialwalking is probably the best, SPS is worse because of minimap shifting and the inaccuracy as like you said, sometimes couldn't find your position. You can try and use RadialWalkTolerance, which add tolerance to your color.