PDA

View Full Version : A guide to the noteworthy “WalkPath(0);”



footballjds
02-11-2008, 01:25 AM
Although it is over looked, in fact I’ve seen it in only one or two scripts. It IS very powerful, but I believe it wasn’t introduced very well. ;)

First I’ll tell you a little about it,
WalkPath(0); uses DDTM’s to search the minimap for the road you are looking for(path). It uses DDTM’s so you might think it is slow, actually it is quite fast. BECAUSE it only uses one color, the road color, the path color, or any other color. Thus making it practically instant, but VERY accurate.

First of all you might want to look at the path.scar file. It is in the misc includes.

The absolute first thing (after looking through the file), is to update it, yes srl devs are good, but they haven’t updated the path.scar and it won’t compile. Here is a working vers(I edited myself). // -------------------------------------------------------------------------- //
//-- Scar Standard Resource Library ------------ //
//-- » DDTM-Path Routines ------------ //
//--------------------------------------------------------------------------- //
// * Function SetPath(Number: Integer): Integer; //* by WT-Fakawi
// * Function WalkPath(ThePath: Integer): Boolean; //* by WT-Fakawi
// * Function FindPath(ThePath: Integer; Click: Boolean): Boolean; //* by WT-Fakawi
// * procedure PathRecorder(StartPath: Integer); //* by WT-Fakawi
// * File Edited by: Footballjds so that it compiles //*by Footballjds

{ type TDTMPoints;
Description: Define Path structure. One Main Point ( any color ) and upto 10 SubPoint of the SAME color. }

type
TDTMPoints = record
MainPoint: TPoint;
SubPoints: array[0..10] of TPoint;
end;

{ var Path: array[0..50] of TDTMPoints;
Description: Predefines Type array Path. }

var
Path: array[0..50] of TDTMPoints;

{
procedure SetupPaths;
begin
// YOUR PATHS IN HERE
end;
}

{************************************************* ******************************
function SetPath(Number: Integer): Integer;
By: WT-Fakawi
Description: Assembles DTM from Path. Inputs Path-Index, outputs DTM.
Usage: TheDTM := SetPath(0); or FindDTMRotated(SetPath(4).....
************************************************** *****************************}

function SetPath(Number: Integer): Integer;
var
DTMSubPoints: array of TDTMPointDef;
DTMMainPoint: TDTMPointDef;
TempTDTM: TDTM;
NrofSubPoints, i: Integer;
TheDTM: Integer;
begin

for i := 0 to 9 do // Calculate ArrayLength
if ((Path[Number].SubPoints[i].x = 0) and
(Path[Number].SubPoints[i].y = 0)) then
begin
NrofSubPoints := i;
Break;
end;

SetArrayLength(DTMSubPoints, NrofSubPoints);

DTMMainPoint.x := Path[Number].Mainpoint.x;
DTMMainPoint.y := Path[Number].Mainpoint.y;
DTMMainPoint.areasize := 1;
DTMMainPoint.areashape := 0;
DTMMainPoint.color := RoadColor;
DTMMainPoint.tolerance := 0;

for i := 0 to NrofSubPoints - 1 do
begin
DTMSubPoints[i].x := Path[Number].SubPoints[i].x;
DTMSubPoints[i].y := Path[Number].SubPoints[i].y;
DTMSubPoints[i].areasize := 1;
DTMSubPoints[i].areashape := 0;
DTMSubPoints[i].color := RoadColor;
DTMSubPoints[i].tolerance := 0;
end;

TempTDTM.MainPoint := DTMMainPoint;
TempTDTM.SubPoints := DTMSubPoints;
TheDTM := AddDTM(TempTDTM);
Result := TheDTM;
end;

{************************************************* ******************************
function WalkPath(ThePath: Integer): Boolean;
By: WT-Fakawi
Description: Simple Roadclicker, checks for RoadColor changes using CountFlag.
Returns False if Path not found.
Usage: WalkPath(1);
************************************************** *****************************}

function WalkPath(ThePath: Integer): Boolean;
var
WhichAngle: Extended;
TheDTM, x, y: Integer;
begin
TheDTM := SetPath(ThePath);
if FindDtmRotated(TheDTM, x, y, MMX1, MMY1, MMX2, MMY2, Radians(-35), Radians(35), 0.05,
WhichAngle) then
begin
FreeDTM(TheDTM);
Mouse(x, y, 0, 0, True);
Wait(1000);
FFlag(5);
Result := True;
end else FreeDTM(TheDTM);
end;

{************************************************* ******************************
function FindPath(ThePath: Integer; Click: Boolean): Boolean;
By: WT-Fakawi
Description: Returns True if Path was found.
Usage:
repeat
WalkPath(1);
until FindPath(2, True);
************************************************** *****************************}

function FindPath(ThePath: Integer; Click: Boolean): Boolean;
var
WhichAngle: Extended;
TheDTM, x, y: Integer;
begin
TheDTM := SetPath(ThePath);
if FindDtmRotated(TheDTM, x, y, MMX1, MMY1, MMX2, MMY2, Radians(-35), Radians(35), 0.05,
WhichAngle) then
begin
FreeDTM(TheDTM);
Result := True;
if Click then
begin
Mouse(x, y, 0, 0, True);
Wait(600);
FFlag(5);
end else MMouse(x, y, 0, 0);
end else FreeDTM(TheDTM);
end;

{************************************************* ******************************
procedure PathRecorder(StartPath: Integer);
By: WT-Fakawi
Description: Simple PathRecorder.
Usage: Enter StartPath.
- Click RightMouse Button for SubPoints
- Now hover Mouse over MainPoint and hit Q
- Copy Debug printout to your script.
- Choose Subpoints carefully. Upto 9 clicks are allowed,
but 4 Subpoints should well be sufficiant.
************************************************** *****************************}

procedure PathRecorder(StartPath: Integer);
var
i, CurrentPath, SubPointCounter, x, y: Integer;
begin
CurrentPath := StartPath;
repeat
Wait(100);
if IsMouseButtonDown(False) then
begin
GetMousePos(x, y);
Path[CurrentPath].SubPoints[SubPointCounter].x := x;
Path[CurrentPath].SubPoints[SubPointCounter].y := y;
repeat
until not IsMouseButtonDown(False);
SubPointCounter := SubPointCounter + 1;
end;

if IsKeyDown('q') then
begin
GetMousePos(x, y);
Path[CurrentPath].MainPoint.x := x;
Path[CurrentPath].MainPoint.y := y;
repeat
until not IsKeyDown('q');
writeln(' Path[' + IntToStr(CurrentPath) + '].Mainpoint.x:=' + IntToStr(Path[CurrentPath].MainPoint.x) + ';');
writeln(' Path[' + IntToStr(CurrentPath) + '].Mainpoint.y:=' + IntToStr(Path[CurrentPath].MainPoint.y) + ';');
for i := 0 to SubPointCounter - 1 do
begin
writeln(' Path[' + IntToStr(CurrentPath) + '].Subpoints[' + IntToStr(i) + '].x:=' + IntToStr(Path[CurrentPath].Subpoints[i].x) + ';');
writeln(' Path[' + IntToStr(CurrentPath) + '].Subpoints[' + IntToStr(i) + '].y:=' + IntToStr(Path[CurrentPath].Subpoints[i].y) + ';');
end;
SubPointCounter := 0;
CurrentPath := CurrentPath + 1;
end;
until False;
end;

Second somethings about WalkPath(0); the 0 is the array reference, you create the paths by using “PathRecorder(0);”. You can use this script below to create a path:
program New;
{.include srl/srl.scar}
{.include srl/srl/misc/path.scar}
begin
PathRecorder(0);
end.

Open up RS and find a road (any road, a path or a regular road), and run the script. To create the sub points, just right-click at every point. Then to print out the DTM-Array, move the mouse to the main point (where you want it to walk to). And hit “q”.
When it prints out stop the script and copy it (later on when your actually using this you can just go along and create more). Paste the new DDTM array that printed out and create a new script, you can use the one below, BUT you must replace the DDTM array with your own, here is the script:
program New;
{.include srl/srl.scar}
{.include srl/srl/misc/path.scar}
begin
RoadColor := {pick the color to put here};
Path[0].Mainpoint.x:=380;
Path[0].Mainpoint.y:=428;
Path[0].Subpoints[0].x:=380;
Path[0].Subpoints[0].y:=330;
Path[0].Subpoints[1].x:=370;
Path[0].Subpoints[1].y:=266;
Path[0].Subpoints[2].x:=628;
Path[0].Subpoints[2].y:=262;
Path[0].Subpoints[3].x:=456;
Path[0].Subpoints[3].y:=397;
Path[0].Subpoints[4].x:=381;
Path[0].Subpoints[4].y:=555;
Path[0].Subpoints[5].x:=280;
Path[0].Subpoints[5].y:=287;
Writeln(BoolToStr(FindPath(0, False)));
end.

Now go to where you were b4, run the script. If you have the road color right AND your in view of all the points it will find the spot and move the mouse there, it will also print out whether or not it found it.

A few things you must know:
Your road color must be right.
WalkPath looks for the road color so you must do: "RoadColor := clr";
even if the road color isn't a road thats fine.\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
You can only pick points on the path/road(or colors EXACTLY the same).
ALL POINTS MUST be the SAME color!
You CAN use FindRoadColor to set the road color, IE RoadColor := FindRoadColor.
{Note FindRoadColor doesn’t always work.}
Be sure to pick your points strategically;).

Below is a complete example including pictures and a script :D.

Here I am picking the colors:
http://aycu38.webshots.com/image/43557/2003415695415705805_rs.jpg
The Red squares are sub points whilst the x is the main point.
Here is the script, make sure when you stand in the spot that all the spots are within view.
program New;
program New;
{.include srl/srl.scar}
{.include srl/srl/misc/path.scar}
function Biggest(n1, n2 : Integer) : integer;
begin
if n1 > n2 then Result := n1 else Result := n2;
end;
function VrkRdClr : integer;//This function was created by footballjds
//And you Must get direct permission
//BEFORE using it, and you MUST Credit.
var
Points : TPointArray;
colors, UniqueColors, howmany : TIntegerArray;
i, a, timeTook, uniqLength, ColorLength : integer;
newColor : boolean;
Mostest : array[0..1] of integer;
begin
MarkTime(timeTook);
FindColorsSpiralTolerance(MMCX, MMCY, Points, 8291463, MMX1, MMY1, MMX2, MMY2, 25);
colors := GetColors(Points);
ColorLength := Length(Colors) -1;
for i := 0 to ColorLength do
begin
NewColor := True;
for a := 0 to GetArrayLength(UniqueColors) - 1 do
begin
if(UniqueColors[a] = Colors[i])then
begin
NewColor := False;
Break;
end;
end;
if(NewColor)then
begin
SetArrayLength(UniqueColors, GetArrayLength(UniqueColors) + 1);
UniqueColors[GetArrayLength(UniqueColors) - 1] := Colors[i];
end;
end;
SetArrayLength(howmany, GetArrayLength(UniqueColors));
uniqLength := GetArrayLength(UniqueColors) - 1;
for I := 0 to uniqLength do
begin
for A := 0 to GetArrayLength(colors) - 1 do
begin
if UniqueColors[i] = colors[a] then Inc(howmany[i]);
end;
end;
for I := 0 to uniqLength do
begin
Mostest[0] := Biggest(HowMany[i], Mostest[0]);
Mostest[1] := i;
end;
for I :=0 to uniqLength do
begin
if Mostest[0] = HowMany[i] then break;
end;
if Mostest[0] < 400 then EXIT;
Result := UniqueColors[i];
Writeln('Took: ' + IntToStr(TimeFromMark(timeTook)));
Writeln('Road color is: ' + IntToStr(Result));
end;
begin
MouseSpeed := 16;
RoadColor := VrkRdClr;
Path[0].Mainpoint.x:=966;
Path[0].Mainpoint.y:=268;
Path[0].Subpoints[0].x:=950;
Path[0].Subpoints[0].y:=200;
Path[0].Subpoints[1].x:=954;
Path[0].Subpoints[1].y:=228;
Path[0].Subpoints[2].x:=975;
Path[0].Subpoints[2].y:=251;
Path[0].Subpoints[3].x:=949;
Path[0].Subpoints[3].y:=282;
Path[0].Subpoints[4].x:=959;
Path[0].Subpoints[4].y:=297;
Writeln(BoolToStr(FindPath(0, False)));
end.

IF you have any troubles please feel free to ask.(this is my first TuT on scripting. WalkPath(0); is VERY pwerfull and extremely easy to use, ask me when you encounter trouble).

when you are actually doing walking you will need to do: WalkPath(0); instead of findPath(0);
also when you create multiple DDTM arrays to walk you will need each one to be different IE, one is path[0].ect whilst the next is path[1].ect ect...
and walkPath(1 <-- just refers to the number between the "[" and "]");

tarajunky
02-11-2008, 02:06 AM
FindRoadColor does always work, but you need to use the correct version.

FindVarrockRoadColor for Varrock, obviously.

FindFallyRoadColor for Falador.

All other normal road colors should be found by FindRoadColor.

Timer
02-11-2008, 02:07 AM
nice

footballjds
02-11-2008, 02:18 AM
FindRoadColor does always work, but you need to use the correct version.

FindVarrockRoadColor for Varrock, obviously.

FindFallyRoadColor for Falador.

All other normal road colors should be found by FindRoadColor.
as i once thought :D, go to varrock and use find varrock road color :D. and see what you get, :D, if it works thats just because the road color was close enough, the varrock road fluxes a LOT. :D


nice

THANKS! :D

any ideas about the tut? descriptive enough? any other thoughts?

Timer
02-11-2008, 02:22 AM
a vid?, animated pics to show a part?

gerauchert
02-11-2008, 02:24 AM
liked the tut :D i may try to use this when i have the opportunity

footballjds
02-11-2008, 02:27 AM
liked the tut :D i may try to use this when i have the opportunity

yes, walkPath is amazing :D. i am creating a varrock east miner, and i was like WTF! cause i couldn't use radail walk(the walls are same color as the road) DDTMS just lagged, then im like looking thru misc. WOOTY :D WalkPath FTW! gotta love the Fawk! ;)

MylesMadness
02-11-2008, 08:43 PM
This is awesome. I always sucked at rrw(I even used the aid and failed. Yes I'm that bad).Next time(and every time for that matter) I need to make walking I will use this.

footballjds
02-11-2008, 09:07 PM
This is awesome. I always sucked at rrw(I even used the aid and failed. Yes I'm that bad).Next time(and every time for that matter) I need to make walking I will use this.

yes this is quite accurate while being just as fast as radial walk. ;)

about a video tut, anyone got a registered cam :D? or maybe il use keygen, can anyone suggest a good recorder(video)?

ShowerThoughts
02-11-2008, 09:17 PM
don;t use hypercam i took a 1 min video 200 mb on high quality and thenm its still bad looking

tarajunky
02-11-2008, 10:54 PM
How much variation is there in the walking?

DDTMS can be extremely accurate, depending on how they are placed. You don't want to be TOO accurate, though.

I would probably use a DTM path array like this more as a backup to normal RRW walking, but if it's variable enough that may not be necessary.

footballjds
02-12-2008, 02:39 PM
How much variation is there in the walking?

DDTM's can be extremely accurate, depending on how they are placed. You don't want to be TOO accurate, though.

I would probably use a DDTM path array like this more as a backup to normal RRW walking, but if it's dynamic enough that may not be necessary.

yes, you can also use it like:

while not(FindPath(0, False) do RadialWalk(ect...);


but its imposible to use radial walking in varrock because the walls are same color as the road ;)

MylesMadness
02-12-2008, 08:35 PM
You could just make the Radials smaller...

footballjds
02-13-2008, 03:03 PM
You could just make the Radials smaller...

then your not accounting for the MM shift ;)

also tara the karmja road color don't work. :D, i made one that does work though ;)

MasterKill
02-17-2008, 11:46 AM
i'm deffently going to use this for my VEM update.

i'll work on it this weak and give you the result (if it works or not :))

thanks for the turial :D

Dynamite
02-17-2008, 04:48 PM
i like the look of this a lot but... i don't understand the main point. is the main point where you begin? also you know the script thing it comes up with unknown identifier: Result

cheers

T ~ M

footballjds
02-17-2008, 05:38 PM
i'm deffently going to use this for my VEM update.

i'll work on it this weak and give you the result (if it works or not :))

thanks for the turial :D

okay, ;). if you need help just let me know, as i made a flawless walker to and from varrock bank/mine :D... if you want it feel free to ask. ;)


i like the look of this a lot but... i don't understand the main point. is the main point where you begin? also you know the script thing it comes up with unknown identifier: Result

cheers

T ~ M
the main point is where you want to walk to, also you messed with somthing, it compiles fine. ;)

Dynamite
02-17-2008, 05:42 PM
ok so are the subpoints just for colour recognition?

and i used your path.scar and it doesn't compile ( the path.scar )

T ~ M

footballjds
02-17-2008, 06:15 PM
ok so are the subpoints just for colour recognition?

and i used your path.scar and it doesn't compile ( the path.scar )

T ~ M

duch :duh:. the path.scar is the replacment for the one in the includes misc folder ;).... the subpoints are points on the road, and the main point is where you wana click ;). usaully have about 4 points. remember if its SUPER crowded this won't work, like world 2 varrock center ;)

MasterKill
02-17-2008, 06:51 PM
okay, ;). if you need help just let me know, as i made a flawless walker to and from varrock bank/mine :D... if you want it feel free to ask. ;)

i'll first try myself, this tut was the only help i needed i guess :)

Wizzup?
02-17-2008, 07:02 PM
I see you use
function Biggest(n1, n2 : Integer) : integer;
begin
if n1 > n2 then Result := n1 else Result := n2;
end;

Use Max() instead. ;)

[S]paz
02-17-2008, 07:13 PM
wow, just tested this and it works 99% perfect. It is very good, thanks for this :)

~Spaz

Dynamite
02-17-2008, 09:35 PM
ok i got it working once but it only moved the mouse to it so... i tried that WalkPath(0) instead of findPath(0) and it said invalid number of parameters :(
im confused :confused:

T ~ M

verybigkitty
02-18-2008, 02:33 AM
Wow. This works perfect!! Thanks a lot!

One question though. what if there is a person where one of the subpoints are? Or a symbol moves, and ends up changing the color on the minimap?

footballjds
02-18-2008, 03:06 AM
I see you use
function Biggest(n1, n2 : Integer) : integer;
begin
if n1 > n2 then Result := n1 else Result := n2;
end;
Use Max() instead. ;)

thanks wizzup?! glad to see you post on my thread :D


wow, just tested this and it works 99% perfect. It is very good, thanks for this :)

~Spaz

np ;)


ok i got it working once but it only moved the mouse to it so... i tried that WalkPath(0) instead of findPath(0) and it said invalid number of parameters :(
im confused :confused:

T ~ M

walk path only takes param integer. while findpath takes two params, one int and one boolean ;)


Wow. This works perfect!! Thanks a lot!

One question though. what if there is a person where one of the subpoints are? Or a symbol moves, and ends up changing the color on the minimap?

it finds the dtm rotated, so it should find it unless there is like 5 people at one subpoint. and a symbol shouldn't effect it ;). because you only use road colors anyhow ;), remember, pick the sub points strategically ! :D

MylesMadness
02-21-2008, 12:38 AM
like world 2 varrock center ;)It's very empty. Its world 1 your thinking of

footballjds
02-21-2008, 03:03 AM
yes/ w/e ;)

Wade007
02-21-2008, 08:31 PM
Very nice tutorial! I will use this for my willow chopper (WalkBack)

nielsie95
02-21-2008, 08:35 PM
Nice tutorial :)
Keep 'em coming!

Swift
02-21-2008, 11:15 PM
Hey, grats on the Tut Cup! Nice tutorial too.

footballjds
02-22-2008, 06:03 PM
Very nice tutorial! I will use this for my willow chopper (WalkBack)
cool, be sure to post questions ect right away. as i am leaving wed. the 27 for a damn stupid camp(il be visiting every 6 weeks :mad:)...

Nice tutorial :)
Keep 'em coming!
oohh, thanks mate!!!! :D

Hey, grats on the Tut Cup! Nice tutorial too.

wOOOOOOOty, my first TuT gets a cup, serius?! WOOTY ;) thanks man
next goal. an Einstein face :D

Wade007
02-22-2008, 08:09 PM
I have a problem with this... When i try to make it walk on lets say the right side of the minimap, it walks on the left side... Congrats on the cup btw

Cazax
02-22-2008, 08:23 PM
WalkPath is working for me ! very nice tut.

footballjds
02-23-2008, 02:47 AM
I have a problem with this... When i try to make it walk on lets say the right side of the minimap, it walks on the left side... Congrats on the cup btw
where exactly? do you have enough subpoints?? :? ;)


WalkPath is working for me ! very nice tut.

thanks man :D, glad its working for ya :D

EvilChicken!
02-23-2008, 12:17 PM
So this is like DDTM walking?

What are the downsides of using this?
Its working for me, I'll test it on RS when I get time, and I'll try to learn this.

Could you update this tut to be more detailed? One example could be to post more pics (of what? You decide.) and a fully working script that uses WalkPath. The script could be really useful for learning purposes.

Thanks for a great tut and grats on cup.

PS. While we're on it:
Your fletcher has trouble with bankfinding. After failing ONE single time, it gives up and logs out. Thats the thing that disables me to get you long progress reports. I'm too lazy to fix that, maybe you should? I was using it in Pest Control bank. AND: You could update it to use duel arena bank chest? Just an idea.

footballjds
02-23-2008, 02:24 PM
So this is like DDTM walking?

What are the downsides of using this?
Its working for me, I'll test it on RS when I get time, and I'll try to learn this.

Could you update this tut to be more detailed? One example could be to post more pics (of what? You decide.) and a fully working script that uses WalkPath. The script could be really useful for learning purposes.

Thanks for a great tut and grats on cup.

PS. While we're on it:
Your fletcher has trouble with bank finding. After failing ONE single time, it gives up and logs out. Thats the thing that disables me to get you long progress reports. I'm too lazy to fix that, maybe you should? I was using it in Pest Control bank. AND: You could update it to use duel arena bank chest? Just an idea.

the downside is that it has no area size. but it does rotate it, meaning if there is a load of people. or even like 3 people on the one sub point it may not Find it :mad:, the upside to that is that its like instant ;)

about my fletcher, ;), best to post that on that thread, but il look into it;)

King of the Nites
02-23-2008, 02:46 PM
When ever i try to run the script i made it comes up like this in my debug box
Successfully compiled
False
Successfully executed
This happens with the script you made too.

footballjds
02-23-2008, 02:59 PM
When ever i try to run the script i made it comes up like this in my debug box
Successfully compiled
False
Successfully executed
This happens with the script you made too.

use the cross hair? :), ;) it just means it didn't find the path ;)

King of the Nites
02-23-2008, 03:22 PM
use the cross hair? :), ;) it just means it didn't find the path ;)

hmmm i did... ill try again

EDIT!Ok i got it all i did was close out of scar and opened it back up
EDIT2 Ok i got my script up! it works perfect thanks!!!!

footballjds
02-24-2008, 12:01 AM
hmmm i did... ill try again

EDIT!Ok i got it all i did was close out of scar and opened it back up
EDIT2 Ok i got my script up! it works perfect thanks!!!!

glad to hear it :D :spot: :spot: :spot: :spot: :spot: :spot: :spot: :spot: :spot: :spot: :spot: :spot: :spot: :spot: :spot:

MylesMadness
02-24-2008, 12:10 AM
Grats On Tut Cup!

footballjds
02-24-2008, 12:11 AM
Grats On Tut Cup!

thanks mate :D. and it was my first TuT :D !!! now to get the SRL master cup ;)

Lancelot074
02-25-2008, 12:19 AM
I am using walkpath to walk my character from a store to a bank, the problem is that the clerk sometimes moves and around and then when I trade the clerk it works, but then walkpath wont work because my character just moved to a new position. I would use rrw but it's hard to do in varrock.

Any help please?

footballjds
02-25-2008, 03:13 AM
I am using walkpath to walk my character from a store to a bank, the problem is that the clerk sometimes moves and around and then when I trade the clerk it works, but then walkpath wont work because my character just moved to a new position. I would use rrw but it's hard to do in varrock.

Any help please?

your speaking of the varrock general store? if so there is good things for a DDTM there ;), to start you off. look for, plants(apear as palm trees on MM), rocks(gray on MM), and anything else that doesn't change much. ;), both of those just listed can be auto colored so you don't need any tolerance. look in the misc folder for, "NewAutoColor.scar", it can give you any color that it can give you;), if you suply it with one,(thats how to auto color the palm trees) ;), want me to make the DDTM if your having trouble just tell me :D

Lancelot074
02-25-2008, 08:07 PM
your speaking of the varrock general store? if so there is good things for a DDTM there ;), to start you off. look for, plants(apear as palm trees on MM), rocks(gray on MM), and anything else that doesn't change much. ;), both of those just listed can be auto colored so you don't need any tolerance. look in the misc folder for, "NewAutoColor.scar", it can give you any color that it can give you;), if you suply it with one,(thats how to auto color the palm trees) ;), want me to make the DDTM if your having trouble just tell me :D

It's actually the varrock clothing store, and I've tried to use DTM's before, but it always fails for me. :(

Cazax
02-25-2008, 08:11 PM
This is just nice footballdjs. Btw, srl devs updated path.scar in rev #14 :D

footballjds
02-25-2008, 08:51 PM
This is just nice footballdjs. Btw, srl devs updated path.scar in rev #14 :D

YAY! glad they updated it ;). but i didn't update to latest srl ;). anyhow. it is funny how after like 3 days of this tut being out i find that about 30 people use WalkPath(0);, oooh im to proud ;) :D

Claymore
07-13-2008, 06:28 PM
Can you make the tutorial any simpler? I mean, i learned TPA's to RRW to all other hard functions... But this one is like, uber-delux-hard! Its even harder than setting up a DDTM and AutoColor without tools! (Like no RGB, HSX, XYZ converters!). So seriously... can you please re-write a more... you know.... simple one. Thanks

ShowerThoughts
07-14-2008, 03:29 PM
This is Teh Sex, but can u make it somehow so I can add somethign to teh X or Y of the clicking?

brad734
09-22-2008, 06:07 AM
thanks so much! now i can use this in my scripts -.-

footballjds
12-24-2008, 12:12 PM
Can you make the tutorial any simpler? I mean, i learned TPA's to RRW to all other hard functions... But this one is like, uber-delux-hard! Its even harder than setting up a DDTM and AutoColor without tools! (Like no RGB, HSX, XYZ converters!). So seriously... can you please re-write a more... you know.... simple one. Thanks

sorry that i blew you out of the water. I didn't think it was THAT hard... ;)


This is Teh Sex, but can u make it somehow so I can add somethign to teh X or Y of the clicking?
i don't this so, unless of course you edit your include ;)

thanks so much! now i can use this in my scripts -.-
glad you liked it


i thought this was a good tut but i guess not many people are commenting anymore... well w/e. :D

tls
12-24-2008, 10:13 PM
how do you load the path ... do you just take what it gives you when you run the little recordpath program?

edit: nvrmd found it out...

footballjds
12-25-2008, 12:50 AM
yes ;)

tls
12-25-2008, 01:10 AM
guess what... i am actually using this in my jun mem scripting competition...! so thanks for posting on it earlier today, or wouldn't have noticed it! i was using ddtms... but this works better!

Blumblebee
12-25-2008, 01:17 AM
guess what... i am actually using this in my jun mem scripting competition...! so thanks for posting on it earlier today, or wouldn't have noticed it! i was using ddtms... but this works better!

yeah if you wanna see a good example of how its used, look at fawaki's and Wizzups? muti-miner. The VEM part has walkapth in it used very nicely.

oh and im definatly using this in my aircrafter, so thanks :p this is a really good tut.

tls
12-25-2008, 01:38 AM
yeah if you wanna see a good example of how its used, look at fawaki's and Wizzups? muti-miner. The VEM part has walkapth in it used very nicely.

oh and im definatly using this in my aircrafter, so thanks :p this is a really good tut.

ya... i have already looked at it and set it up in my script... it got rid of like 50 lines that i had for setting the ddtms...

footballjds
12-25-2008, 03:17 AM
ya... i have already looked at it and set it up in my script... it got rid of like 50 lines that i had for setting the ddtms...

yep its pretty handy, i liked it a lot. as you might be able to tell ;)

senrath
12-25-2008, 05:56 AM
yep its pretty handy, i liked it a lot. as you might be able to tell ;)

Pity it only works for points on a single color. But it's still a powerful function.

footballjds
12-25-2008, 11:43 AM
Pity it only works for points on a single color. But it's still a powerful function.

thats what makes it powerful. if it looked for more colors it would be slower like any other DDTM ;)

tls
12-26-2008, 09:41 PM
i got a question... when you use it multiple times in one loop, but it is in different functions, do i just keep going up(ex. walkpath(0)...walkpath(1)...etc.) or can i reload it to redefine walkpath(0)?

footballjds
12-26-2008, 10:52 PM
i got a question... when you use it multiple times in one loop, but it is in different functions, do i just keep going up(ex. walkpath(0)...walkpath(1)...etc.) or can i reload it to redefine walkpath(0)?

either/or would work.

tls
12-26-2008, 11:10 PM
... just found out by trial and error... -.-
thanks anyways...(i didn't check this until i finished)
i got the walking down for my comp script(thanks to this)... now i need to make it mine and then sell to the shopkeeper...

tazzin44
01-29-2009, 10:58 PM
does the paths.scar need re-updating?, for some reason now all I get is runtime errors when i right click, didnt happen before.

edit: nvrm when I dled the includes again last week it wrote over the updated version, re-dled and Im good to go

Cazax
01-29-2009, 11:00 PM
does the paths.scar need re-updating?, for some reason now all I get is runtime errors when i right click, didnt happen before.
Try this:
program New;
{.include SRL/SRL.scar}
{.include SRL/SRL/Misc/Path.scar}

begin
ActivateClient;
SetupSRL;
Wait(500);
SetupPath;
PathRecorder(0);
end.

zeeky111
03-29-2009, 03:16 PM
about a video tut, anyone got a registered cam :D? or maybe il use keygen, can anyone suggest a good recorder(video)?

I may be quite late on this, but CamStudio works wonders, it's free, and it records sound. And without the annoying loss of video information and "Unregistered HyperCam" thing...

Just in case anyone wants to do this in the future.

footballjds
03-30-2009, 11:17 AM
I may be quite late on this, but CamStudio works wonders, it's free, and it records sound. And without the annoying loss of video information and "Unregistered HyperCam" thing...

Just in case anyone wants to do this in the future.

Well, thanks! I'll try it i was actually looking for one.. :D

footballjds
04-26-2009, 02:34 AM
This is Teh Sex, but can u make it somehow so I can add somethign to teh X or Y of the clicking?
you'd have to go into the include to do that!

thanks so much! now i can use this in my scripts -.-

thats the point :)^^

x[Warrior]x3500
04-26-2009, 05:58 AM
hey, if you have exact subpoints in the minimap, what if the MM rotates? couldnt that throw off this whole procedure?

EDIT: and what if a person happens to be standing on a subpoint (on MM)?

footballjds
04-26-2009, 08:03 AM
no it won't throw it off as
A. the dtm search rotates.
B. the subpoints have a small offset.
:D

x[Warrior]x3500
04-26-2009, 11:27 AM
no it won't throw it off as
A. the dtm search rotates.
B. the subpoints have a small offset.
:D

thx! and this is an amazing tut. definitly gunna use it.

footballjds
04-26-2009, 07:35 PM
I hope u do use it :D