Results 1 to 4 of 4

Thread: -how do i make this loop-

  1. #1
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default -how do i make this loop-

    Code:
    program Autotwc; //by rjj95 aka thehatered
      Var
        X,Y: Integer;
      begin   //click tree icon
    wait(500);
        FindColorTolerance(X,Y,292097,516,0,760,170,3)
          wait(200);
          movemouse(x, y);
          wait(200);
            ClickMouse(x, y, Mouse_Left);
            wait(2000);
            //click tree
        FindColorTolerance(X,Y,2839929,7,46,490,305,15)
          wait(200);
          movemouse(x, y);
          wait(300);
            ClickMouse(x, y, Mouse_Left);
            wait(4500);
            //click tinderbox
        FindColorTolerance(X,Y,7039862,689,427,721,460,15)
          wait(200);
          movemouse(x, y);
          wait(300);
            ClickMouse(x, y, Mouse_Left);
            wait(100);
          //clicklogs
        FindColorTolerance(X,Y,2509932,552,205,732,463,10)
          wait(300);
          movemouse(x, y);
          wait(400);
            ClickMouse(x, y, Mouse_Left);
            wait(200);
            end.
    thanks in advanced!

  2. #2
    Join Date
    Jun 2008
    Location
    United States
    Posts
    818
    Mentioned
    60 Post(s)
    Quoted
    90 Post(s)

    Default

    The whole thing? Infinitely?:

    Simba Code:
    program Autotwc; //by rjj95 aka thehatered
    Var
      X,Y: Integer;

    procedure CutWood;
    begin
              //click tree icon

      Wait(500);

      FindColorTolerance(X, Y, 292097, 516, 0, 760, 170, 3);
      Wait(200);
      MoveMouse(x, y);
      Wait(200);
      ClickMouse(x, y, Mouse_Left);
      Wait(2000);

              //click tree

      FindColorTolerance(X, Y, 2839929, 7, 46, 490, 305, 15);
      Wait(200);
      MoveMouse(x, y);
      Wait(300);
      ClickMouse(x, y, Mouse_Left);
      Wait(4500);

              //click tinderbox

      FindColorTolerance(X, Y, 7039862, 689, 427, 721, 460, 15);
      Wait(200);
      MoveMouse(x, y);
      Wait(300);
      ClickMouse(x, y, Mouse_Left);
      Wait(100);


              //clicklogs

      FindColorTolerance(X, Y, 2509932, 552, 205, 732, 463, 10);
      Wait(300);
      MoveMouse(x, y);
      Wait(400);
      ClickMouse(x, y, Mouse_Left);
      Wait(200);
    end;

    begin

      repeat
        CutWood;
      until False;

    end.

    Fixed some standards.
    [10/14/13:19:03] <BenLand100> this is special relatively, just cleverly disguised with yachts

  3. #3
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    To extent euphemism:

    Simba Code:
    program Autotwc; //by rjj95 aka thehatered
    Var
      X,Y: Integer;

    procedure ClickTreeIcon;
    begin
              //click tree icon
      Wait(500);

      FindColorTolerance(X, Y, 292097, 516, 0, 760, 170, 3);
      Wait(200);
      MoveMouse(x, y);
      Wait(200);
      ClickMouse(x, y, Mouse_Left);
      Wait(2000);
    end;

    procedure ClickTree;
              //click tree

      if not(FindColorTolerance(X, Y, 2839929, 7, 46, 490, 305, 15)) then
        ClickTreeIcon;                     //I've added a failsafe
      Wait(200);
      MoveMouse(x, y);
      Wait(300);
      ClickMouse(x, y, Mouse_Left);
      Wait(4500);
    end;

    procedure ClickTinderBox;
    begin
              //click tinderbox

      FindColorTolerance(X, Y, 7039862, 689, 427, 721, 460, 15);
      Wait(200);
      MoveMouse(x, y);
      Wait(300);
      ClickMouse(x, y, Mouse_Left);
      Wait(100);
    end;

    procedure ClickLogs;
    begin
              //clicklogs

      FindColorTolerance(X, Y, 2509932, 552, 205, 732, 463, 10);
      Wait(300);
      MoveMouse(x, y);
      Wait(400);
      ClickMouse(x, y, Mouse_Left);
      Wait(200);
    end;

    begin
      ClickTreeIcon;  // I gues you only have to do this once?
      repeat
        ClickTree;
        ClickTinderBox;
        ClickLogs;
      until False;
    end.

    This is for an old version of runescape?
    Working on: Tithe Farmer

  4. #4
    Join Date
    Jun 2008
    Location
    United States
    Posts
    818
    Mentioned
    60 Post(s)
    Quoted
    90 Post(s)

    Default

    Quote Originally Posted by masterBB View Post
    To extent euphemism:

    -snip-

    This is for an old version of runescape?
    Careful, you may start writing the script for him. I think it is for a private server? So I am assuming it is more welcoming of botting.
    [10/14/13:19:03] <BenLand100> this is special relatively, just cleverly disguised with yachts

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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