SRL Archive - SRL Archives

Easier Walking


pwnaz0r

2007-11-20 17:18:50

Well so many people have trouble with walking, so I decided to make this procedure. If you don't understand directions, then look it up on Wikipedia or something but I assume most should (Since the are in Runescape, North, South, East and West). Anyways, most people do not understand radialwalk and the radians, so this little procedure will walk for you by direction.

How to use the directions


this procedure is designed to find the Middle of the area you are going to search. It will then find the d (adjustment) from a 90 degree (*pure*) angle, and then divide that how many directions you give, thus decreasing the search size for every direction you give. So 'NNNN' would be more accurate than just 'N'.


Hope fully you will like. Credits go to Nielsie for helping me fix a little problem with the east :D (he added mod 360);


function Testwalk(Dir: string; Color, rx, ry: integer): boolean;
var
i, degree, d, sRadial, eRadial: integer;
begin
for i:= 1 to Length(Dir) do
begin
case Lowercase(Dir[i]) of
'n': degree:= degree+ 360;
'e': degree:= (degree+ 90) mod 360;
's': degree:= degree+ 180;
'w': degree:= degree+ 270;
else
Writeln('Invalid Direction: '+Dir[i]);
end;
end;
Writeln('Degree = '+IntToStr(degree div Length(Dir)));
d:= 90 div Length(Dir); // 90 = pure angle
sRadial:= (degree - d) mod 360;
eRadial:= (degree + d) mod 360;
Writeln('sRadial = '+IntToStr(sRadial));
Writeln('eRadial = '+IntToStr(eRadial));
result:= RadialWalk(Color, sRadial, eRadial, 60, rx, ry);
end;

Bobarkinator

2007-11-20 17:22:55

Cool, multiple letters give it great functionality. I'll stick to RadialWalk though ;)

Infantry001

2007-11-21 21:10:35

haha cool! This is a very interesting concept, pwnaz0r! ALthough i can stick with RadialWalk, I definitely could've used this back when I was noobier… lol. great function!

sjlou

2007-11-23 07:08:07

cool but i stick with radial :P
i think its a first step towards radial walking for newbs

JuKKa

2007-11-23 09:50:24

Could be very useful for those who dont understand radialwalk or DDTMs. Great function though! You should post it so other people would get it too ;) As only SRL members can see this …

pwnaz0r

2007-11-24 02:54:21

I know, already did. Thanks though :)

neG

2007-11-24 22:49:10

Awesome for newbs!
Haha, now add NE SE SW NW and NNE NSE ect :P

Dan Cardin

2007-11-25 15:16:03

how do u add NE SE SW NW and NNE NSE?

'NNNNNEEEEE'? :p

nice job :)

Lalaji

2007-11-26 07:47:35

Should help….
ill test after school

nielsie95

2007-11-27 16:37:18

You can use all the directions you want already.
Just do NE or NNE or even NNNE to make it more accurate.
Nice pwnaz0r :)

pwnaz0r

2007-12-04 15:37:36

Hah, well I believe it was you who helped me on the east part no? :D