Results 1 to 5 of 5

Thread: FindDTMRotated Help?

  1. #1
    Join Date
    Aug 2009
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default FindDTMRotated Help?

    So im trying to make the walking part of my scirpt and i post the start of the function in to a new scar to try it out and see if it compiles and it does not compile
    I think its to do with the parameters of FindDTMRotated but im not to sure
    SCAR Code:
    {.include srl/srl.scar}


    Function Walker:Boolean;

    Var a,x,y,WalkDTM:Integer;

    Begin
    If Not LoggedIn Then Exit;

     { If (Loc='Bank') Then
        If (LocTo='Tree1') Then
        Begin
       }

          WalkDTM := DTMFromString('78DA632C676660D0636440066DF5450C46401' +
           'A24FA1F08180B806AE450D5BCFAFA1D4CC34419DB806AD450D57C' +
           '7CFF0E554D1D508D150173407619E2570300B830144C');

           If FindDTMRotated(WalkDTM,x,y,MMX1,MMY2,MMX2,MMY2,-20,20,2,a) Then
           Begin
           WriteLn('FoundDTM')
                Mouse(x,y,5,5,True);
           End Else WriteLn('Not Found DTM');


    End;



    Begin
    SetUpSRL
    Wait(3000);
    Walker;
    End.

    Thanks for any help
    ~Rya
    I see Now, says the blind man

  2. #2
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Degrees(-20), Degrees(20), Degrees(2)

    Also, a needs to be :Extended.

  3. #3
    Join Date
    Aug 2009
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    Degrees(-20), Degrees(20), Degrees(2)

    Also, a needs to be :Extended.
    Umm what need to be :Extended
    Could you maybe please post what that lines needs to look like
    i would be forever thanksfull
    I see Now, says the blind man

  4. #4
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    {.include srl/srl.scar}


    Function Walker:Boolean;

    Var
      x,y,WalkDTM:Integer;
      A: Extended; // " var Angle: Extended"

    Begin
    If Not LoggedIn Then Exit;

     { If (Loc='Bank') Then
        If (LocTo='Tree1') Then
        Begin
       }

          WalkDTM := DTMFromString('78DA632C676660D0636440066DF5450C46401' +
           'A24FA1F08180B806AE450D5BCFAFA1D4CC34419DB806AD450D57C' +
           '7CFF0E554D1D508D150173407619E2570300B830144C');

           If FindDTMRotated(WalkDTM,x,y,MMX1,MMY2,MMX2,MMY2,Degrees(-20),Degrees(20),Degrees(2),A) Then
           Begin
           WriteLn('FoundDTM')
                Mouse(x,y,5,5,True);
           End Else WriteLn('Not Found DTM');

       FreeDTM(WalkDTM); // Free it
    End;

  5. #5
    Join Date
    Aug 2009
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thany you for the help
    I see Now, says the blind man

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
  •