Results 1 to 3 of 3

Thread: DTM Problem

  1. #1
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    DTM Problem

    Ok, so im exploring dtm's now (Yay!) and im getting Identifier Expected. All im using is a simple find DTM script i made from Yohojo's Tut. Anyways i made it for a tree DTM and as i said i get Identifier Expected. Explain whats wrong and what im doing wrong please .

    Script:

    Code:
    program Test;
    {.include SRL/SRL.scar}
    
    var
    TreePart: Integer;
    
    Procedure DTM;
    Begin
    TreePart := DTMFromString('78DA63AC64626058CCC8800C5AD36CC1344C9' + '4B102A8661AAA9AB2687354352073D6A1AAA98AB54055530354B3' + '96809A724C731A92AC50D59401D5CC4155D39DE380A20600F2A50' + 'D71');
    if FindDtm(TreePart, x, y, 0, 0, 0, 0) Then
    Begin
    Mouse(x, y, 5, 5, True);
    Sleep(150+Random(150));
    End;
    
    Begin
    SetupSRL;
    ActivateClient;
    Repeat
    DTM;
    End.
    And remember:

    A newb scripter will never learn anything if you give them the answer! Explain everything in as much detail as you can so all us newb scripters can learn more! Anyways i need help fast .

  2. #2
    Join Date
    Mar 2006
    Posts
    403
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program Test;
    {.include SRL/SRL.scar}

    var
    TreePart: Integer;

    Procedure DTM;
    Begin
    TreePart := DTMFromString('78DA63AC64626058CCC8800C5AD36CC1344C9' +
    '4B102A8661AAA9AB2687354352073D6A1AAA98AB54055530354B3' +
    '96809A724C731A92AC50D59401D5CC4155D39DE380A20600F2A50' +
    'D71');
    if FindDtm(TreePart, x, y, MSX1, MSY1, MSX2, MSY2) Then //Changed 0's, now will search MainScreen For DTM

    Begin
    Mouse(x, y, 5, 5, True);
    Sleep(150+Random(150));
    End //- Added An End

    End;

    Begin
    SetupSRL;
    ActivateClient;
    Repeat
    DTM;

    Until(False); //- Needed An Until
    End.

    Fixed

  3. #3
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks Charmz. At first im like "wheres the explanation?" Then i saw it in the script . Again thanks a lot.

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
  •