Results 1 to 5 of 5

Thread: I Made my first DDTM that works

  1. #1
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default I Made my first DDTM that works

    well thanks YoHoJo it was your tut i got it from ignore all the RoadMp stuff i was just using it form yohojos tut. If you would like to test stand under falador east bank with the minimap visible it should click between the 3 trees (tested 3 times and it worked!

    SCAR Code:
    program New;

    var YRoadDTM:Integer;
    var RoadMP: TDTMPointDef;
    var RoadSP: array[0..2] of TDTMPointDef;
    var RoadDTMSkel: TDTM;
    VAR x, y: Integer;
    {.include SRL\SRL.scar}


    Procedure Load;
    Begin
      RoadMP.x:=752;
      RoadMP.y:=306;
      RoadMP.areasize:=1;
      RoadMP.areashape:=0;
      RoadMP.color:=2195572;
      RoadMP.tolerance:=30;
     
      RoadSP[0].x:=760;
      RoadSP[0].y:=303;
      RoadSP[0].areasize:=1;
      RoadSP[0].areashape:=0;
      RoadSP[0].color:=2195572;
      RoadSP[0].tolerance:=30;

      RoadSP[1].x:=743;
      RoadSP[1].y:=302;
      RoadSP[1].areasize:=1;
      RoadSP[1].areashape:=0;
      RoadSP[1].color:=681518;
      RoadSP[1].tolerance:=30;

      RoadSP[2].x:=756;
      RoadSP[2].y:=293;
      RoadSP[2].areasize:=1;
      RoadSP[2].areashape:=0;
      RoadSP[2].color:=2195565;
      RoadSP[2].tolerance:=30;


      RoadDTMSkel.MainPoint:=RoadMP;
      RoadDTMSkel.SubPoints:=RoadSP;
      YRoadDTM:=AddDTM(RoadDTMSkel);
    End;

    Procedure FindIt;
    Begin
      if (FindDTM(YRoadDTM,x, y, MMX1, MMY1,MMX2, MMY2)) Then
      Begin
      Mouse(x, y, 0, 0, True);
      Writeln('w0ot');
      End;
    End;

    Begin
      SetupSRL;
      Load;
      FindIt;
    End.

  2. #2
    Join Date
    Sep 2007
    Location
    Canada Eh
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    really??? thats where i made mine..... i was gonna make a tree cutter that cut trees there lol, but the colours kept changing and it wouldnt work after awhile lol

  3. #3
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    AHH MANN thats somethink i forgot lol gotta get people to pick the color o ell i still made one that will work until i change worlds

  4. #4
    Join Date
    Sep 2007
    Location
    Canada Eh
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yea, i know its a pain in the ass

  5. #5
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Mehh its easily fixed just get a user to color pick the tree pixels

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. If there is a DDTM....
    By Claymore in forum OSR Help
    Replies: 6
    Last Post: 07-07-2008, 03:43 AM
  2. DDTM help
    By [S]paz in forum OSR Help
    Replies: 12
    Last Post: 02-16-2008, 06:18 PM
  3. Help with DDTM
    By stampede10343 in forum OSR Help
    Replies: 3
    Last Post: 01-23-2008, 10:53 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
  •