Results 1 to 3 of 3

Thread: My script

  1. #1
    Join Date
    Dec 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default My script

    Alright, well I'm using Daedar's Tut back to preschool.

    this is the script

    SCAR Code:
    program Autominer;
    {.include SRL/SRL.scar}

    Const
    axeequiped = false;
    orecolor = 2898528;

    Procedure findandmine;
    Begin
     Repeat
     If (FindColorSpiralTolerance(x, y, orecolor, 215, 15, 334, 151, 40) then
      Begin
       Mmouse(x,y,1,1)
       If Isuptext('ine');
       end;
     Until(invfull)
    End;

    Procedure dropore;
    Begin
     If (invfull = true) then
    Begin
     If (axeequiped = true) then
      Dropto(1,28)
     If (axeequiped = false) then
      Dropto(2,28)
    end;
    end;

    Begin
    setupsrl;
     Repeat
     findandmine;
     dropore;
     until(false)

    end.

    Begin
    setupsrl;
     repeat
     findandmine;
     until(false)
    end.

    then My error is this
    Code:
    Line 11: [Error] (15509:69): Close round expected in script C:\Program Files\SCAR 2.03\Scripts\Autominer 1.1.scar

  2. #2
    Join Date
    Nov 2006
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    If (FindColorSpiralTolerance(x, y, orecolor, 215, 15, 334, 151, 40) then

    Should be:

    SCAR Code:
    If(FindColorSpiralTolerance(x, y, orecolor, 215, 15, 334, 151, 40))then

    Notice the extra close parenthesis at the end (after the number 40). The thing to remember here is - As many open parenthesis that you have, you have to have the same amount of closed parenthesis.

    Also, I wouldn't recommend FindColorSpiralTolerance, I would recommend FindMSColorTol. Maybe you should look into it.


    Hope I helped!

    - Da Der Der
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig

  3. #3
    Join Date
    Jun 2006
    Location
    Tennessee, USA
    Posts
    2,603
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    yep you pretty much nailed it da der der. just remember wcer auto that anytime you get a close round error it means that you missed a parenthesis.

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
  •