Results 1 to 9 of 9

Thread: hey, help with a very basic thing please??

  1. #1
    Join Date
    Aug 2008
    Location
    Chineese-Mexican
    Posts
    109
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    hey, help with a very basic thing please??

    Hey, i was using scar for an auto clicker and it was working but it only worked for non-moving objects... here was the script...
    SCAR Code:
    program click;

    begin
      repeat
      ClickMouse(266, 126, True);
        Wait(50);
      until(GetColor(300, 300) = 101010101);


    end.
    . i didnt know wat to put for until to make it go unlimited amount of times...
    and i had like no clue what to put to make scar find a certain color and click... so heres what i put...
    SCAR Code:
    program click_color;

    begin
      repeat
      FindColor ('11570805')
      ClickMouse(True);
        Wait(50);
      until(GetColor(300, 300) = 101010101);


    end.
    ... i just thought that putting FindColor and then the color would work... but it was a failure...
    Failed when compiling
    Code:
    Line 5: [Error] (5:12): Variable Expected in script
    So ya, any quick help on how to make the mouse find a certain color and then click? and what do i put for until to make it go forever??
    Ty.
    SpEd

  2. #2
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    edit: Hey dude do you have Scar 3.15b and SRL revision 21? I don't think you do.. :/

    using ClickMouse and MoveMouse are very detectable. You should use MMouse for moving, and Mouse for clicking. Here's a little something i quickly put together that should help you a lot. If you need any help, just let me know. =p

    SCAR Code:
    program New;
    {.include /SRL/SRL.SCAR}

    const
      TreeColor = 12345;  // Using a const for a color makes the script much more user friendly.

    var
      x, y: Integer;
     
    begin
      repeat
        if FindColorTolerance(x, y, TreeColor, 0, 0, 514, 336, 3) then // 0, 0, is the starting search point, 514, 336 is the edge of the
        begin                                                      // runescape screen, excluding the minimap, chat box, and inventory.
          MMouse(x, y, 2, 2); //moves the mouse to where it found the color.
          if IsUpText('hop') then //searches top left of rs screen for text, such as "Chop-down tree"
          begin
            Mouse(x, y, 0, 0, false); //true=left click, false=right click, 0, 0 is randomness, which isn't needed beacause you already have a randomness on the MMouse.
            ChooseOption('hop'); //clicks on the text 'hop', in the word Chop
          end;
        end;
        wait(1000 +random(500));   // waits 1000 ms, which is 1 secon, plus anywhere between 0 and 500 extra ms.
      until InvFull; //will repeat the above until the inventory is full.
    end.

    edit; and to make it repeat forever, you could use "Until false;"

    edit2; you can also use counting to do something a particular number of times, like this:

    SCAR Code:
    program New;
    {.include /SRL/SRL.SCAR}

    const
      TreeColor = 12345;  // Using a constant for a color makes the script much more user friendly.

    var
      x, y, Count: Integer;
     
    begin
      repeat
        if FindColorTolerance(x, y, TreeColor, 0, 0, 514, 336, 3) then // 0, 0, is the starting search point, 514, 336 is the edge of the
        begin                                                      // runescape screen, excluding the minimap, chat box, and inventory.
          MMouse(x, y, 2, 2); //moves the mouse to where it found the color.
          if IsUpText('hop') then //searches top left of rs screen for text, such as "Chop-down tree"
          begin
            Mouse(x, y, 0, 0, false); //true=left click, false=right click, 0, 0 is randomness, which isn't needed beacause you already have a randomness on the MMouse.
            ChooseOption('hop'); //clicks on the text 'hop', in the word Chop
            Inc(Count);      // Increases the variable "Count", by 1. Dec(Count); would decrease it.
          end;
        end;
        wait(1000 +random(500));   // waits 1000 ms, which is 1 secon, plus anywhere between 0 and 500 extra ms.
      until Count = 28;  // will repeat until it has done it 28 times.
    end.

  3. #3
    Join Date
    Aug 2008
    Location
    Illinois
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok its very basic but we were all noobs once first off, clickmouse is very very detecable by jagex. So you want to use mouse. So heres a good script for you and your promblems :P

    i wrote this up for you
    copy paste this into scar

    //made by Brianb
    //hope this helps
    program autoclicker;
    {.include srl/srl.scar}
    var
    x, y:integer;
    procedure clickcolor;
    begin
    if (findcolor(x, y, Colorhere, 0, 0, 1000, 700)) then
    mouse(x, y, 5, 5, true);
    wait(50);
    end;
    begin
    repeat
    clickcolor;
    until(false)
    end.

  4. #4
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Brianb, could you please use SCAR tags when you post something written in SCAR. Saves everyone a bit of trouble, and it's there for a reason

  5. #5
    Join Date
    Aug 2008
    Location
    Chineese-Mexican
    Posts
    109
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by orange View Post
    edit: Hey dude do you have Scar 3.15b and SRL revision 21? I don't think you do.. :/

    using ClickMouse and MoveMouse are very detectable. You should use MMouse for moving, and Mouse for clicking. Here's a little something i quickly put together that should help you a lot. If you need any help, just let me know. =p

    SCAR Code:
    program New;
    {.include /SRL/SRL.SCAR}

    const
      TreeColor = 12345;  // Using a const for a color makes the script much more user friendly.

    var
      x, y: Integer;
     
    begin
      repeat
        if FindColorTolerance(x, y, TreeColor, 0, 0, 514, 336, 3) then // 0, 0, is the starting search point, 514, 336 is the edge of the
        begin                                                      // runescape screen, excluding the minimap, chat box, and inventory.
          MMouse(x, y, 2, 2); //moves the mouse to where it found the color.
          if IsUpText('hop') then //searches top left of rs screen for text, such as "Chop-down tree"
          begin
            Mouse(x, y, 0, 0, false); //true=left click, false=right click, 0, 0 is randomness, which isn't needed beacause you already have a randomness on the MMouse.
            ChooseOption('hop'); //clicks on the text 'hop', in the word Chop
          end;
        end;
        wait(1000 +random(500));   // waits 1000 ms, which is 1 secon, plus anywhere between 0 and 500 extra ms.
      until InvFull; //will repeat the above until the inventory is full.
    end.

    edit; and to make it repeat forever, you could use "Until false;"

    edit2; you can also use counting to do something a particular number of times, like this:

    SCAR Code:
    program New;
    {.include /SRL/SRL.SCAR}

    const
      TreeColor = 12345;  // Using a constant for a color makes the script much more user friendly.

    var
      x, y, Count: Integer;
     
    begin
      repeat
        if FindColorTolerance(x, y, TreeColor, 0, 0, 514, 336, 3) then // 0, 0, is the starting search point, 514, 336 is the edge of the
        begin                                                      // runescape screen, excluding the minimap, chat box, and inventory.
          MMouse(x, y, 2, 2); //moves the mouse to where it found the color.
          if IsUpText('hop') then //searches top left of rs screen for text, such as "Chop-down tree"
          begin
            Mouse(x, y, 0, 0, false); //true=left click, false=right click, 0, 0 is randomness, which isn't needed beacause you already have a randomness on the MMouse.
            ChooseOption('hop'); //clicks on the text 'hop', in the word Chop
            Inc(Count);      // Increases the variable "Count", by 1. Dec(Count); would decrease it.
          end;
        end;
        wait(1000 +random(500));   // waits 1000 ms, which is 1 secon, plus anywhere between 0 and 500 extra ms.
      until Count = 28;  // will repeat until it has done it 28 times.
    end.
    Dude, Thank you very much that helped me out a lot. but i have really no clue what those mean.. like find color tolerance and stuff?? can you explain it too me, i know you did in the script but i was still confused... EDIT-- nvm i re read all the comments in the script and i get it now.. Ty man EDIT2-- wait dude, when i press play, the mouse just stays in the same spot and doesnt move around at all??
    P.S- plus+ rep if i can

    YA I AM TRYING TO USE IT ON A RUNESCAPE PRIVATE SERVER FYI.

  6. #6
    Join Date
    Mar 2008
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by jumbosped View Post
    Dude, Thank you very much that helped me out a lot. but i have really no clue what those mean.. like find color tolerance and stuff?? can you explain it too me, i know you did in the script but i was still confused... EDIT-- nvm i re read all the comments in the script and i get it now.. Ty man EDIT2-- wait dude, when i press play, the mouse just stays in the same spot and doesnt move around at all??
    P.S- plus+ rep if i can

    YA I AM TRYING TO USE IT ON A RUNESCAPE PRIVATE SERVER FYI.
    select the screen with the crosshairs and put ActivateClient at the beginning of that script...

  7. #7
    Join Date
    Aug 2008
    Location
    Chineese-Mexican
    Posts
    109
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by sirlaughsalot View Post
    select the screen with the crosshairs and put ActivateClient at the beginning of that script...
    when i do that then it puts the private server box ontop of scar and then slowly moves the mouse to the left like a few millimeters everytime until it gets to the left edge of my screen... help?

  8. #8
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Have you included SRL?
    And did you call
    SCAR Code:
    SetupSRL; //in your main loop .
    ~Eerik~

  9. #9
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    FindColorTolerance is the same as FindColor, but you add a tolerance to it, so it will find the color you specify, and colors very similar to that.

    edit: heavenzeyez1 is right, i forgot to SetupSRL in that example script.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Basic Autotalker
    By Laimonas171 in forum C#/Visual Basic Help and Tutorials
    Replies: 5
    Last Post: 11-23-2008, 02:57 AM
  2. pretty basic (i think)
    By Magiic in forum OSR Help
    Replies: 3
    Last Post: 07-24-2008, 09:13 AM
  3. Need some basic help.
    By r3dr4g0n in forum OSR Help
    Replies: 6
    Last Post: 10-01-2007, 11:27 AM
  4. Basic Photoshop Needs.
    By P O O N4GE in forum Semi Stupid Pictures
    Replies: 0
    Last Post: 07-30-2007, 04:27 PM
  5. basic scripting help
    By 1234 in forum OSR Help
    Replies: 5
    Last Post: 06-08-2007, 11:12 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
  •