Results 1 to 12 of 12

Thread: need help!

  1. #1
    Join Date
    Nov 2006
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default need help!

    ok guys euhm, iv been working on this script with bitmaps n stuff. its added nicely to the script now the only problem i have is all theway at the end of the script.
    i keep getting the message:
    Failed when compiling
    Line 63: [Error] (63:1): Identifier expected in script

    line 63 is just a: end;

    i dont know how to fix this can anyone explain this pls?

    thx

  2. #2
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    On the line after that put another:

    SCAR Code:
    End;

    If that does not seem to succeed then post the script .

  3. #3
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    make the end; into "end." with the period

  4. #4
    Join Date
    Nov 2006
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok guys fixed, in compiles succesfully now
    but now it comes up with another error while running:

    [Runtime Error] : Exception: Access violation at address 0058D7FE in module 'scar.exe'. Read of address 00000000 in line 50 in script

  5. #5
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Can we see the script?

  6. #6
    Join Date
    Nov 2006
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    program NatureRuneChestThiever;
    var
    searchchest:integer;
    X,Y:Integer;

    const
    Color1 = 13027014;
    Color2 = 10066329;
    Color3 = 88888888;

    procedure BitMapInitialise;
    begin

    searchchest := BitmapFromString(92, 14, 'beNqdV4Fu6jAM5NvTD' +
    'VEVUa161SakTXpf+p7pwXHYjjeGTpHjOM7FMYl7GuaxLYcN4w 0HaU' +
    'usk8e8b8smfBwHtMTnaaAyTjQsj3LEOl78YwlVol2VzyjtM7g 6Pwj' +
    'yjQ9oAWoYE934srmNAUFMzkEZUQQNnMd2i8DY/rzeZR8WgePjloj8' +
    '/z3+drvdad+It9dmiQQBmvkG42bQw1LZ2NKSnp0loavPj0tYa67 Um' +
    '45iCpjAOMLmYqc9J3ELcIsfib2PjbCsoIzjBnAukC0BqI+g23 oUBu' +
    'rK/FuXsNW1y4mqdFPSubp6uoXrCW7/HRDD9l3yIDJB6TXcIzVGhrL' +
    'bBZio8Tk4TDUaE/X8Ez9K4xKTcguaHnp26ipmlDvl3sSUj8sTpd1b' +
    'opcnzqag6nzWhDUyqayHHn3ijtKuMnRHEI/bWabZVfx3nNs0VQrnG' +
    'kMjqSHqBQrKv2+tiLONqgG6UVnkSU/W6aav3fJaqKnG9NBRvCZFuu' +
    'KHS573fLR0TwzfAjVODVK36RLqs+dWH9PCj851keEtgXojTl+ nJ5S' +
    'qT200aeNL3ZNVeS/SOms5Gkug8bv7xIITM2qZWmrsyMSJujvH1p0p' +
    'jqyYzkICSLeW0ujFYc12iun6Y4GqSpZ8zpgaLRrVAJlAmaPLr YrWU' +
    'TWmcpmaylqy8hpXGixQI1V3IaSEr18WUsO7ov1buFL5XjBvnG Nh+T' +
    'm/fBzbugEBIRgllJ0EqncNiH7dXOr8PisHl0vFLtw3WlGOPgsjfJ 7' +
    'uHybve3ssXiwshHa/jk2HrAtolwImWjsNef2cboRP7Tf4D+WDjtY=' +
    '');
    end;

    Procedure ChestThiever;
    begin
    while(True) do
    begin

    if (FindColorSpiral (x, y, Color1, 1, 1, 304, 325)) or

    (FindColorSpiral (x, y, Color2, 305, 36, 510, 325)) or

    (FindColorSpiral (x, y, Color3, 1, 1, 304, 325)) then

    begin

    ClickMouse (x, y, False);

    wait (300);

    if (FindBitmap (searchchest, x, y)) then

    begin

    ClickMouse (x, y, True);

    wait (300);

    repeat

    wait (50);
    until (False);
    end;

    end;
    end;
    end;
    begin
    ChestThiever
    end.

  7. #7
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    You never call BitMapInitialise. and if this is for runescape, you need to use SRL, so use mouse instead of clickmouse.

    SCAR Code:
    program NatureRuneChestThiever;
    {.include srl/srl.scar}
    var
      searchchest:integer;
      X,Y:Integer;

    const
      Color1 = 13027014;
      Color2 = 10066329;
      Color3 = 88888888;

    procedure BitMapInitialise;
    begin
    searchchest := BitmapFromString(92, 14, 'beNqdV4Fu6jAM5NvTD' +
    'VEVUa161SakTXpf+p7pwXHYjjeGTpHjOM7FMYl7GuaxLYcN4w 0HaU' +
    'usk8e8b8smfBwHtMTnaaAyTjQsj3LEOl78YwlVol2VzyjtM7g 6Pwj' +
    'yjQ9oAWoYE934srmNAUFMzkEZUQQNnMd2i8DY/rzeZR8WgePjloj8' +
    '/z3+drvdad+It9dmiQQBmvkG42bQw1LZ2NKSnp0loavPj0tYa67 Um' +
    '45iCpjAOMLmYqc9J3ELcIsfib2PjbCsoIzjBnAukC0BqI+g23 oUBu' +
    'rK/FuXsNW1y4mqdFPSubp6uoXrCW7/HRDD9l3yIDJB6TXcIzVGhrL' +
    'bBZio8Tk4TDUaE/X8Ez9K4xKTcguaHnp26ipmlDvl3sSUj8sTpd1b' +
    'opcnzqag6nzWhDUyqayHHn3ijtKuMnRHEI/bWabZVfx3nNs0VQrnG' +
    'kMjqSHqBQrKv2+tiLONqgG6UVnkSU/W6aav3fJaqKnG9NBRvCZFuu' +
    'KHS573fLR0TwzfAjVODVK36RLqs+dWH9PCj851keEtgXojTl+ nJ5S' +
    'qT200aeNL3ZNVeS/SOms5Gkug8bv7xIITM2qZWmrsyMSJujvH1p0p' +
    'jqyYzkICSLeW0ujFYc12iun6Y4GqSpZ8zpgaLRrVAJlAmaPLr YrWU' +
    'TWmcpmaylqy8hpXGixQI1V3IaSEr18WUsO7ov1buFL5XjBvnG Nh+T' +
    'm/fBzbugEBIRgllJ0EqncNiH7dXOr8PisHl0vFLtw3WlGOPgsjfJ 7' +
    'uHybve3ssXiwshHa/jk2HrAtolwImWjsNef2cboRP7Tf4D+WDjtY=');
    end;

    Procedure ChestThiever;
    begin
      while(True) do
      begin
        if (FindColorSpiral (x, y, Color1, 1, 1, 304, 325)) or
          (FindColorSpiral (x, y, Color2, 305, 36, 510, 325)) or
          (FindColorSpiral (x, y, Color3, 1, 1, 304, 325)) then
        begin
          Mouse(x, y, 2, 2, False);
          wait (300);
          if (FindBitmap (searchchest, x, y)) then
          begin
            Mouse(x, y, 2, 2, True);
            wait (300);
            repeat
              wait (50);
             until (False);
          end;
        end;
      end;
    end;

    begin
      SetupSRL;
      BitMapInitialise;
      ChestThiever;
    end.
    Last edited by MylesMadness; 11-25-2009 at 07:20 PM.

  8. #8
    Join Date
    Nov 2006
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thx for trying to fix this. i got heaps to learn
    anyways when i try to run it, scar opens math.scar
    and gives
    Line 51: [Error] (330:11): Unknown identifier 'CreateTPAFromBMP' in script C:\Program Files (x86)\SCAR 3.22\includes\SRL\SRL\Core\Math.scar

    is this a file im missing?

  9. #9
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by drolbakkes View Post
    thx for trying to fix this. i got heaps to learn
    anyways when i try to run it, scar opens math.scar
    and gives
    Line 51: [Error] (330:11): Unknown identifier 'CreateTPAFromBMP' in script C:\Program Files (x86)\SCAR 3.22\includes\SRL\SRL\Core\Math.scar

    is this a file im missing?
    Do you have the latest version of SCAR/SRL?

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

    Default

    Quote Originally Posted by Coh3n View Post
    Do you have the latest version of SCAR/SRL?
    Why dont you take a look at Coh3ns tutorral for scripting / setting up scar n srl.

    + When posting a script use scar tags as so..

    [.scar] [/scar]

    (with no period )

  11. #11
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Camaro' View Post
    Why dont you take a look at Coh3ns tutorral for scripting / setting up scar n srl.

    + When posting a script use scar tags as so..

    [.scar] [/scar]

    (with no period )
    *Cough*Or my guide*Cough*

    Coh3n's guide is great too.

  12. #12
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by drolbakkes View Post
    thx for trying to fix this. i got heaps to learn
    anyways when i try to run it, scar opens math.scar
    and gives
    Line 51: [Error] (330:11): Unknown identifier 'CreateTPAFromBMP' in script C:\Program Files (x86)\SCAR 3.22\includes\SRL\SRL\Core\Math.scar

    is this a file im missing?
    Move your plugins, bud.

    CreateTPAFromBMP is in WizzyPlugin!
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

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
  •