Results 1 to 17 of 17

Thread: it wont walk(click)

  1. #1
    Join Date
    Jul 2007
    Posts
    238
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default it wont walk(click)

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    procedure WalkToTree ;
    var
      bas : Integer;
      x, y :Integer;
    begin
      bas := BitmapFromString2(False, 'a094E778DAE593D10EC2200C45' +
           '7FA99442F19130F8FF4F12EC126B8039897B30BE9C25DDB867850' +
           '20070B31540AEC2B9D448B9D253ACC440CF7AF1AD8EED731FDAC3' +
           'B3A9E4D8126C2E8D11BDE78C79C0C4C9C6010BE711D94D886D956' +
           '6CD91FC9E7F65B48C098A36D266C9246D94CA154649D646792B3C' +
           '652CC1581850194D426768D6A3769DF19E370A25538C7D77DF32F' +
           '63BBCEFB33A475D1F78978CB3B37BE33A361EDE023D33B2C3FB7C' +
           '625DBB737A775E67F5B37BF748D6C67E7AAF30CEF8BBC641BE0B6' +
           '4B70167FFA3A668AD9735A3315020DD010D6');
           if(FindBitmap(x, y, bas))then
      begin
        Mouse(x, y, 1, 1, True)

      end;
    end;



    begin
    SetupSRL;
    MakeCompass('N');
    WalkToTree;
    end.
    it will compile make, compass North
    but it wont walk(click) to the 'bas' spot
    ....

  2. #2
    Join Date
    Aug 2007
    Location
    TN
    Posts
    62
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try a ChooseOption('bas');

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    procedure WalkToTree ;
    var
    x, y, bas : Integer;
    begin
    bas := BitmapFromString2(False, 'a094E778DAE593D10EC2200C45' +
    '7FA99442F19130F8FF4F12EC126B8039897B30BE9C25DDB86 7850' +
    '20070B31540AEC2B9D448B9D253ACC440CF7AF1AD8EED731F DAC3' +
    'B3A9E4D8126C2E8D11BDE78C79C0C4C9C6010BE711D94D886 D956' +
    '6CD91FC9E7F65B48C098A36D266C9246D94CA154649D64679 2B3C' +
    '652CC1581850194D426768D6A3769DF19E370A25538C7D77D F32F' +
    '63BBCEFB33A475D1F78978CB3B37BE33A361EDE023D33B2C3 FB7C' +
    '625DBB737A775E67F5B37BF748D6C67E7AAF30CEF8BBC641B E0B6' +
    '4B70167FFA3A668AD9735A3315020DD010D6');
    if(FindBitmap(x, y, bas))then
    begin
    Mouse(x, y, 1, 1, False)
    ChooseOption('bas');
    end;
    end;



    begin
    SetupSRL;
    MakeCompass('N');
    WalkToTree;
    end.


    I put it to right click then choose 'bas'
    Use the three letters after the word your trying to click on
    exp with Shop put hop
    Tree put ree

    Also, Try reading the SCAR Standards it'll organize you much more.

    Edit: also made only one line for var, not two.
    98% of teens surround their minds with rap, if your part of the 2% that stayed with rock, put this on your signature
    http://www.fenjer.com/adnan/SRLStats/1q1q.png

  3. #3
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    unless i read it wrong i believe he is trying to find out how to click a tree bitmap on the minimap...but i could be wrong

    if thats what you are trying to do, it could be the fact that you didnt make the bitmap accurate, or if you made it accurate, then the colors are shifting in the game on that tree and it just doesnt detect it. Try loging in and out of the worlds (different ones) and pick the color of the tree and see if it changes.

    hope this helps
    METAL HEAD FOR LIFE!!!

  4. #4
    Join Date
    Aug 2007
    Location
    TN
    Posts
    62
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well you can still right click with it :P
    Right click looks much more fancier imo =)
    98% of teens surround their minds with rap, if your part of the 2% that stayed with rock, put this on your signature
    http://www.fenjer.com/adnan/SRLStats/1q1q.png

  5. #5
    Join Date
    Jul 2007
    Posts
    238
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by 1q1q View Post
    Try a ChooseOption('bas');

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    procedure WalkToTree ;
    var
    x, y, bas : Integer;
    begin
    bas := BitmapFromString2(False, 'a094E778DAE593D10EC2200C45' +
    '7FA99442F19130F8FF4F12EC126B8039897B30BE9C25DDB86 7850' +
    '20070B31540AEC2B9D448B9D253ACC440CF7AF1AD8EED731F DAC3' +
    'B3A9E4D8126C2E8D11BDE78C79C0C4C9C6010BE711D94D886 D956' +
    '6CD91FC9E7F65B48C098A36D266C9246D94CA154649D64679 2B3C' +
    '652CC1581850194D426768D6A3769DF19E370A25538C7D77D F32F' +
    '63BBCEFB33A475D1F78978CB3B37BE33A361EDE023D33B2C3 FB7C' +
    '625DBB737A775E67F5B37BF748D6C67E7AAF30CEF8BBC641B E0B6' +
    '4B70167FFA3A668AD9735A3315020DD010D6');
    if(FindBitmap(x, y, bas))then
    begin
    Mouse(x, y, 1, 1, False)
    ChooseOption('bas');
    end;
    end;



    begin
    SetupSRL;
    MakeCompass('N');
    WalkToTree;
    end.


    I put it to right click then choose 'bas'
    Use the three letters after the word your trying to click on
    exp with Shop put hop
    Tree put ree

    Also, Try reading the SCAR Standards it'll organize you much more.

    Edit: also made only one line for var, not two.
    no no thats not it
    the word 'bas' is a spot on the mini map
    it wont move the mouse and click on the mini map thats m problem
    ....

  6. #6
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    is it a lil tree on the minimap that you are trying to click or just a spot?

    if its just a spot on the minimap that is your problem,
    colors are always changing in runescape everytime you log out into a new world and even during your play on the same world...you may have to find another way to walk to the tree
    METAL HEAD FOR LIFE!!!

  7. #7
    Join Date
    Jul 2007
    Posts
    238
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by gerauchert View Post
    is it a lil tree on the minimap that you are trying to click or just a spot?

    if its just a spot on the minimap that is your problem,
    colors are always changing in runescape everytime you log out into a new world and even during your play on the same world...you may have to find another way to walk to the tree
    its just a lil tree on the mini map im trying to walk to
    ....

  8. #8
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    then its not detecting the bitmap and therefore not clicking

    soooo back to where we started...

    just try playin around with the bitmap and trying new things.

    a good way to test your own scripts to see where you are going wrong is to put in little indicators every step of the way, like this:

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    procedure WalkToTree ;
    var
      bas : Integer;
      x, y, WaitTime:Integer;
    begin
      bas := BitmapFromString2(False, 'a094E778DAE593D10EC2200C45' +
           '7FA99442F19130F8FF4F12EC126B8039897B30BE9C25DDB867850' +
           '20070B31540AEC2B9D448B9D253ACC440CF7AF1AD8EED731FDAC3' +
           'B3A9E4D8126C2E8D11BDE78C79C0C4C9C6010BE711D94D886D956' +
           '6CD91FC9E7F65B48C098A36D266C9246D94CA154649D646792B3C' +
           '652CC1581850194D426768D6A3769DF19E370A25538C7D77DF32F' +
           '63BBCEFB33A475D1F78978CB3B37BE33A361EDE023D33B2C3FB7C' +
           '625DBB737A775E67F5B37BF748D6C67E7AAF30CEF8BBC641BE0B6' +
           '4B70167FFA3A668AD9735A3315020DD010D6');
      MarkTime(WaitTime);
      repeat
        Wait(500 + random(200));
        if(TimeFromMark(WaitTime) > 10000)then
        Writeln('cannot find bitmap');
        Exit;
      until(FindBitmap(x,y,bas);
      Writeln('Bitmap found');
      begin
        Writeln('Clicking Bmp');
        Mouse(x, y, 1, 1, True)
      end;
    end;
     
     
     
    begin
    SetupSRL;
    MakeCompass('N');
    WalkToTree;
    end.
    METAL HEAD FOR LIFE!!!

  9. #9
    Join Date
    Jul 2007
    Posts
    238
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by gerauchert View Post
    then its not detecting the bitmap and therefore not clicking

    soooo back to where we started...

    just try playin around with the bitmap and trying new things.

    a good way to test your own scripts to see where you are going wrong is to put in little indicators every step of the way, like this:

    oke ty ill do that

    EDIT:
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    procedure WalkToTree ;
    var
      bas : Integer;
      x, y, WaitTime:Integer;
    begin
      bas := BitmapFromString2(False, 'a094E778DAE593D10EC2200C45' +
           '7FA99442F19130F8FF4F12EC126B8039897B30BE9C25DDB867850' +
           '20070B31540AEC2B9D448B9D253ACC440CF7AF1AD8EED731FDAC3' +
           'B3A9E4D8126C2E8D11BDE78C79C0C4C9C6010BE711D94D886D956' +
           '6CD91FC9E7F65B48C098A36D266C9246D94CA154649D646792B3C' +
           '652CC1581850194D426768D6A3769DF19E370A25538C7D77DF32F' +
           '63BBCEFB33A475D1F78978CB3B37BE33A361EDE023D33B2C3FB7C' +
           '625DBB737A775E67F5B37BF748D6C67E7AAF30CEF8BBC641BE0B6' +
           '4B70167FFA3A668AD9735A3315020DD010D6');
      MarkTime(WaitTime);
      repeat
        Wait(5000 + random(200));
        if(TimeFromMark(WaitTime) > 10000)then
        Writeln('cannot find bitmap');
        Exit;
      until(FindBitmap(x,y,bas));
      Writeln('Bitmap found');
      begin
        Writeln('Clicking Bmp');
        Mouse(x, y, 1, 1, True)
      end;
    end;



    begin
    SetupSRL;
    MakeCompass('N');
    WalkToTree;
    end.

    it start and stops in 2 secs
    ....

  10. #10
    Join Date
    Jun 2007
    Posts
    88
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I know almost nothing about walking with SCAR, not that far along yet but wouldn't adding MMX1, MMY1, MMX2, MMY2 to tell it to only look at the mini-map help?

    Also unless it's a very distinct tree I would try looking for a better landmark.

    One other suggestion again I don't know how it'll work in the mini-map but if the colors are constantly changing as stated earlier using a DTM might work better.

    Just suggestions / ideas. Most of the trully qualified people to help won't be on until later in the day.


    Note to gerauchert
    -- SRL rules require minimum 20 combat on your autoers, if i see you autoing on low lvls i will not hesitate to report you --
    Does it really say level 20 now? I'm all for that. I would assume this excludes Tut Runners and AutoFighters. The line just struck me right way and made me laugh. I report low level autoers all the time too.

  11. #11
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    try using finddeformedbitmaptolerancein (i think thats what the function was called and up the tolerance if it doesnt find it and if tolerance = 10 or whatever number then make it do the Writeln('cannot find bitmap'); like geraucaht said

  12. #12
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Alright I think you should probably use a DTM instead of a bitmap..

    Here for help.

    That's what I used in my woodcutting script and it works perfectly.

    Good Luck =]

  13. #13
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    2,823
    Mentioned
    3 Post(s)
    Quoted
    25 Post(s)

    Default

    Quote Originally Posted by dushii View Post
    oke ty ill do that

    EDIT:
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    procedure WalkToTree ;
    var
      bas : Integer;
      x, y, WaitTime:Integer;
    begin
      bas := BitmapFromString2(False, 'a094E778DAE593D10EC2200C45' +
           '7FA99442F19130F8FF4F12EC126B8039897B30BE9C25DDB867850' +
           '20070B31540AEC2B9D448B9D253ACC440CF7AF1AD8EED731FDAC3' +
           'B3A9E4D8126C2E8D11BDE78C79C0C4C9C6010BE711D94D886D956' +
           '6CD91FC9E7F65B48C098A36D266C9246D94CA154649D646792B3C' +
           '652CC1581850194D426768D6A3769DF19E370A25538C7D77DF32F' +
           '63BBCEFB33A475D1F78978CB3B37BE33A361EDE023D33B2C3FB7C' +
           '625DBB737A775E67F5B37BF748D6C67E7AAF30CEF8BBC641BE0B6' +
           '4B70167FFA3A668AD9735A3315020DD010D6');
      MarkTime(WaitTime);
      repeat
        Wait(5000 + random(200));
        if(TimeFromMark(WaitTime) > 10000)then
        Writeln('cannot find bitmap');
        Exit;
      until(FindBitmap(x,y,bas));
      Writeln('Bitmap found');
      begin
        Writeln('Clicking Bmp');
        Mouse(x, y, 1, 1, True)
      end;
    end;



    begin
    SetupSRL;
    MakeCompass('N');
    WalkToTree;
    end.

    it start and stops in 2 secs
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    procedure WalkToTree ;
    var
      bas : Integer;
      x, y, WaitTime:Integer;
    begin
      bas := BitmapFromString2(False, 'a094E778DAE593D10EC2200C45' +
           '7FA99442F19130F8FF4F12EC126B8039897B30BE9C25DDB867850' +
           '20070B31540AEC2B9D448B9D253ACC440CF7AF1AD8EED731FDAC3' +
           'B3A9E4D8126C2E8D11BDE78C79C0C4C9C6010BE711D94D886D956' +
           '6CD91FC9E7F65B48C098A36D266C9246D94CA154649D646792B3C' +
           '652CC1581850194D426768D6A3769DF19E370A25538C7D77DF32F' +
           '63BBCEFB33A475D1F78978CB3B37BE33A361EDE023D33B2C3FB7C' +
           '625DBB737A775E67F5B37BF748D6C67E7AAF30CEF8BBC641BE0B6' +
           '4B70167FFA3A668AD9735A3315020DD010D6');
      MarkTime(WaitTime);
      repeat
        Wait(5000 + random(200));
        if(TimeFromMark(WaitTime) > 10000)then
        Writeln('cannot find bitmap');
        Exit;
      until(FindBitmap(x,y,bas));
      Writeln('Bitmap found');
      begin
        Writeln('Clicking Bmp');
        Mouse(x, y, 1, 1, True)
      end;
    end;



    begin
    SetupSRL;
    ActivateClient;
    MakeCompass('N');
    WalkToTree;
    end.

    Try now

  14. #14
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Omg what are you trying to tell him? he just spelled FindBitmap wrong! Try this:
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    procedure WalkToTree ;
    var
      bas : Integer;
      x, y :Integer;
    begin
      bas := BitmapFromString2(False, 'a094E778DAE593D10EC2200C45' +
           '7FA99442F19130F8FF4F12EC126B8039897B30BE9C25DDB867850' +
           '20070B31540AEC2B9D448B9D253ACC440CF7AF1AD8EED731FDAC3' +
           'B3A9E4D8126C2E8D11BDE78C79C0C4C9C6010BE711D94D886D956' +
           '6CD91FC9E7F65B48C098A36D266C9246D94CA154649D646792B3C' +
           '652CC1581850194D426768D6A3769DF19E370A25538C7D77DF32F' +
           '63BBCEFB33A475D1F78978CB3B37BE33A361EDE023D33B2C3FB7C' +
           '625DBB737A775E67F5B37BF748D6C67E7AAF30CEF8BBC641BE0B6' +
           '4B70167FFA3A668AD9735A3315020DD010D6');
           if(FindBitmap(bas, x, y))then
      begin
        Mouse(x, y, 1, 1, True)
      end;
    end;



    begin
    SetupSRL;
    MakeCompass('N');
    WalkToTree;
    end.

  15. #15
    Join Date
    Jul 2007
    Posts
    238
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    non of them is working

    mbe its something i did wrong i tried to find this (look mini map in pic)


    took this out it

    and made a bitmap of it
    ....

  16. #16
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    change the bitmap to something other, like the road, test the script then, if it works then its the bmp that is wrong.

  17. #17
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Don't forget to free the bitmap :P ( FreeBitmap(Bitmap: Integer) ).
    All the suggestions here has forgotten it... And when testing 10 times in a row you could catch a bit of lagg...

    -Knives

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help. Wont Click bitmap?
    By 0wn 4 skill in forum OSR Help
    Replies: 8
    Last Post: 07-05-2008, 12:51 PM
  2. Wont Right-Click???
    By Rora in forum OSR Help
    Replies: 3
    Last Post: 11-10-2007, 06:20 PM
  3. Wont click on AutoColorThis
    By badandymitch in forum OSR Help
    Replies: 2
    Last Post: 05-07-2007, 08:57 AM

Posting Permissions

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