Results 1 to 23 of 23

Thread: SimpleChopper

  1. #1
    Join Date
    Feb 2006
    Location
    New Zealand
    Posts
    485
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default SimpleChopper

    SimpleChopper
    Normal Tree powerchopper

    Code:
    program WoodCutter;
    {.include srl/srl.scar}
    {.include srl/srl/skill/woodcutting.scar}
    
    Procedure DeclarePlayers;
    begin
         HowManyPlayers  :=2;
         NumberOfPlayers(HowManyPlayers);
         CurrentPlayer:=0;
    
         Players[0].Name :='' 
         Players[0].Pass :='';
         Players[0].Nick :='';
         Players[0].Active:=True;
    
         Players[1].Name :='';
         Players[1].Pass :='';
         Players[1].Nick :='';
         Players[1].Active:=True;
    end;
    
    procedure FindWcRandoms;
    begin
      FindNormalRandoms;
      FindHead;
      FindEnt(4156042);
      if not loggedin then RandomNextPlayer(False);
    
    end;
    
    procedure FindTree;
    var x,y,prevcount,a:integer;
    begin
      prevcount:=invcount;
      if FindObj(X,y,'hop',3760254,10) then
      Mouse(x,y,10,5,true);
      a:=0;
      repeat
      wait(2000);
      a:=a+1;
      if a=3 then break;
      until(invcount>prevcount)
    end;
    
    
    begin
    Setupsrl;
    declareplayers;
    FindAxeHeadColor;
    repeat
      FindTree;
      FindWcRandoms;
      if InvFull then DropAllLogs;
    until(getskilllevel('woodcutting')=99);
    end.

  2. #2
    Join Date
    Jun 2006
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Awsome, been looking for one, thanks. Future plans include a banker? I need one for fletching arrows :P With your permission could I try to add my own banker to this?

  3. #3
    Join Date
    Feb 2006
    Location
    New Zealand
    Posts
    485
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I could make on in 5 minutes, (thats twice the time it took to make this) but i cant right now, go ahead. but dont post it.

  4. #4
    Join Date
    Jun 2006
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok thanks :P Good practice.

  5. #5
    Join Date
    Jun 2006
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Good script. Nice and simple, but effective.

  6. #6
    Join Date
    Jun 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    When you can make, please add the banker thanks.

  7. #7
    Join Date
    Feb 2006
    Location
    New Zealand
    Posts
    485
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Works fine does it?
    Any ideas where to add the banker?

  8. #8
    Join Date
    Jun 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Im not fussed where howveer close would be good

  9. #9
    Join Date
    Jun 2006
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Varrock West works well. Drynor is the best, except guards kill newbs.

  10. #10
    Join Date
    Feb 2006
    Location
    New Zealand
    Posts
    485
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Im going to do Varrock Central, you know west of the dummy area above the water source fountain there are three trees? from there into east bank.

  11. #11
    Join Date
    Jun 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thats great

  12. #12
    Join Date
    Oct 2006
    Posts
    90
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    BEST POWER SCRIPT EVER...cos it owns..it lags a bit like freezes when cuttin like 5th tree tehn resets and lags but unlike other script doesnt lag majorly..i'v never found a good script like this since im a newb at scripting lol but verry nice!hope you make a another type of cutter soon

  13. #13
    Join Date
    Oct 2006
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Line 170: [Hint] (178:43): Variable 'NEWLINE' never used in script C:\Program Files\SCAR 2.03\includes\srl\srl\core\Globals.scar
    SRL Compiled in 310msec.
    [Runtime Error] : Out Of Range in line 16 in script

  14. #14
    Join Date
    Nov 2006
    Location
    Belgium
    Posts
    110
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Where do i need to start? at bank or?

  15. #15
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    2,254
    Mentioned
    21 Post(s)
    Quoted
    238 Post(s)

    Default

    I noticed in"FindObj(X,y,'hop',3760254,10)" what is "hop"? i also noticed no colours, and thats your only find tree, does SRL do all the colours and junk?

  16. #16
    Join Date
    Nov 2006
    Location
    Belgium
    Posts
    110
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It doesn't seems to work for me .. everytime it has checked my axe, it set my mouse t my character, but nothing happens ...

  17. #17
    Join Date
    Nov 2006
    Location
    Belgium
    Posts
    110
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it does everything, except cutting a tree ... -_-

  18. #18
    Join Date
    Nov 2006
    Location
    Belgium
    Posts
    110
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Finaly got it working .. Now is it just me or is it sooo slow?

  19. #19
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    2,254
    Mentioned
    21 Post(s)
    Quoted
    238 Post(s)

    Default

    quit triple posting and look at teh dang code!! fix it if u want!!

  20. #20
    Join Date
    Oct 2006
    Posts
    33
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nice script!
    Very good, never knew that scripts could be this easy.
    I will tell you if I tested this expensive.

    Ok, I've tested it, and it lags a little bit.
    Is it ok if I edit the script and add a firemaking procedure?

  21. #21
    Join Date
    Nov 2006
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it did work for me but now it hines about something colorcircleD line 802

  22. #22
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default

    script looks clean and tidy.. also works fairly well... i cant give you a report because i havnt tried it for long enough :P

    also cause asked what hop is!! well the script looks at the top left part of the screen to see the words 'Chop' make sure that a tree is actually a tree... but in the script you cant put Chop in the script because there C is a cap and it could become unreliable or somthing so you put 'hop'

    ok? :P

  23. #23
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    2,254
    Mentioned
    21 Post(s)
    Quoted
    238 Post(s)

    Default

    lol, figured it would be that easy:P

Thread Information

Users Browsing this Thread

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

Posting Permissions

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