Results 1 to 11 of 11

Thread: problem occurring alot in scripts

  1. #1
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default problem occurring alot in scripts

    whenever i write a script, it seems like i get this error every time i put a then in it. in this script at the part if (findcolor(x,y,RockColor,cord,cord,cord,cord) then

    thats the part of the script i get the problem. at the part 'then'. it says
    Line 27: [Error] (27:1): Close round expected in script
    failed when compiling
    anybody know the problem? i'm just making a very basic power miner. heres the script if this helps.
    SCAR Code:
    {-------------------------------------------------------------------------\
    rock mower by JAD set line 17 drag crosshair to runescape window    |
    and click start. this version does not feature anti ban or anti randoms   |
    so i would suggest watching it while running. i'm making a dropping       |
    procedure soon. i am not responsible for any accounts being banned.       |
    --------------------------------------------------------------------------}

    program RockMower;
    const
    RockColor=4484246; //the color of rock you want script to mine
    var x,y:integer;
    procedure Signature;
    begin
    ClearDebug;
    writeln('              Rock Mower by:               ') wait(2000);
    writeln('    __________      /\         ______      ') wait(500) ;
    writeln('   |__________|    /  \       | ____ \     ') wait(500) ;
    writeln('       |  |       / /\ \      | |   \ \    ') wait(500) ;
    writeln('   ___ |  |      / /__\ \     | |    \ \   ') wait(500) ;
    writeln('   \  \|  |     / /____\ \    | |    / /   ') wait(500) ;
    writeln('    \     |    / /      \ \   | |___/ /    ') wait(500) ;
    writeln('     \____|   / /        \ \  |______/     ')           ;
    end;
    procedure MineRock;
    var x,y:integer;
    begin
    if (FindColor(x,y,RockColor,0,0,1279,799)
    then
    MoveMouseSmooth (x,y);
    wait(50+random (500));
    ClickMouse(x,y,true);
    end;
    begin
    Signature;
    MineRock;
    end.

    if anybody can help me out with this problem, i would be so so happy.
    thanks,
    ~JAD

    ps. you like my uber signature?

  2. #2
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Here is the finished product. Read what the notes in the script. And oh yea.... ummm I wouldnt use this unless you want to get banned. Get the newest SRL, and use SRL functions because there are so much more undetectable then the procedures your using here. For example:
    SCAR Code:
    MoveMouse(x, y);
    ClickMouse(x, y, true);
    Will get you BANNED!

    SCAR Code:
    {-------------------------------------------------------------------------\
    rock mower by JAD set line 17 drag crosshair to runescape window    |
    and click start. this version does not feature anti ban or anti randoms   |
    so i would suggest watching it while running. i'm making a dropping       |
    procedure soon. i am not responsible for any accounts being banned.       |
    --------------------------------------------------------------------------}

    program RockMower;

    const
     RockColor = 4484246; //the color of rock you want script to mine

    //var
    // x,y:integer;   //didnt need, already placed in procedure.

    procedure Signature;
    begin
      ClearDebug;
      writeln('              Rock Mower by:               ') wait(2000); //why wait?
      writeln('    __________      /\         ______      ') wait(500) ; //  |
      writeln('   |__________|    /  \       | ____ \     ') wait(500) ; //  |
      writeln('       |  |       / /\ \      | |   \ \    ') wait(500) ; //  |
      writeln('   ___ |  |      / /__\ \     | |    \ \   ') wait(500) ; //  |
      writeln('   \  \|  |     / /____\ \    | |    / /   ') wait(500) ; //  |
      writeln('    \     |    / /      \ \   | |___/ /    ') wait(500) ; //  |
      writeln('     \____|   / /        \ \  |______/     ')           ; //  V
    end;


    procedure MineRock;
    var
     x,y:integer;
    begin
      if (FindColor(x, y, RockColor, 0, 0, 1279, 799)) //needed another )
    // ' ) ' = close round
      then
      begin //need another begin if there is more then 1 procedure after a 'then'
        MoveMouseSmooth(x, y);
        wait(50 + random(500));
        ClickMouse(x, y, true);
      end; //another end for the begin....
    end;


    begin
      Signature;
      MineRock;
    end.

    EDIT: Just read the top of your script... SRL even has its own dropping procedures.

  3. #3
    Join Date
    Oct 2006
    Location
    Texas
    Posts
    1,450
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Well Junior, You beat me to it. I was trying to post but my comp was lagging super bad. Just to clearify on what Junior said " for every ")" you need a ")" at then end of that functio.

  4. #4
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks so much guys, i'm kind of a nooby scripter but now that should help me a lot because i was getting that error often. thanks again. and the reason i had the wait by my sig like that was because the name comes together more slowly and it looks more uber lol.
    and where do i read SRL functions/procedures?

  5. #5
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Get the SRL manual, you can download it at the same place you download SRL. You can search for different procedures and functions, its really helpfull.

  6. #6
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Junior View Post
    Get the SRL manual, you can download it at the same place you download SRL. You can search for different procedures and functions, its really helpfull.
    oh ok awsome thanks.

  7. #7
    Join Date
    Mar 2007
    Location
    In your computer
    Posts
    244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I made you a dropping procedure
    NOTE: Dont forget {.include SRL/SRL.scar} at the beggining or this wont work!
    ANOTHER NOTE: This will drop all of the items in the inventory, so i suggest you wear the pickaxe :P.


    Procedure Drop;
    begin
    DropAll;
    WriteLn('Dropped items succesfully');
    end;



    Scripts made by me.
    PieChoper.Version 0.1. 100%Done.
    PieBoner.Version 0.1. 100%Done.
    PieChestThiever.Version 0.1. 100%Done.
    PiePcAirRuneBuyer.Version 0.1. 100%Done.
    PieStringer.Version 0.1. 100%Done.
    PieShafter.Version 0.2. 100%Done.

    Currently working on.
    PieAirRuneBuyer.Version 0.2. 20%Done.//Stupid DTMs hold on, got a problem.
    PieBowFletcher.Version 0.1. 10%Done.//Just started.
    PieBsMaker.Version 0.1. 15%Done.//DTMs again...hold on, got a PROBLEM.


    PIE OWNZ ALL!!!-Even me .

  8. #8
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    JAd you need an extra parenthesi at the end
    Originally Posted by YoHoJo
    I like hentai.

  9. #9
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks guys! This was 5 months ago now.. And I even wrote a tutorial on fixing errors, and I know a little more about SRL/SCAR now lol

    Please don't grave dig like this... Check the date of the last post in all threads you post in.

  10. #10
    Join Date
    Oct 2006
    Posts
    1,071
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    hahahah you guys telling JAD what to do. Nice!

  11. #11
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hehe so it is lol, sry didnt read thred date, but it was close to the top wen i *grave dug it*
    Originally Posted by YoHoJo
    I like hentai.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. always getting this problem with all scripts
    By prayer328 in forum OSR Help
    Replies: 1
    Last Post: 02-25-2008, 11:05 PM
  2. having this problem on alot of scripts
    By pure-e in forum OSR Help
    Replies: 1
    Last Post: 01-28-2008, 09:56 PM
  3. found alot of leaked scripts
    By Seife in forum News and General
    Replies: 18
    Last Post: 04-28-2007, 02:25 AM

Posting Permissions

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