SRL Archive - First Scripts

My first working thingy ever


rynkrt3

2008-07-09 19:11:59

hello every one after reading basic guides and talking with pinky P.S he is great help
+rep him for being cool….
i learned RW. this is not major but i want to know how to make it repeat back into the small bank in varrock aka the starting spot….plz let me know how to make it back trace or w/e

The_Shermanator

2008-07-09 19:28:03

Begin
MakeCompass('N');
RadialWalk(FindVarrockRoadColor, 8, 35, 52, 1, 1);
Wait(2000);
RadialWalk(FindVarrockRoadColor, 136, 100, 71, 1, 1);
wait(3000);
RadialWalk(FindVarrockRoadColor, 73, 100, 69, 1, 1);
end;
Should/could be
Begin
MakeCompass('N');
RadialWalk(FindVarrockRoadColor, 8, 35, 52, 1, 1);
Flag;
RadialWalk(FindVarrockRoadColor, 136, 100, 71, 1, 1);
Flag;
RadialWalk(FindVarrockRoadColor, 73, 100, 69, 1, 1);
end;
"Flag;" is a function built in SRL to where it waits until the Flag is gone in the Mini-Map, but with you waiting 2 seconds then 3 seconds is fine but it all depends how far you want to walk.
I suggest this tutorial it really helped me:D
http://www.villavu.com/forum/showthread.php?t=19162

Sfts3

2008-08-10 02:30:59

i really should read the all the tuts again, im still a registed user :(

XRaye

2008-08-10 02:59:59

Yes but what ever you do don't give up. Just read lots of tutorials and go to members for help.

carlover

2008-08-11 17:49:16

Ok i'm still in the learning stages of scripting but here is my input

If you want it to go backwards couldn't you just make the compass point south and then do all the same stuff. You might have to change the radials a bit.
Its not really needed in this script but failsafes would be good.
Maybe make a declare players and a login–maybe make it for smart–
Well thats it

~carlover~

Scaper

2008-08-16 20:49:53

this should work this is one way you could do it annd maybe add couple failsafes :)

  {Just go to the small bank in varrock, drag the cross hair and click begin
i really want to know how to make it repeat and go back in side the bank ty
=D}

program MyFirst;
{.include srl/srl.scar}

procedure learning; Forward;

procedure learning2;
begin
MakeCompass('S');
RadialWalk(FindVarrockRoadColor, 35, 8, 52, 1, 1);
flag;
RadialWalk(FindVarrockRoadColor, 100, 136, 71, 1, 1);
flag;
RadialWalk(FindVarrockRoadColor, 100, 73, 69, 1, 1);
WriteLn('At location 2');
Status('Walking back to location 1');

begin
Wait(2000+Random(500));
learning;
end;
end;


Procedure Learning;
Begin
MakeCompass('N');
RadialWalk(FindVarrockRoadColor, 8, 35, 52, 1, 1);
Wait(2000);
RadialWalk(FindVarrockRoadColor, 136, 100, 71, 1, 1);
wait(3000);
RadialWalk(FindVarrockRoadColor, 73, 100, 69, 1, 1);
WriteLn('At location 1');
Status('Walking back to location 2');
begin
Wait(2000+Random(500));
Learning2;
end;
end;

begin;
setupsrl;
activateClient;//gets to rs clint
wait(5000);
Learning;
learning2;
end.

rep if i helped would'nt go a miss :D