Results 1 to 3 of 3

Thread: Yew Chopper

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

    Default Yew Chopper

    This is a basic program. If anyone can include a reapeat/loop at the end, could they please post one. All feedback is good. Thanks


    const
    Yew=4091268;

    var;
    x,y: Integer;

    procedure FindTree;
    if(FindColour(x,y,Yew,0,0,500,500)) then
    begin
    MoveMouseSmoothEx(x,y +random(100),20,40,45,25,20);
    Wait(200+random(200));
    ClickMouse(x,y,true);
    end;

    procedure AntiRandoms;
    begin
    If(FindFight) then
    RunAway('N',True,1,15000);
    FindNormalRandoms;
    FindLamp('Woodcutting');
    end;

    end.

  2. #2
    Join Date
    Jun 2008
    Location
    Somewhere
    Posts
    117
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    what does it do after it chops the yew?

    and i think it would be like this

    SCAR Code:
    begin
      SetupSRL;
      repeat
      FindTree;
      AntiRandoms;
    end.

  3. #3
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It's a good start to the script, here is what your looking for i think:

    Code:
    program YewChopper;
    {.include srl/srl.scar}
    
    const
    Yew=4091268;
    
    var
       x,y: Integer;
    
    procedure FindTree;
    begin
      if(FindColor(x,y,Yew,0,0,500,500)) then
      begin
        MoveMouseSmoothEx(x,y +random(100),20,40,45,25,20);
        Wait(200+random(200));
        ClickMouse(x,y,true);
      end;
    end;
    
    procedure AntiRandoms;
    begin
      If(FindFight) then
      begin
        RunAway('N',True,1,15000);
        FindNormalRandoms;
        FindLamp('Woodcutting');
      end;
    end;
    
    
    begin
      SetupSRL;
      FindTree;
      AntiRandoms;
    end.

    A couple of extra things: Don't use MoveMouseSmooth or ClickMouse; Use MMouse and Mouse; Always include srl like i did at the top under the program name. also, if you noticed, i fixed your standards and you can learn them here Scar Script Official Standards.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Pro Chopper
    By Cazax in forum RS3 Outdated / Broken Scripts
    Replies: 28
    Last Post: 01-26-2009, 09:36 PM
  2. Yew Chopper
    By shaman in forum First Scripts
    Replies: 17
    Last Post: 10-13-2008, 07:26 AM
  3. Chopper help
    By ZaSz in forum OSR Help
    Replies: 1
    Last Post: 12-24-2007, 08:04 PM
  4. My First Power Chopper
    By destroyface in forum First Scripts
    Replies: 4
    Last Post: 09-12-2007, 11:35 AM
  5. Yew chopper
    By JuKKa in forum OSR Help
    Replies: 2
    Last Post: 11-13-2006, 12:36 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
  •