SRL Archive - First Scripts

Walk from varrock to barbian village


kemico2

2007-04-06 22:08:29

Will everyone that can help me try to please
This is my very first scrip. i have always wanted to learn how to so i tried making one. Any help would be greatly appreacted. You can add me to msn [email]krypton48@hotmail.com[/email]


////This is my first script any help wouldbe appriacted\\\\\
////start in varrock west bank first bank slot\\\\\\




program Auto;
{.include SRL/SRL.scar}

procedure DoAntiRandoms;
begin
FindTalk;
FindNormalRandoms;
if (FindFight = true) then
begin
RunAwayDirection('N');
Wait(10000 + random(2000));
RunBack;
end;
end;
procedure Walk;
begin;
Mouse(592,111,9,7,true);
wait(9000+random(50));
Mouse(610,110,5,8,true);
wait(8000+random(50));
Mouse(593,107,5,8,true);
wait(8500+random(50));
Mouse(585,83,5,8,true);
wait(8500+random(50));
Mouse(594,95,4,5,true);
wait(8500+random(50));
Mouse(586,91,6,4,true);
wait(8500+random(50));
Mouse(582,66,5,5,true);
wait(8500+random(50));
Mouse(682,65,5,5,true);
end;
Begin;
setupSRL;
Repeat
Walk;
until(false)
end.

dudesareus

2007-04-06 22:20:56

Pretty simple lol, I reccomend RadialWalk or RadialRoadWalk.

Or, since I myself can't even figure out that. you could do somethin like this;


//This Script walks to Barbarian Village.
Program New;
{.include SRL\SRL.scar}
var
TheColor : integer;

Procedure WalkToBarbarianVillage;
begin
TheColor :=0;
if (FindMMColor(x, y, TheColor)) then
begin
repeat
MMouse(x,y,2,2);
Mouse(x,y,2,2,true);
until(FindSymbol(x, y, 'mining spot');
end;
end;

Begin;
WalkToBarbarianVillage;
End.

Just hope theres nothing else with the same colour as the road on the mini map!

Mr.Klean

2007-04-06 22:34:13

I don't know much about scripting, but i will try to help anyways.

One thing, why are you walking all the way to varrock when you could just walk to edgeville at about half the distance?

kemico2

2007-04-06 23:15:54

The reason it walks to babbian village mr klean is because i was going to make a fisher but that would be way to hard for me so i just made a autowalker oh and thanks for the help dudesarus

stein3

2007-04-08 07:47:27

at least make it walk to fally… Maybe have it go from lumby to varock, and lumby to fally, and varock to fally all in one!