SRL Archive - OSR Help

DTM problem


myrez

2013-03-03 19:52:57

hello im trying to get items from bank with DTM but somehow it always shows black corner.. maybe someone could explain why? im trying to get rune esssence. tryed with choose option prom menu ( it was working like few days ago) now it doesnt so i dont understand whats wrong….

x[Warrior]x3500

2013-03-03 19:57:47

is your dtm not being detected?

myrez

2013-03-03 20:00:27

example would be:

    EssDTM := DTMFromString('mrAAAAHic42BgYOBjgAARIJaE0uxQcT4omxsqzgDlcwIxD5QfHxkJJBnhOD0hniHA25Mh2MeHobKwgIGVAT9gJIBhAAA3kQYt');
if FindDTM(EssDTM, x, y, MSX1, MSY1, MSX2, MSY2) then;
begin
mmouse(x,y,0,0)

and my mouse goes to black corner of RS screen also tryed it with MBX same.

x[Warrior]x3500

2013-03-03 20:04:10

From: myrez
example would be:

    EssDTM := DTMFromString('mrAAAAHic42BgYOBjgAARIJaE0uxQcT4omxsqzgDlcwIxD5QfHxkJJBnhOD0hniHA25Mh2MeHobKwgIGVAT9gJIBhAAA3kQYt');
if FindDTM(EssDTM, x, y, MSX1, MSY1, MSX2, MSY2) then;
begin
mmouse(x,y,0,0)

and my mouse goes to black corner of RS screen also tryed it with MBX same.

if the mouse is going to the top left corner of the client (im assuming thats what u are tlking about), then it means you do not have an accurate dtm. the dtm itself is not found. recreate the dtm (add more tolerance if needed).

how do i know this? well the findDTM function will change the x and y variables to the dtm's tPoint. all integer variables automatically start off at 0, so you have to change them. So, if you go to 0,0 with ur mouse, then those variables were never changed by the findDTM function. Thus the findDTM function never found the dtm.

myrez

2013-03-03 20:08:30

ok will try. and why this P07_MakeCompassNorth; never works in my script? but if i use other people scripts it works its like magic to me :D

and is DTM good for taking items from bank? maybe you could suggest something better

x[Warrior]x3500

2013-03-03 20:12:37

From: myrez
ok will try. and why this P07_MakeCompassNorth; never works in my script? but if i use other people scripts it works its like magic to me :D

and is DTM good for taking items from bank? maybe you could suggest something better


no idea about the p07 compass question, but dtms are great for items! they are just as good, if not better than bitmaps. i even use item finding for my mini dtm tutorial (here)

myrez

2013-03-03 20:15:25

like in your tutorial if i press Show Matching DTMs for my DTM i will show rune essence but in script it doesnt do anything..

and for walking best way is sps?

x[Warrior]x3500

2013-03-03 20:19:36

hmm is it on the first row in ur bank? try putting it on the 3rd.

it might be due to u using the RS MS coords, and not the rs07 MS coords. or it might be due to u doing setupSRL; and that creates a 50 pxl buffer on the upper part of the client. (for navbar in RS)

myrez

2013-03-03 20:20:53

yes its in first row!

so how about walking is sps best way?

x[Warrior]x3500

2013-03-03 20:22:47

sps is always the easiest, but i dont know how well it works for rs07. using radialwalk is a great way also, just a little harder to get it down solid. tpas can be good as well. and ddtms can be useful.

myrez

2013-03-03 20:29:37

so those x, y in dtm is always the same? item has to be alwasy in same place?

x[Warrior]x3500

2013-03-03 20:32:48

nope. a dtm is a group of points' distances from one another and the colors. for instance. if i have point 1 with a color of 12345, and point 2 with a color of 00000, then ANYWHERE you look as long as point 1 has color 12345, and point 2 has color 00000 AND the distance between point 1 and point 2 are the same as the original points, that will be a dtm.

myrez

2013-03-03 20:46:08

ok got its working thanks for everything now need to find out how to select withdraw all.. have no idea nothing is working

x[Warrior]x3500

2013-03-03 20:53:09

well in normal rs, i would use the function waitOption(); umm but u could also use chooseOption();

check to see if there is a p07 version of either of these functions in the p07 include.

myrez

2013-03-03 21:18:06

just P07_ChooseOptionMulti but as i sed from start somehow it doenst work

got it working somehow had to create new begin/end to work