Results 1 to 9 of 9

Thread: Help me get this working?

  1. #1
    Join Date
    Feb 2008
    Posts
    60
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help me get this working?

    Ok, this script is to buy cosmic runes from mage training arena 1 at a time but I cant get it to compile.


    program Cosmicbuyer;
    {.include Srl/srl.scar}

    var
    cosmicrune, x, y: integer;


    begin

    cosmicrune := BitmapFromString(29, 27, 'beNq1lltPU0EURuvvI' +
    'NEH34wX1KAmQoFKJWkk8cIDYghBFEVEFEQEEZuKIIiIICCCCF bkIh' +
    'cpVkAhaqI/w/hT6kq+ZGc8pxJfJF9OptPO6j5rz5ySSqVSARIIbMv' +
    'cF2TAlbEmGaed3Lsn282hg4X+aKFhbeCZNKzGyhbY/Zm5HoJKcmm6' +
    'fpx/p/FGIvElmfy2vqYP/DvWrvMTr/yT60uLRv6+8Tkt3C/Bvc6Nj' +
    '/snKdtD/rG56SH7lY709hph9uWYJhcnJ21yZWbGTxY260BY0Sp9vr' +
    'f9vr18PTTEzPToKLFJnDDJVySm36YlG1abRwE70NVlLyGT+PP hqRc' +
    'jNkn9mCHLU2+Sc7Mu2Y9tbWjouNsqLBJG+56M9T8l4wMDE4PP CPxf' +
    'PzPcwKdshKwtLPjJhm2/09ITiw0+6ibDj3uI+PoK+MTFcgsELZSNk' +
    'M0PK5ANy6Du8qWW+hvC9nU86O/sJJQNn+Xi2y24ZCmi7KV4HCGflt' +
    '8bmWtt1cXb1+tizc3d0Shkgg34WgtfX2G3YFjdAopoq4Sg+uv qqrp' +
    'QU1l561pttKkJveThvTb4xJb7b8FiXYBMzbIhbHVFxc2rNW2N jZCp' +
    'GRvEXWv1iw/c3jI52MAzBaNC2AtlZfVXqumayIJ7+u7KMT9GBotnJ' +
    'NM+Noaw5WdL1DXIHpo/kF3ziqplY2CY3glbcvqU9NK4LeDmnLLdeW' +
    'wLi16OCQdQ2DNFJ6rKy9Erclo4ttVNwd23UI1eShWWxgkbCYf Pnyt' +
    'FL2SDQ7aFbiuBe+5CWJg613oo8XjnWlpcjF4iuMi20DaJ4B7V 7A2w' +
    'tEwFQ9uRsUtYFcy5cMmEhRICWXB/B2kfWJ0LDBtWZAyzgY0sOAtNd' +
    'dpW6rxz+rR7xdy5fbdhC0MhVLAlRPYI8diWDbVPzz32g57/4exgUU' +
    'HIfpeZORmJoAKywT1CiJ0ayLRPWJ0+MRUXW5CXyx5ms2HDQ3Z 3iMg' +
    'q2J4hwCGEjuTDPJ7zx/8SIlMzNjjRfxMC2eAqWxuV52EwK5h/OO/Y' +
    '0ZzU//j7DenJQJ8=');

    If (FindbitMapIn(CosmicRune, x, y, MSx1, MSy1, MSx2, MSy2)) Then
    Begin
    Repeat
    Mouse(x, y, 10, 10, False);
    Wait(250+random(250));
    ChooseOption('uy');
    a:=A+1;
    Until(a >= 100)
    End;
    end;

    begin
    BuyTehCosmics;
    End.

    I get line 38 error which is "a:=A+1;" unknown identifier.

    Any help is appreciated !

  2. #2
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    You need to make 'a' an variable.

    SCAR Code:
    var
      a : Integer;
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  3. #3
    Join Date
    Feb 2008
    Posts
    60
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by noidea View Post
    You need to make 'a' an variable.

    SCAR Code:
    var
      a : Integer;
    Do you mean like this?
    var
    a : Integer;
    a:=A+1;

    Sorry for being such a newb..

  4. #4
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Try this

    SCAR Code:
    program Cosmicbuyer;
    {.include Srl/srl.scar}
    //Credit to noidea for helping :D
    var
      cosmicrune, x, y, a: integer;

    Procedure BuyTehCosmics;
    begin

      cosmicrune := BitmapFromString(29, 27, 'beNq1lltPU0EURuvvI' +
      'NEH34wX1KAmQoFKJWkk8cIDYghBFEVEFEQEEZuKIIiIICCCCF bkIh' +
      'cpVkAhaqI/w/hT6kq+ZGc8pxJfJF9OptPO6j5rz5ySSqVSARIIbMv' +
      'cF2TAlbEmGaed3Lsn282hg4X+aKFhbeCZNKzGyhbY/Zm5HoJKcmm6' +
      'fpx/p/FGIvElmfy2vqYP/DvWrvMTr/yT60uLRv6+8Tkt3C/Bvc6Nj' +
      '/snKdtD/rG56SH7lY709hph9uWYJhcnJ21yZWbGTxY260BY0Sp9vr' +
      'f9vr18PTTEzPToKLFJnDDJVySm36YlG1abRwE70NVlLyGT+PP hqRc' +
      'jNkn9mCHLU2+Sc7Mu2Y9tbWjouNsqLBJG+56M9T8l4wMDE4PP CPxf' +
      'PzPcwKdshKwtLPjJhm2/09ITiw0+6ibDj3uI+PoK+MTFcgsELZSNk' +
      'M0PK5ANy6Du8qWW+hvC9nU86O/sJJQNn+Xi2y24ZCmi7KV4HCGflt' +
      '8bmWtt1cXb1+tizc3d0Shkgg34WgtfX2G3YFjdAopoq4Sg+uv qqrp' +
      'QU1l561pttKkJveThvTb4xJb7b8FiXYBMzbIhbHVFxc2rNW2N jZCp' +
      'GRvEXWv1iw/c3jI52MAzBaNC2AtlZfVXqumayIJ7+u7KMT9GBotnJ' +
      'NM+Noaw5WdL1DXIHpo/kF3ziqplY2CY3glbcvqU9NK4LeDmnLLdeW' +
      'wLi16OCQdQ2DNFJ6rKy9Erclo4ttVNwd23UI1eShWWxgkbCYf Pnyt' +
      'FL2SDQ7aFbiuBe+5CWJg613oo8XjnWlpcjF4iuMi20DaJ4B7V 7A2w' +
      'tEwFQ9uRsUtYFcy5cMmEhRICWXB/B2kfWJ0LDBtWZAyzgY0sOAtNd' +
      'dpW6rxz+rR7xdy5fbdhC0MhVLAlRPYI8diWDbVPzz32g57/4exgUU' +
      'HIfpeZORmJoAKywT1CiJ0ayLRPWJ0+MRUXW5CXyx5ms2HDQ3Z 3iMg' +
      'q2J4hwCGEjuTDPJ7zx/8SIlMzNjjRfxMC2eAqWxuV52EwK5h/OO/Y' +
      '0ZzU//j7DenJQJ8=');

      If (FindbitMapIn(CosmicRune, x, y, MSx1, MSy1, MSx2, MSy2)) Then
      Begin
        Repeat
          Mouse(x, y, 10, 10, False);
          Wait(250+random(250));
           ChooseOption('uy');
            a := a + 1;
        Until(a >= 100)
      End;
    end;

    begin
    BuyTehCosmics;
    End.
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  5. #5
    Join Date
    Nov 2006
    Posts
    235
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    In the future, you should put [ scar] (script here) [ /scar] around your script (without the spaces)
    Code:
    var
    cosmicrune, x, y: integer;
    This declares three variables: 'cosmicrune', 'x', and 'y'. They are all declared as integers.
    Doing the same thing with 'a' will declare 'a' as an integer, so it shouldn't error. (Add it to the same line, or rewrite the fact that you're declaring variables and declare it alone)

    I don't actually script with SCAR, but most languages are case sensitive as well. You should fix your code to:
    Code:
    a:=a+1;
    Because 'a' as a variable and 'A' as a variable are not the same.
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig
    http://www.stats.srl-forums.com/sigs/5612.png
    http://www.wizards.com/magic/images/...or_iswhite.jpg

  6. #6
    Join Date
    Sep 2008
    Location
    Earth
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    glad to see your trying, dtm's work better than bitmaps and take about 30 seconds to make so read some tuts on that but good start

  7. #7
    Join Date
    Jul 2007
    Location
    Mo-Town
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Wrycu View Post
    In the future, you should put [ scar] (script here) [ /scar] around your script (without the spaces)
    Code:
    var
    cosmicrune, x, y: integer;
    This declares three variables: 'cosmicrune', 'x', and 'y'. They are all declared as integers.
    Doing the same thing with 'a' will declare 'a' as an integer, so it shouldn't error. (Add it to the same line, or rewrite the fact that you're declaring variables and declare it alone)

    I don't actually script with SCAR, but most languages are case sensitive as well. You should fix your code to:
    Code:
    a:=a+1;
    Because 'a' as a variable and 'A' as a variable are not the same.
    I love how you tell him to use scar tags and then don't do it yourself X[)

    [ONTOPIC] Also instead of
    SCAR Code:
    a:=a+1;
    you could just put
    SCAR Code:
    inc(a);
    [/ONTOPIC]
    Quote Originally Posted by Napolean
    In Politics, Stupidity is Not a Handicap
    Quote Originally Posted by Unknown
    Marriage is like a bank. You put it in, Pull it out, then lose interest.

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

    Default

    Quote Originally Posted by nething View Post
    I love how you tell him to use scar tags and then don't do it yourself X[)
    I used code tags because it's not an entire script, it's part of one. Making it code.

    </self defense>
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig
    http://www.stats.srl-forums.com/sigs/5612.png
    http://www.wizards.com/magic/images/...or_iswhite.jpg

  9. #9
    Join Date
    Jul 2008
    Posts
    907
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol raped^ but yeah use dtms scar has a built in dtm editor and if you prefer bitmaps make them only 2 pixels high and however long you need them yours are immense :P


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. is srl working yet.
    By th3ko in forum NOTA
    Replies: 2
    Last Post: 10-20-2008, 08:06 PM
  2. ~~~~Working Edge cooker WORKING~~~
    By NiCbaZ in forum RS3 Outdated / Broken Scripts
    Replies: 5
    Last Post: 10-29-2007, 11:16 PM
  3. [Working on].:Autoseller:.[/Working on]
    By dritar in forum First Scripts
    Replies: 10
    Last Post: 10-07-2007, 06:13 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
  •