Results 1 to 15 of 15

Thread: DTM problem

  1. #1
    Join Date
    Feb 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default DTM problem

    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....

  2. #2
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    is your dtm not being detected?

  3. #3
    Join Date
    Feb 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    example would be:

    Simba Code:
    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.

  4. #4
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    Quote Originally Posted by myrez View Post
    example would be:

    Simba Code:
    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.

  5. #5
    Join Date
    Feb 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    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

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

  6. #6
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    Quote Originally Posted by myrez View Post
    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

    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)

  7. #7
    Join Date
    Feb 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    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?
    Last edited by myrez; 03-04-2013 at 01:17 AM.

  8. #8
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    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)

  9. #9
    Join Date
    Feb 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    yes its in first row!

    so how about walking is sps best way?

  10. #10
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    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.

  11. #11
    Join Date
    Feb 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

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

  12. #12
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    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.

  13. #13
    Join Date
    Feb 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

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

  14. #14
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    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.

  15. #15
    Join Date
    Feb 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    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
    Last edited by myrez; 03-04-2013 at 02:28 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •