Results 1 to 17 of 17

Thread: DTM problem

  1. #1
    Join Date
    May 2007
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default DTM problem

    I've got this stinky problem, every time i restart RuneScape i have to change the DTM, otherwise it can't find it!

  2. #2
    Join Date
    Nov 2006
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    because colors change, try to set a tolerance, btw what is the dtm of?
    Infractions, reputation, reflection, the dark side of scripting, they are.

  3. #3
    Join Date
    Apr 2007
    Posts
    186
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Robbiej View Post
    I've got this stinky problem, every time i restart RuneScape i have to change the DTM, otherwise it can't find it!
    What you made the DTM of ? I have a great tip for you too. Make the DTM from the black outline of item.

  4. #4
    Join Date
    May 2007
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    But that's impossible a tree icon on the map hasn't got any black outlines...

    Iloveit8, how do i set a tolerance for DTMs?

  5. #5
    Join Date
    Nov 2006
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    for the tree icon:
    SCAR Code:
    FindSymbol(x, y, 'tree');//not sure if it is tree....
    Mouse(x, y, 2, 2, true);
    Infractions, reputation, reflection, the dark side of scripting, they are.

  6. #6
    Join Date
    May 2007
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    But i really need it to be specific trees...

  7. #7
    Join Date
    Apr 2007
    Location
    Finland
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I had to find the color of a specific tree on MM, so I did a DTM of it so that the radialwalk has always right colors. Here's a paint picture

    Well so it finds the tree, then
    SCAR Code:
    Color := GetColor (Coords found from the position of the DTM)
    And voilâ you have your color refreshed every time it runs.
    And when your doing a DTM look at the almost lowest bar on the right I think, there's the tolerance.

    That can sound a little weird, I'm not good doing tuts
    I hope you get the idea

  8. #8
    Join Date
    Apr 2007
    Posts
    186
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    So you want the tree not the symbol but the tree, well its kinda hard because if your minimap is rotated a little then it isnt the same it was before i hope you get what im saying! But some skilled scripter could do it!

  9. #9
    Join Date
    Nov 2006
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    try finddtmrotated...
    Infractions, reputation, reflection, the dark side of scripting, they are.

  10. #10
    Join Date
    Apr 2007
    Posts
    186
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by iloveit8 View Post
    try finddtmrotated...
    Ive always had problems with it. The last variable is wierd , havent found any good tutorials from it either! Or one post where Fakawi, Freddy, and some others talked about it!

  11. #11
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    FindDTMRotated(DTM, x, y, x1, y1, x2, y2: Integer; StartAngle, EndAngle, AngleStep: Extended; var Angle: Extended): Boolean;

    Scans for a Rotated DTM. I use StartAngle Radians(-20) and EndAngle Radians(20) and AngleStep 0.005 This scans for the DTM -20 to 20 degrees from its origin (Mainpoint) in 0.005 radian steps, where 6.28 (= 2*pi) = 360 degrees.

    so:

    FindDTMRotated(DTM, x, y, MMx1, MMy1, MMx2, MMy2, Radians(-20), Radians(20), 0.005, Angle); will scan for the DTM on the minimap with a rotation of 40 degrees ( 20 to the left and 20 to the right) around its Mainpoint. Using the SCAR 2.03 DTM-Editor set the colortolerance of each subpoint to 20-50 (experiment with these values). Using DIVI I would suggest using Dynamic DTM's, since you can input the colors/points/tolerances etc. runtime.

    More on this subject maybe later. Hope this helps a bit.
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  12. #12
    Join Date
    Apr 2007
    Posts
    186
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, this helped alot. Thank you very much.

    EDIT: And what are Dynamic DTM's ?

  13. #13
    Join Date
    Apr 2007
    Location
    Finland
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by inSane View Post
    Yes, this helped alot. Thank you very much.

    EDIT: And what are Dynamic DTM's ?
    Search "Dynamic" and you'll find Fawkis tut of dynamic DTMs with a little searching.

  14. #14
    Join Date
    Apr 2007
    Posts
    186
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ya, i was kind of busy so i had no time for searching, and its always easyer to just ask in here, but thats just my opionion!

  15. #15
    Join Date
    May 2007
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I have MakeCompass(' N'); in my script so FindDTMRotated won't work, will it?

    @Pownzor, that won't work, because there are lots of trees on the minimap at draynor, with all the same color... and i just need the trees, and not the oaks or willows... i need those later :P

    (Creating a multi tree chopper + banker)

  16. #16
    Join Date
    Nov 2006
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    why wouldnt finddtm rotated work? perfect north is a little bit off(always) so try finddtmrotated..
    Infractions, reputation, reflection, the dark side of scripting, they are.

  17. #17
    Join Date
    May 2007
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok i will try immediatly when i'm on the right comp..

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. problem...
    By Blumblebee in forum OSR Help
    Replies: 4
    Last Post: 12-28-2008, 07:22 AM
  2. help big problem
    By goblanca in forum OSR Help
    Replies: 3
    Last Post: 05-19-2007, 10:41 PM

Posting Permissions

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