Results 1 to 6 of 6

Thread: My bank script

  1. #1
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    176
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default My bank script

    Hey peoples.....Can someone fix this script and tell me wat i did wrong. It runs only the first step how do i correctly make it to run all the steps ? begin ends?

    Made a auto logging script no problem easy but having trouble here, please help

    Thanks Marzy




    SCAR Code:
    Line 12: [Error] (12:4): Semicolon (';') expected in script
    Failed when compiling
    Line 13: [Error] (13:1): 'BEGIN' expected in script
    Failed when compiling
    Line 15: [Error] (15:1): Identifier expected in script
    Failed when compiling
    Line 15: [Error] (15:1): Identifier expected in script
    Failed when compiling
    Line 18: [Error] (18:23): comma (',') expected in script
    Failed when compiling
    Line 18: [Error] (18:22): comma (',') expected in script
    Failed when compiling
    Line 18: [Error] (18:24): Type mismatch in script
    Failed when compiling
    Line 18: [Error] (18:24): Type mismatch in script
    Failed when compiling
    Line 20: [Error] (20:4): Identifier expected in script
    Failed when compiling
    Line 24: [Error] (24:4): period ('.') expected in script
    Failed when compiling
    Line 28: [Error] (28:4): Identifier expected in script
    Failed when compiling
    [Error] (30:1): Unexpected end of file
    Failed when compiling
    [Error] (25:1): Unexpected end of file
    Failed when compiling
    [Error] (25:1): Unexpected end of file
    Failed when compiling
    [Error] (25:1): Unexpected end of file
    Failed when compiling
    [Error] (25:1): Unexpected end of file
    Failed when compiling
    [Error] (23:1): Unexpected end of file
    Failed when compiling
    [Error] (23:1): Unexpected end of file
    Failed when compiling
    [Error] (30:1): Unexpected end of file
    Failed when compiling
    [Error] (31:1): Unexpected end of file
    Failed when compiling
    [Error] (31:1): Unexpected end of file
    Failed when compiling
    [Error] (31:1): Unexpected end of file
    Failed when compiling
    [Error] (31:1): Unexpected end of file
    Failed when compiling
    Line 12: [Error] (12:4): period ('.') expected in script
    Failed when compiling
    Line 12: [Error] (12:4): period ('.') expected in script
    Failed when compiling
    Line 12: [Error] (12:4): period ('.') expected in script
    Failed when compiling
    Line 12: [Error] (12:4): period ('.') expected in script
    Failed when compiling
    Line 12: [Error] (12:4): period ('.') expected in script
    Failed when compiling
    Line 12: [Error] (12:5): period ('.') expected in script
    Failed when compiling
    Line 12: [Error] (12:5): period ('.') expected in script
    Failed when compiling
    Line 12: [Error] (12:4): period ('.') expected in script
    Failed when compiling
    Line 12: [Error] (12:4): period ('.') expected in script
    Failed when compiling
    Line 12: [Error] (12:4): period ('.') expected in script
    Failed when compiling
    Line 12: [Error] (12:4): period ('.') expected in script
    Failed when compiling
    Line 12: [Error] (12:1): Identifier expected in script
    Failed when compiling
    Line 12: [Error] (12:1): Identifier expected in script
    Failed when compiling
    Line 12: [Error] (12:1): Identifier expected in script
    Failed when compiling
    Line 12: [Error] (12:1): Identifier expected in script
    Failed when compiling
    Line 12: [Error] (12:4): period ('.') expected in script
    Failed when compiling
    Line 8: [Error] (8:44): 'THEN' expected in script
    Failed when compiling
    Line 12: [Error] (12:4): period ('.') expected in script
    Failed when compiling
    Line 12: [Error] (12:1): Unknown identifier 'period' in script
    Failed when compiling
    Line 12: [Error] (12:4): period ('.') expected in script
    Failed when compiling
    Line 12: [Error] (12:4): period ('.') expected in script
    Failed when compiling
    Line 12: [Error] (12:4): period ('.') expected in script


    SCAR Code:
    program Testingbankfinder;
    var
    x, y: Integer;

    begin
     if FindColor(x, y, 7307403, 0, 0, 348, 291) then;
        MoveMouseSmooth(x, y);
        Wait(100+random(200));
        ClickMouse(x, y, true);
        end;
    begin
      if findcolor(x, y, 16711680, 0, 0, 308, 446) then;
      MoveMouseSmooth(x, y);
      Wait(1000+random(2000));
      ClickMouse(x, y, true);
      until end;
      begin
        WriteLn('Color Not Found. :/ Sorry');
      until end;
    begin
      Wait(1000);
      ClearDebug;
      ClickColor;
    end;

    -Currently learning script
    Marzey

  2. #2
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Man, let me tell you something, you really should read some tutorials first...

  3. #3
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    176
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Recommed one i read a whole one then this other one said no to do it that way ? So please recommend one.

    -Currently learning script
    Marzey

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

    Default

    dont use movemousesmooth or click mouse ...ever and i wouldnt suggest find color either

    use Mouse(x,y,2,2,true) instead of Movemousesmooth and click mouse
    and FindColorTolerance(x,y,color,coords,coords,coords, coords,4)
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  5. #5
    Join Date
    Apr 2007
    Posts
    220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)
    I fixed your script. It should work now. Any more questions? ask away

    Code:
    program Testingbankfinder;
    var
    x, y: Integer;
    FoundColor:boolean;
    
    procedure BankFinder; //You forgot to make a procedure because you cant put al this in a main loop.
    begin
     if FindColor(x, y, 7307403, 0, 0, 348, 291) then;
        begin    //You forgot this.<<<
        MoveMouseSmooth(x, y);
        Wait(100+random(200));
        ClickMouse(x, y, true);
        FoundColor :=true;
        end;
    
    
     if findcolor(x, y, 16711680, 0, 0, 308, 446) then;
      begin
        MoveMouseSmooth(x, y);
        Wait(1000+random(2000));
        ClickMouse(x, y, true);
        FoundColor := true;
      end;
    
    if FoundColor = true then
    begin
    writeln('Found Color');
    end else
    begin
    writeln('Color Not Found. :/ Sorry');
    end;
    
    begin
      Wait(1000);
      ClearDebug;
      ClickMouse(1, 1, true);
    end;
    end;
    
    begin
    BankFinder;
    end.
    Fearlesssss

  6. #6
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    176
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks starting to work will have to make it more solid less errors or chance of an error.

    Marzy

    -Currently learning script
    Marzey

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. My script wont bank please help
    By dallas574 in forum OSR Help
    Replies: 6
    Last Post: 08-13-2008, 01:26 PM
  2. bank script error!!!!!!
    By sundeep125 in forum OSR Help
    Replies: 2
    Last Post: 04-05-2008, 08:32 PM
  3. My First Script, A PowerChopper!(no bank)
    By HyperSecret in forum First Scripts
    Replies: 4
    Last Post: 10-07-2007, 07:21 AM
  4. Replies: 4
    Last Post: 05-28-2007, 10:04 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
  •