NiCbaZ
2008-04-18 03:56:46
DTM's
This a Full Tut On How to Make DTM;s And How To Use Them
Contents
- Getting The Image
- Making the item DTM
- Use the item DTM
- Making The Banking DTM ~HOT~
- Using the Banking DTM// coming soon
- testing the DTM//coming soon
Getting The Image
1.
We are making a DTM of a yew log so we would find the "Print Screen" key on my our key bored located just up from the keypad and press it.
2.Open up paint and press crl V you should have this:

then select the yew log crl C
open up a new paint document and control V and you should have this:

save the file then open up scar and go to
>File you should have this:

>DTM editor you should have this:

Then Go Edit>load image you should have this:

find the image on your computer and open it up if you have followed this tut correctly you should have this:

if your page looks like that then
Part 1 of TUT Done;
Making The Item DTM
Ok if you have Done part 1 you are up to part 2 you should have your image loaded in the DTM editor if you dont go back to part 1 if you do keep on reading.
A DTM uses a main point where it clicks and a sub point(s), to create your Mainpoint you simply click in the middle of the image you want to make the DTM of like so….

notice the yellow dot in the middle that is the mainpoint on the side of the DTM editor there is a box called tolerance that means it will find the the color pixles (to how much you set the tolerance at) so a good one for items is 12 so put the tolerance at 12 and now it is time to start making our sub points.
to make the first sub point find the black border on the outside of the image ( you can see the colors on the color box on top of the image) then click on that border somewhere around the item and you should have this.

then do that again 5-7 times around the border of the image and it should look like this.

then you simply go file>DTM to text it will come up in your debug box, how simple is that?
Well Done you have completed Part 2 of this Tut.
Using The Item DTM
There are many ways to use the item DTM in runescape when you are using your DTM you should make a procedure at the start of the script called
procedure LoadDTMs;and place your DTM in there like so
procedure LoadDTMs;
begin
DTM := DTMFromString('78DA63146360601066400141765C609A11CA6' +
'7E406125C0C688011558D0AA639186A1480040F01357C40429680' +
'1A36202146408D3890E020A0460A4848E15703006F5801ED');
end;and when you do this always remember to call on the DTM in the mainloop
begin
setupsrl;
LoadDTMs;
also you have to declare the DTM in your var at the start of your script like so
var
DTM: integer;
x, y: integer; // dont forget to include this for the clicking
to use the dtm in your script there are many ways i will teach you one of the many ways.
procedure DropTheYewLogs;
begin
if FindDTM(DTM, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
Mouse(x, y, 5, 5, false);
ChooseOption('rop');
end;
end;this would be the procedure you would use to drop a yew log
the MIX1 ect are the inventory coords in runescape it will try and find the dtm in there..
Mouse(x,y, 5, 5, false);
Right clicks on the yew log in the center of it if you made your DTM correctly
ChooseOption('rop');
chooses the Option drop so it will drop the logs see how simple is that!
If it all works out for you have completed Part 3 of this Tut



