SCAR Code:dtmSubPoints: array[0..5] of TDTMPointDef;
Increase the 4 to a five then it should work. Or a six I forgot?
SCAR Code:dtmSubPoints: array[0..5] of TDTMPointDef;
Increase the 4 to a five then it should work. Or a six I forgot?
Originally Posted by irc
;p yea well what if you got 2 DDTMS and one of them is 4 subpoints and the other 5.
Make it the same then. You only need 4 or 5 points each time.
so can this be used for other colors eg the dirt in al kharad?
Great tutorial! It helped a lot. I'm going to use the idea of loading DDTM's with cases. I'll credit you in script.
Starting to merchant, if you know of any good clans, PM me please.
Although this is an example. You have a memory leak XD
SCAR Code:function WalkToSomewhere: Boolean;
var
WalkDTM: integer; // Calls the WalkDTM making walking simpler.
begin
WalkDTM := LoadAllDTMWalks(1); //Load which DDTM you want to find.
if FindDTM(WalkDTM, X, Y, MMx1,MMy1,MMx2,MMy2) then // Find the DDTM using Find DTM
begin
FreeDTM(WalkDTM);
Mouse(X, Y, 8, 8, True);
WriteLn('Walk Main 1. - Complete.');
FFlag(0);
Result := True; // If succesfully finds it will click it and wait to flag is gone.
end else // else it will do this...
begin
FreeDTM(WalkDTM); // MEmory leak, forgot this one lol
if RadialWalk(FindFallyRoadColor, 300, 220, 55, 1, 1) then
begin
Writeln(' Walk Backup 1. - Complete.');
Result := True; //Will look for this if DDTM fails, if this fails then logsout, but you can change that.
end else
begin
cant find the backup goes here... // No SCAR alows it to remain False unless it changes True.
Writeln(' Walk Backup 1. - Failed. Logging Out.');
//FreeDTM(WalkDTM); // FREEs the DDTM so you dont have a memory overload :P We already did ;p
if not (Result) then //if doesnt get results does this
begin
Logout; // logs out.
end;
end;
end;
also do this
RoadColor := FindRoadColor;
DTM somehting point color.. := RoadColor;
This prevents ur debug from having 4 same results printed ;p
How do i make a DDTM if i were to try using like Palm Trees as sub-points or Rocks, etc... I tried doing that on my Law Crafter, My DDTM isn't working.
SCAR Code:1:begin
dtmMainPoint.x := 572;
dtmMainPoint.y := 55;
dtmMainPoint.AreaSize := 0;
dtmMainPoint.AreaShape := 0;
dtmMainPoint.Color := 0;
dtmMainPoint.Tolerance := 255;
dtmSubPoints[0].x := 572;
dtmSubPoints[0].y := 55;
dtmSubPoints[0].AreaSize := 0;
dtmSubPoints[0].AreaShape := 0;
dtmSubPoints[0].Color := 0;
dtmSubPoints[0].Tolerance := 255;
dtmSubPoints[1].x := 602;
dtmSubPoints[1].y := 44;
dtmSubPoints[1].AreaSize := 0;
dtmSubPoints[1].AreaShape := 0;
dtmSubPoints[1].Color := 195836;
dtmSubPoints[1].Tolerance := 55;
dtmSubPoints[2].x := 617;
dtmSubPoints[2].y := 82;
dtmSubPoints[2].AreaSize := 0;
dtmSubPoints[2].AreaShape := 0;
dtmSubPoints[2].Color := 195836;
dtmSubPoints[2].Tolerance := 55;
dtmSubPoints[3].x := 618;
dtmSubPoints[3].y := 26;
dtmSubPoints[3].AreaSize := 3;
dtmSubPoints[3].AreaShape := 0;
dtmSubPoints[3].Color := RoadColor;
dtmSubPoints[3].Tolerance := Tolerance;
TempTDTM.MainPoint := dtmMainPoint;
TempTDTM.SubPoints := dtmSubPoints;
Result := AddDTM(TempTDTM);
end;
2: begin
dtmMainPoint.x := 583;
dtmMainPoint.y := 33;
dtmMainPoint.AreaSize := 0;
dtmMainPoint.AreaShape := 0;
dtmMainPoint.Color := 0;
dtmMainPoint.Tolerance := 255;
dtmSubPoints[0].x := 583;
dtmSubPoints[0].y := 33;
dtmSubPoints[0].AreaSize := 0;
dtmSubPoints[0].AreaShape := 0;
dtmSubPoints[0].Color := 0;
dtmSubPoints[0].Tolerance := 255;
dtmSubPoints[1].x := 664;
dtmSubPoints[1].y := 46;
dtmSubPoints[1].AreaSize := 3;
dtmSubPoints[1].AreaShape := 0;
dtmSubPoints[1].Color := RoadColor;
dtmSubPoints[1].Tolerance := Tolerance;
dtmSubPoints[2].x := 587;
dtmSubPoints[2].y := 135;
dtmSubPoints[2].AreaSize := 3;
dtmSubPoints[2].AreaShape := 0;
dtmSubPoints[2].Color := WaterColor;
dtmSubPoints[2].Tolerance := Tolerance;
dtmSubPoints[3].x := 649;
dtmSubPoints[3].y := 67;
dtmSubPoints[3].AreaSize := 3;
dtmSubPoints[3].AreaShape := 0;
dtmSubPoints[3].Color := 195836;
dtmSubPoints[3].Tolerance := 55;
TempTDTM.MainPoint := dtmMainPoint;
TempTDTM.SubPoints := dtmSubPoints;
Result := AddDTM(TempTDTM);
end;
3: begin
dtmMainPoint.x := 588;
dtmMainPoint.y := 109;
dtmMainPoint.AreaSize := 0;
dtmMainPoint.AreaShape := 0;
dtmMainPoint.Color := 0;
dtmMainPoint.Tolerance := 255;
dtmSubPoints[0].x := 588;
dtmSubPoints[0].y := 109;
dtmSubPoints[0].AreaSize := 0;
dtmSubPoints[0].AreaShape := 0;
dtmSubPoints[0].Color := 0;
dtmSubPoints[0].Tolerance := 255;
dtmSubPoints[1].x := 604;
dtmSubPoints[1].y := 32;
dtmSubPoints[1].AreaSize := 3;
dtmSubPoints[1].AreaShape := 0;
dtmSubPoints[1].Color := RoadColor;
dtmSubPoints[1].Tolerance := Tolerance;
dtmSubPoints[2].x := 587;
dtmSubPoints[2].y := 73;
dtmSubPoints[2].AreaSize := 0;
dtmSubPoints[2].AreaShape := 0;
dtmSubPoints[2].Color := 6774370;
dtmSubPoints[2].Tolerance := 75;
dtmSubPoints[3].x := 644;
dtmSubPoints[3].y := 145;
dtmSubPoints[3].AreaSize := 3;
dtmSubPoints[3].AreaShape := 0;
dtmSubPoints[3].Color := RoadColor;
dtmSubPoints[3].Tolerance := Tolerance;
TempTDTM.MainPoint := dtmMainPoint;
TempTDTM.SubPoints := dtmSubPoints;
Result := AddDTM(TempTDTM);
end;
Nevermind. Solved my own problem.
http://www.stats.srl-forums.com/sigs/6137.png
If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - Put this in your sig.
Edit: Oops, double-post! My bad.
When walking anywhere it is mostly likely going to involve several steps to get where you are going.
In that case, in order to avoid memory leaks, shouldn't your WalkToSomewhere actually be something along these lines?
and so on...Code:LoadAllDTMWalks(1); <Find> <FreeDTM> LoadAllDTMWalks(2); <Find & Move> <FreeDTM>
Or am I just missing the point completely.
http://www.stats.srl-forums.com/sigs/6137.png
If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - Put this in your sig.
dont mean to grave dig (even though its only been a month) but this is a very good tut thanks man
rep++
how would you make it load 2 different DDTMs?
<Wizzup> And he's a Christian
<Wizzup> So he MUST be trusted
___________________________________________
<Wizzup> she sounds like a dumb bitch
Thank you. I learned a lot from this and best of all it was quick and easy to learn. Thanks!
I like the tutorials where you give a working function as an example, and then I can modify/dissect it to understand it better. Your tutorial implements this, and I thank you for it Besides that, it's a great tutorial, well written and easy to understand. Rep +
@Deathscytex, I'm pretty sure you just change it to:
Code:dtmSubPoints: array[0..5] of TDTMPointDef;
I could be wrong though.
Wicked sick, xD. Great tut.
My Woodcutting Guide. 1-99 p2p. Click here
http://i38.tinypic.com/s3hu1d.png
Wooo siggy made by "Camo Developer" Thank you xD.
I been doing a lot of gravedigging, because there seems to be some confusion as in what works for osrs
Is this up to date?
http://www.youtube.com/user/YoHoJoSRL
Good scripting guides on youtube
Formerly known as (djcheater)
also dos this work on, non paths ?
i.e anyway?
http://www.youtube.com/user/YoHoJoSRL
Good scripting guides on youtube
Formerly known as (djcheater)
awesome guide! i'm gonna practice with ddtms now thanks to you!
There are currently 1 users browsing this thread. (0 members and 1 guests)