Results 1 to 11 of 11

Thread: Script, whats wrong

  1. #1
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default Script, whats wrong

    SCAR Code:
    [B]program PropperChopper
    {.include SRL\SRL.scar}
    {.include SRL\SRL\skill\woodcutting.scar}
    {.include SRL\SRL\extended\xantiban.scar}

    const
    Tree = 4489398;//You can change it if you want to chop another tree.
    loads = 4;//i wouldnt advise going passed 12 but thats me....
    procedure start;
     begin
      MakeCompass('n');
      FindAxeHeadColor;
       end;


    procedure AntiBan;
     begin
      RotateEvery(1 + random(4));
      RandomChatEvery(2 + random(4));
      RandomRClickEvery(3 + random(4));
      LeaveScreenEvery(1 + random(4));
      AntiBan;
      AlmostLogout;
       end;

    procedure TheMain;
     begin
      if FindColorSpiral(x, y, Tree, 0, 0, 517, 339) then
      MMouse(x, y, 1, 1);
      Mouse(x, y, 1, 1, true);
      wait(3000);
      FindHead;
      AttachHead;
       end;

    procedure Dropping;
     begin
      wait(500);
      DropAllLogs;
       end;


    begin
    SetupSRL;
    activateclient;
    setup;
          repeat
          antiban;
          repeat
          TheMain;
          until(InventoryFull)
          drop;
    until(loads=4)
    end.[/B]

    then i compile it and it says
    Error: Semi colon expected in script scar, srl, srl, core? , global. i didnt even include core / global, whats up with this? and ive tryed to add it and it didnt work either. What should i do?

  2. #2
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    1)use scar tags
    2)use stancdards
    3)add tolerance(FindColorTolerance...instead of FindColorSpiral)
    4)MMouse and Mouse arent used together
    5)ummm...only being able to do 12 loads is not very good
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  3. #3
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by dan cardin View Post
    1)use scar tags
    2)use stancdards
    3)add tolerance(FindColorTolerance...instead of FindColorSpiral)
    4)MMouse and Mouse arent used together
    5)ummm...only being able to do 12 loads is not very good
    1. Whats that
    2. whats that
    3.ok
    4. ok
    5.do what ever u want, u can do 200 if u want....
    6. (its my second script)

  4. #4
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by cnr sport View Post
    1. Whats that
    2. whats that
    3.ok
    4. ok
    5.do what ever u want, u can do 200 if u want....
    6. (its my second script)
    1) enclose your code between [scar] and [/scar ]
    2) Indenting in the right areas so it is easier to read. You can read one of the tuts in tut island about standards.

  5. #5
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by omgh4x0rz View Post
    1) enclose your code between [scar] and [/scar ]
    2) Indenting in the right areas so it is easier to read. You can read one of the tuts in tut island about standards.
    kk can u anwser my posted question?

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

    Default

    try a different version of srl, core files are automaticaly included(it's part of srl)
    try first replacing srl with a different version.

  7. #7
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I fixed the standards

    SCAR Code:
    program PropperChopper
    {.include SRL\SRL.scar}
    {.include SRL\SRL\skill\woodcutting.scar}
    {.include SRL\SRL\extended\xantiban.scar}

    const
    Tree = 4489398;//You can change it if you want to chop another tree.
    loads = 4;//i wouldnt advise going passed 12 but thats me....

    procedure start;
    begin
      MakeCompass('n');
      FindAxeHeadColor;
    end;


    procedure AntiBan;
    begin
      RotateEvery(1 + random(4));
      RandomChatEvery(2 + random(4));
      RandomRClickEvery(3 + random(4));
      LeaveScreenEvery(1 + random(4));
      AntiBan;
      AlmostLogout;
    end;

    procedure TheMain;
    begin
      if FindColorSpiral(x, y, Tree, 0, 0, 517, 339) then
      begin                 //You need to put begin and end; if you want
        MMouse(x, y, 1, 1); // it to do more than 1 thing after an if..then
        Mouse(x, y, 1, 1, true);
        Wait(3000);
        FindHead;
        AttachHead;
      end;
    end;

    procedure Dropping;
    begin
      Wait(500);
      DropAllLogs;
    end;


    begin
      SetupSRL;
      activateclient;
      setup; //This doesn't seem to be in your script..?
      repeat
        antiban;
        repeat
          TheMain;
        until(InventoryFull)
        drop;
      until(loads=4)
    end.

    As for the global part, when you include
    SCAR Code:
    {.include SRL\SRL.scar}
    it includes all of the SRL core files. My guess is it has something to do with your SRL version. What version are you using?

  8. #8
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by NewToAutoing View Post
    I fixed the standards

    SCAR Code:
    program PropperChopper
    {.include SRL\SRL.scar}
    {.include SRL\SRL\skill\woodcutting.scar}
    {.include SRL\SRL\extended\xantiban.scar}

    const
    Tree = 4489398;//You can change it if you want to chop another tree.
    loads = 4;//i wouldnt advise going passed 12 but thats me....

    procedure start;
    begin
      MakeCompass('n');
      FindAxeHeadColor;
    end;


    procedure AntiBan;
    begin
      RotateEvery(1 + random(4));
      RandomChatEvery(2 + random(4));
      RandomRClickEvery(3 + random(4));
      LeaveScreenEvery(1 + random(4));
      AntiBan;
      AlmostLogout;
    end;

    procedure TheMain;
    begin
      if FindColorSpiral(x, y, Tree, 0, 0, 517, 339) then
      begin                 //You need to put begin and end; if you want
        MMouse(x, y, 1, 1); // it to do more than 1 thing after an if..then
        Mouse(x, y, 1, 1, true);
        Wait(3000);
        FindHead;
        AttachHead;
      end;
    end;

    procedure Dropping;
    begin
      Wait(500);
      DropAllLogs;
    end;


    begin
      SetupSRL;
      activateclient;
      setup; //This doesn't seem to be in your script..?
      repeat
        antiban;
        repeat
          TheMain;
        until(InventoryFull)
        drop;
      until(loads=4)
    end.

    As for the global part, when you include
    SCAR Code:
    {.include SRL\SRL.scar}
    it includes all of the SRL core files. My guess is it has something to do with your SRL version. What version are you using?
    2.03, should i take away include srl / srl

  9. #9
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Oh and, I have no idea where to put the semi colon, it says where the const is and i ive tryed putting one there and it gave me the same error ? can anyone help?

  10. #10
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    It looks like you have error in the Globals.scar file. Maybe reinstall SRL?
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  11. #11
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by cnr sport View Post
    Oh and, I have no idea where to put the semi colon, it says where the const is and i ive tryed putting one there and it gave me the same error ? can anyone help?
    I just noticed it. It's right here.
    SCAR Code:
    program PropperChopper

    Should be
    SCAR Code:
    program PropperChopper; //That's where it goes

    And 2.03 is your SCAR version. What version of SRL do you have? I suggest reinstalling the newest version. If you're using Scar Divi you can just click File > Download SRL and it'll do it for you.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. whats wrong with my script !?!?!?!!?
    By stampede10343 in forum OSR Help
    Replies: 7
    Last Post: 02-25-2008, 02:37 AM
  2. whats wrong with this script
    By psychojamesd in forum OSR Help
    Replies: 3
    Last Post: 08-02-2007, 01:59 AM
  3. Whats wrong in my script?
    By Intef i i i in forum OSR Help
    Replies: 2
    Last Post: 04-10-2007, 03:29 PM
  4. whats wrong with this script?
    By fugate in forum OSR Help
    Replies: 14
    Last Post: 01-16-2007, 04:44 AM
  5. Replies: 7
    Last Post: 11-26-2006, 03:39 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
  •