Results 1 to 6 of 6

Thread: Auto Color Clicks Once and Screws Up...

  1. #1
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Auto Color Clicks Once and Screws Up...

    *SOLVED*

    The auto color clicker for the game I play finds the color I specified, clicks it once, and locks onto that spot and clicks there continually. The color doesn't even have to be there and it will continue clicking. When I try and move the cursor it will jump back there in another 3 seconds and it says "Pink Bunny found" when nothing is actually there. Here is my code-

    Code:
    program Goonzu_AutoHunt;
    const
         PinkBunny = 11907831;
         BossBunny = 11772665;
    var
    x, y:integer;
    begin
    if FindColorTolerance(x, y, PinkBunny, 300, 100, 700, 450, 0) then
    repeat
      begin
        ClickMouse(x + 10, y + 10, true);
        writeln('Pink Bunny found');
        Wait(3000);
      end;
      if FindColorTolerance(x, y, BossBunny, 300, 100, 700, 450, 0) then
      begin
        ClickMouse(x + 10, y + 10, true);
        writeln('Boss Bunny found')
        Wait(5000);
      end;
      writeln('Cant find anymore Pink Bunny or Boss Bunny :S');
    until(false);
    end.
    Anyone experienced this problem before?

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, California
    Posts
    276
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program Goonzu_AutoHunt;
    const
         PinkBunny = 11907831;
         BossBunny = 11772665;
    var
    x, y:integer;
    begin
    repeat
    if FindColorTolerance(x, y, PinkBunny, 300, 100, 700, 450, 0) then
    begin
      ClickMouse(x + 10, y + 10, true);
      writeln('Pink Bunny found');
      Wait(3000);
    end else
    begin
      writeln('Cant find anymore Pink Bunny :S');
      Break;
    end;
    if FindColorTolerance(x, y, BossBunny, 300, 100, 700, 450, 0) then
    begin
      ClickMouse(x + 10, y + 10, true);
      writeln('Boss Bunny found')
      Wait(5000);
    end else
    begin
      writeln('Cant find anymore Boss Bunny :S');
      Break;
    end;
    until(false);
    end.
    Tell me if that works.
    Current Project: All In 1 Falador Script - 20% DONE

  3. #3
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Your problem is in this I think:
    SCAR Code:
    FindColorTolerance(x, y, BossBunny, 300, 100, 700, 450, 0)
    The colors change a lot in runescape, thats why you need to add a tolerance!
    Do something like
    SCAR Code:
    FindColorTolerance(x, y, BossBunny, 300, 100, 700, 450, 15)
    That should work

    And btw, clickmouse is bannable, you better don't use that

    PvH

  4. #4
    Join Date
    Oct 2006
    Location
    I'm also from Michigan!
    Posts
    563
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    is your character banned yet?

    - First, use standards so we can all read it
    - Use the SRL include.
    - Do not use clickMouse. Use SRL's mouse.
    - Use failsafes.

    Im using Shermantors because he fixed the loop up the look nicely
    SCAR Code:
    program Goonzu_AutoHunt;
    {.include srl/srl.scar}
    const
      PinkBunny = 11907831;
      BossBunny = 11772665;
    var
      x, y:integer;
    begin
      repeat
        if FindColorTolerance(x, y, PinkBunny, 300, 100, 700, 450, 0) then
        begin
          mouse(x + 10, y + 10, 3, 3, true);
          writeln('Pink Bunny found');
          Wait(3000);
        end else
        begin
          writeln('Cant find anymore Pink Bunny :S');
          Break;
        end;
        if FindColorTolerance(x, y, BossBunny, 300, 100, 700, 450, 0) then
        begin
          mouse(x + 10, y + 10, 3, 3, true);
          writeln('Boss Bunny found')
          Wait(5000);
        end else
        begin
          writeln('Cant find anymore Boss Bunny :S');
          Break;
        end;
      until(not(loggedIn));
    end.

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, California
    Posts
    276
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Guys I don't think he's using it for runescape, he said "for a game I play" which could be Runescape but I don't think there are pink bunnies in Runescape, but I could be wrong
    Current Project: All In 1 Falador Script - 20% DONE

  6. #6
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Shermanator View Post
    Guys I don't think he's using it for runescape, he said "for a game I play" which could be Runescape but I don't think there are pink bunnies in Runescape, but I could be wrong
    Right you are :P
    http://img410.imageshack.us/img410/7...4217582ws9.jpg

    But my problem is solved. What I wasn't thinking about is that it found the color in the if statement and repeated all the other steps, never finding a new color (thus never finding a new location). Here is my code now-

    SCAR Code:
    program Goonzu_AutoHunt;
    const
         PinkBunny = 11907831;
         BossBunny = 16777215;
    var
    x, y:integer;
    begin
    if (1 < 10) then
      repeat
        FindColor(x, y, PinkBunny, 364, 216, 633, 464)
        ClickMouse(x + 10, y + 10, true);
        writeln('Pink Bunny found!');
        Wait(1000);
                   FindColor(x, y, BossBunny, 364, 216, 633, 464)
                   ClickMouse(x + 10, y + 10, true);
                   writeln('Boss Bunny found!')
                   Wait(1000);
        until(false);
        writeln('Couldnt fins anymore Pink Bunny or Boss Bunny');
    end.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. color coordinates and mouse clickS?
    By droppeD:) in forum OSR Help
    Replies: 5
    Last Post: 12-18-2008, 10:01 PM
  2. Help With AUTO COLOR
    By NCDS in forum OSR Help
    Replies: 5
    Last Post: 10-08-2008, 07:11 PM
  3. is it possible to auto color....
    By yanix in forum OSR Help
    Replies: 2
    Last Post: 07-28-2007, 04:58 PM
  4. Auto Wall Color
    By Boreas in forum OSR Help
    Replies: 0
    Last Post: 01-12-2007, 04:26 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
  •