Page 2 of 3 FirstFirst 123 LastLast
Results 26 to 50 of 55

Thread: Making a Woodcutter!

  1. #26
    Join Date
    Jul 2007
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    omg wow this helped alot i finshed my script i owe u so much this is such the best now and i get how to script much better now good work keep it up!!!!

  2. #27
    Join Date
    Apr 2008
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you for including so much detailed information about the function of every thing

  3. #28
    Join Date
    Sep 2007
    Location
    Sweden
    Posts
    765
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    hmm, great tut. i got a problem tho, i get this error: Line 15: [Error] (12847:71): 'THEN' expected in script . that line looks like this: if FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7)) then

    help? :P


    ^LOL^

  4. #29
    Join Date
    Apr 2007
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nice tut learned few things from it that i didnt know

  5. #30
    Join Date
    Apr 2008
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    read it and it looks great gona try make it later, nice amount of detail gj

  6. #31
    Join Date
    May 2008
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nice tutorial, should get me started learning scripting, thanks alot!

  7. #32
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    lol thanks even i learned something:

    loads for each player (i use to do it wrong lol).

    Rep+

  8. #33
    Join Date
    Mar 2007
    Location
    Alberta, Canada
    Posts
    1,780
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Great tut, man! I just have 1 question.
    In the Choptree procedure, there is this line here:
    if FindObjCustom(x, y, ['Yew'], [2060900, 1793357, 3305062], 7) then
    I understand everything except for the tolerence.(the 7) Could anyone explain that?
    (I swiched around the wil,low and the colours, but that shouldnt change my question)

  9. #34
    Join Date
    Sep 2007
    Location
    Sweden
    Posts
    765
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    i get THEN expected if i use if FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7)) then. maybe i have the wrong srl rev?


    ^LOL^

  10. #35
    Join Date
    Mar 2007
    Location
    Alberta, Canada
    Posts
    1,780
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    I have one more question. Does the line until(InvFull) still work? Whenever I try it to work with one of my scripts, I get the error identifier expected in script. (I have my repeat and everything)

  11. #36
    Join Date
    Feb 2008
    Location
    Australia
    Posts
    253
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    asdasd
    Last edited by shrubie1; 10-20-2010 at 05:33 AM.
    W00T Timer is awesome!!! He's teaching me to script!
    http://www.stats.srl-forums.com/sigs/4572.png

  12. #37
    Join Date
    May 2008
    Location
    ;)
    Posts
    576
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    when i try to run it, it says this:



    if FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763],7))then



    Line 72: [Error] (12904:70): 'THEN' expected in script

    help???

  13. #38
    Join Date
    Oct 2007
    Location
    Michigan
    Posts
    557
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey thank you for the help! This tut explains a great deal and best yet, I love how it points me to locations to that will go more in depth on topics and lines used in this script.

    Thanks for taking time to write this up for us beginners!

  14. #39
    Join Date
    May 2008
    Posts
    64
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Very clean tutorial. I made one for me I seem to be catching up to this very fast.

  15. #40
    Join Date
    Aug 2007
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    YES!
    a good tutorial on how to script better... it also seems really in depth so that will also help me

  16. #41
    Join Date
    Jun 2008
    Posts
    0
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nice

  17. #42
    Join Date
    May 2007
    Posts
    177
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Line 58: [Error] (12837:71): 'THEN' expected in script C:\Program Files\SCAR 3.15 2\Scripts\Runescape\Woodcutter.scar

    Any reason why?

    Line 58 =

    if FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7))then

    Fixed remove 1 ")" at the end, But now i have more errors, I forgot a semicolon and it doesn't say which line

    EDIT :

    Script works fine except for the fact it won't do anything, no mouse movements

    SCAR Code:
    program Woodcutter;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/WoodCutting.scar}

    const

    Loads = 10;

    YourSRLId = '';
    YourSRLPassword ='';
    YourPin = '';

    {-------------------------------------------------------
                           Player Setup
    --------------------------------------------------------}


    procedure DeclarePlayers;
    begin

    HowManyPlayers := 1;
    NumberOfPlayers(HowManyPlayers);
    CurrentPlayer:= 0

    Players[0].Name   := '';
    Players[0].Pass   := '';
    Players[0].Nick   := '';
    Players[0].Active := True;

    end;


    var x, y, LoadsNum, LoadsNum2: integer;


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

    procedure AntiBan;
    begin
    if not LoggedIn then Exit;
    case Random(30) of
    1: RandomRClick;
    2: HoverSkill('Woodcutting', False);
    3: RandomMovement;
    4: BoredHuman;
    5: AlmostLogout;
    6: DoEmote(400 +Random(90));
    end;
    end;


    procedure ChopTree;
    var CuttingTime: integer;
    Tries: integer;
    begin
    MarkTime(CuttingTime);
    MakeCompass('S');
    repeat
    if FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7) then
    begin
    Mouse(x,y,0,0,false);
    if(IsUpText('Chop'))then
    Wait(5000 + (random(150)));
    ChooseOption('hop')
    AntiBan;
    if (not (FindObjCustom(x, y, ['Wil', 'low'], [1989969, 3760987, 2844763], 7))) then
    Wait(100+random(100));
    Tries := Tries + 1;
    if(Tries = 50)then
    begin
    Writeln ('Willow Logs not found. Switching Players..');
    Logout;
    NextPlayer(False);
    Exit;
    end;
    end;
    until(InvFull) or (TimeFromMark(CuttingTime) > 800000+random(60000));
    end;


    procedure WalkToBank;
    begin
    if (not(LoggedIn)) then
    Exit;
    SymbolAccuracy:= 0.2;
    MakeCompass('N');
    if (FindSymbol(x, y, 'bank')) then
    begin
    Mouse(x, y, 2, 2, true);
    FFlag(0);
    Writeln('Got to bank');
    end;
    end;


    procedure Banking;
    begin
    if (InvFull) then
    begin
    MakeCompass('W')
    Wait (300 + random(160));
    OpenBankQuiet('db');
    if (PinScreen) then
    InPin(YourPin);
    if(FindColorSpiral(x, y, 4155248, 547, 206, 734, 464))then
    begin
    Mouse(x, y, 4, 3, false);
    ChooseOption('All');
    begin
    LoadsNum := LoadsNum + 1;
    LoadsNum2 := LoadsNum2 + 1;
    ReportVars[1] := ReportVars[1] + 1;
    SendSRLReport;
    end;
    end;
    CloseBank;
    Wait(150 + random (278));
    MakeCompass('S');
    end;
    end;


    procedure WalkToWillow;
    begin
    if (FindSymbol(x, y, 'fish')) then
    begin
    Mouse(x, y, 2, 2, true);
    FFlag(0);
    Writeln('Got to Willows');
    end;
    end;


    procedure SetupScript;
    begin
    SRLId := YourSRLId;
    SRLPassword:= YourSRLPassword;
    SetupSRL;
    ScriptID:= '687';
    DeclarePlayers;
    end;


    begin
    SetupScript;
    repeat
    WalkToWillow;
    ChopTree;
    AntiBan;
    WalkToBank;
    Banking;
    if (LoadsNum2=Loads) then
    begin
    NextPlayer(True);
    LoadsNum2 := 0;
    MakeCompass('S')
    Writeln('Players Switched successfully')
    end;
    until (false)
    end.
    http://www.fenjer.com/adnan/SRLStats/1035.png
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly!

  18. #43
    Join Date
    Dec 2007
    Posts
    108
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nicely done thanks helped alot

  19. #44
    Join Date
    Jun 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    how do I view intermediate tutorials????

  20. #45
    Join Date
    Sep 2007
    Location
    Sweden
    Posts
    765
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Suhaib42 View Post
    how do I view intermediate tutorials????
    I believe iits as simple as left clicking on the link with your mouse. Or Just make and co ordinate auto xD
    Mouse(x, y, 0, 0, True); Replace the x and y with your co ordinates. LOL.
    I dont know, but you might have to be a Srl Junior member? :S That would be weird though.


    ^LOL^

  21. #46
    Join Date
    Sep 2008
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default help :(

    hmm well i get this message--Line 64: [Error] (16262:4): Unknown identifier 'AlmostLogout' in script

    for this line--
    procedure AntiBan;
    begin
    if not LoggedIn then Exit;
    case Random(30) of
    1: RandomRClick;
    2: HoverSkill('Woodcutting', False);
    3: RandomMovement;
    4: BoredHuman;
    5: AlmostLogout;
    6: DoEmote(400 +Random(90));
    end;
    end;

  22. #47
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    Tut is outdated, sorry.

    I dont script amymore, so my tutorial is not up to date.
    Jus' Lurkin'

  23. #48
    Join Date
    Sep 2008
    Location
    Nova Scotia, Canada
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Ah

    Quote Originally Posted by Torrent of Flame View Post
    I dont script amymore, so my tutorial is not up to date.
    That explains a LOT! The script goes haywire when it comes time to bank. I'd fix it myself but I'll be buggered if I can figure out how to fix it. I was hoping to learn from this.

    Excellent tut regardless. I actually understood most of it. Would love to see an updated version of this. nudge nudge wink wink

    This is a long slow process getting up to speed on scripting lol.

  24. #49
    Join Date
    Sep 2008
    Location
    Nova Scotia, Canada
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Oak tree color?

    I'm gonna start from scratch based on this tut and see if I can come up with a simple script that will cut the oak next to draynor and bank it. (That should a riot)

    Now if I could just figure out what colors I'm supposed to use...

  25. #50
    Join Date
    Jul 2008
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Can someone point me a tut that actually works, because I'm just starting and I need a script as my base but I want to make it.

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Woodcutter
    By guinner in forum OSR Help
    Replies: 6
    Last Post: 11-28-2008, 01:30 AM
  2. Need lvl 75 woodcutter.
    By skilld u in forum News and General
    Replies: 14
    Last Post: 02-29-2008, 02:50 AM
  3. Woodcutter
    By TViYH in forum RS3 Outdated / Broken Scripts
    Replies: 6
    Last Post: 10-31-2007, 06:11 AM
  4. Best woodcutter ever!
    By mstandlee in forum RS3 Outdated / Broken Scripts
    Replies: 7
    Last Post: 10-27-2007, 04:40 AM
  5. woodcutter help
    By psychojamesd in forum RS3 Outdated / Broken Scripts
    Replies: 2
    Last Post: 07-27-2007, 02:57 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
  •