Results 1 to 9 of 9

Thread: Script Fixing Help? Fix my Auto Miner?

  1. #1
    Join Date
    May 2007
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Script Fixing Help? Fix my Auto Miner?

    I have made my first script called "MacoHawk's Iron Skills". It is not complete yet, I still need to put in a auto dropper. But when I when to test it I got this error:
    Line 11: [Error] (14357:1): Semicolon (';') expected in script
    Here is my script so far:
    Code:
    program New;
    {.include SRL/SRL.Scar}
    
    var
      ore:integer;
    
    const
      Iron = 2503764
    
    procedure IronSkills;
    begin
      if FindColor(x,y,Iron,4,4,515,337) then
      MMouse(x,y,1,1)
      If Option2('Mine') then
      Mouse(x,y,1,1,true)
      ore := ore + 1;
      Wait(2000+random(800))
    end;
    
    procedure AntiRandoms;
    begin
     FindNormalRandoms;
    end;
    
    procedure ProgressReport;
    begin
      ClearDebug;
      Writeln('[X]-------------------------------------------[X]');//Do any style you want
      Writeln('Worked For : ' + ScriptTime2(2))//Displays how long it worked for
      Writeln('Mined '+ IntToStr(ore) + ' ore');
      Writeln('[X]--------------------------------------------[X]');
    end;
    
    begin
      SetUpSRL;
      cleardebug;
      activateclient;
      repeat
      IronSkills;
      ProgressReport;
      until(false)
    end.
    Can some one tell me what I did wrong?

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

    Default

    Quote Originally Posted by MacroHawk View Post
    I have made my first script called "MacoHawk's Iron Skills". It is not complete yet, I still need to put in a auto dropper. But when I when to test it I got this error:
    Line 11: [Error] (14357:1): Semicolon (';') expected in script
    Here is my script so far:
    SCAR Code:
    program New;
    {.include SRL/SRL.Scar}

    var
      ore:integer;

    const
      Iron = 2503764;//<<<< u need to put the semi colon after this one here

    procedure IronSkills;
    begin
      if FindColor(x,y,Iron,4,4,515,337) then
      MMouse(x,y,1,1)//put semi colon here too.
      If Option2('Mine') then
      Mouse(x,y,1,1,true)
      ore := ore + 1;
      Wait(2000+random(800))
    end;

    procedure AntiRandoms;
    begin
     FindNormalRandoms;
    end;

    procedure ProgressReport;
    begin
      ClearDebug;
      Writeln('[X]-------------------------------------------[X]');//Do any style you want
      Writeln('Worked For : ' + ScriptTime2(2))//Displays how long it worked for
      Writeln('Mined '+ IntToStr(ore) + ' ore');
      Writeln('[X]--------------------------------------------[X]');
    end;

    begin
      SetUpSRL;
      cleardebug;
      activateclient;
      repeat
      IronSkills;
      ProgressReport;
      until(false)
    end.
    Can some one tell me what I did wrong?
    Always try to put semi colons after things like that.

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

    Default

    put 1 after mouse..on the line b4
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  4. #4
    Join Date
    May 2007
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I tried it but it still gives me the same error?

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

    Default

    Did you put it after the const like I said?

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

    Default

    Quote Originally Posted by Buckleyindahouse View Post
    Did you put it after the const like I said?
    Edit* I fixed for you. Look at the little side marks i made so you can learn.

    SCAR Code:
    program New;
    {.include SRL/SRL.Scar}

    var
      ore:integer;

    const
      Iron = 2503764;

    procedure IronSkills;
    begin
      if FindColor(x,y,Iron,4,4,515,337) then
      MMouse(x,y,1,1);//Add them after these
      If Option2('Mine') then
      Mouse(x,y,1,1,true);//Here too
      ore := ore + 1;
      Wait(2000+random(800));//Here too
    end;

    procedure AntiRandoms;
    begin
     FindNormalRandoms;
    end;

    procedure ProgressReport;
    begin
      ClearDebug;
      Writeln('[X]-------------------------------------------[X]');//Do any style you want
      Writeln('Worked For : ' + ScriptTime2(2))//Displays how long it worked for
      Writeln('Mined '+ IntToStr(ore) + ' ore');
      Writeln('[X]--------------------------------------------[X]');
    end;

    begin
      SetUpSRL;
      cleardebug;
      activateclient;
      repeat
      IronSkills;
      ProgressReport;
      until(false)
    end.

    Sorry for the double post, I accidently clicked quote instead of edit. My Bad.

  7. #7
    Join Date
    May 2007
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh yea! That works thanx!

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

    Default

    it doesn't work for me...it just says that its mining ores but its not? what to do?

  9. #9
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol wtf? He needs help on fixing it, not releasing it

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. My First Script (Auto Miner and Dropper)
    By Q Surfer in forum First Scripts
    Replies: 12
    Last Post: 02-03-2009, 08:35 PM
  2. need help fixing this script
    By wtfwtfwtf in forum OSR Help
    Replies: 11
    Last Post: 10-21-2008, 03:52 PM
  3. help fixing a script
    By Raskolnikov in forum OSR Help
    Replies: 1
    Last Post: 01-15-2008, 12:16 AM
  4. need a good script , auto miner auto banker plz!!
    By samuel in forum RS3 Outdated / Broken Scripts
    Replies: 27
    Last Post: 11-19-2007, 08:46 AM
  5. Need help fixing auto alcher
    By 420 4me in forum OSR Help
    Replies: 6
    Last Post: 09-22-2007, 09:13 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
  •