Results 1 to 9 of 9

Thread: DTM help please

  1. #1
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default DTM help please

    Ok i am making my script and i am making the DTM failsafes but...
    I want it to find the rock on the minimap (draynor)
    here is my DTM:
    Code:
    RockDTM := DTMFromString('78DA633CCBC4C020CAC8800C224383C1344C9' + 
           '4F11C508D30AA1A370F0354351730CDF10EB2C3344702558D4F98' + 
           '09AA9AD340359268EEC95645557312A8461C558DB3AB0EAA9A534' + 
           '03522A86A1C1CAC485603004BED0DB8');
    How do I put this in my script? Do i put it in my WalkToWillows Proc or its own Procedure?


    cheers
    T~M

  2. #2
    Join Date
    Mar 2009
    Location
    Antaractica, Penguin Drive
    Posts
    140
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You put it in your walking procedure, you just need to declare it and then use it as a end else statement Just remember this code should be sort of fitted in to the rest of your procedure.

    Code:
    procedure WalkToWillows;
    var
      x, y, RockDTM: Integer;
      begin 
      RockDTM := DTMFromString('78DA633CCBC4C020CAC8800C224383C1344C9' + 
           '4F11C508D30AA1A370F0354351730CDF10EB2C3344702558D4F98' + 
           '09AA9AD340359268EEC95645557312A8461C558DB3AB0EAA9A534' + 
           '03522A86A1C1CAC485603004BED0DB8');
      if FindDTM(RockDTM, x, y, MMX1, MMY1, MMX2, MMY2) then
        begin
          Mouse(x, y, 0, 0, True);
        end;
    end;
    Sorry about standards :s
    Last edited by CowFish; 05-09-2009 at 07:21 PM.

  3. #3
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by banditmeow aka CowFish View Post
    You put it in your walking procedure, you just need to declare it and then use it as a end else statement Just remember this code should be sort of fitted in to the rest of your procedure.

    Code:
    procedure WalkToWillows;
    var
      x, y, RockDTM: Integer;
      begin 
      RockDTM := DTMFromString('78DA633CCBC4C020CAC8800C224383C1344C9' + 
           '4F11C508D30AA1A370F0354351730CDF10EB2C3344702558D4F98' + 
           '09AA9AD340359268EEC95645557312A8461C558DB3AB0EAA9A534' + 
           '03522A86A1C1CAC485603004BED0DB8');
      if FindDTM(RockDTM, x, y, MMX1, MMY1, MMX2, MMY2) then
        begin
          Mouse(x, y, 0, 0, True);
        end;
    end;
    Sorry about standards :s
    Thank you rep+

    T~M

  4. #4
    Join Date
    Mar 2009
    Location
    Antaractica, Penguin Drive
    Posts
    140
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No problemo lol I just had to do DTMs yesterday for a yew cutter so was easy to remember

  5. #5
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    lol ok.

    T~M

  6. #6
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Might want to make that DTMRotated(RockDTM, blablabla) in case the minimap gets turned a tad
    Ce ne sont que des gueux


  7. #7
    Join Date
    Mar 2009
    Location
    Antaractica, Penguin Drive
    Posts
    140
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I always just did
    Code:
    MakeCompass('N');
    before doing my walking procedures

  8. #8
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Even still, it is always better to use DTMRotated to find DTMs on the MM.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  9. #9
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No offence, but this is were a tutorial section is for .
    ~Hermen

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
  •