Results 1 to 11 of 11

Thread: A lil help needed

  1. #1
    Join Date
    May 2006
    Location
    Nowhere, Colorado
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default A lil help needed

    so, it's been a long time since last i scripted or used a script, a very, very long time, so i need a little help here with a kinda basic error if i remember right.

    [Error] (12291:20): Unknown identifier 'x' in script
    WARNING!!! This Message Contains Explicit Material Not Suitable For Idiots.

  2. #2
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you need to declare 'x' as a variable.


  3. #3
    Join Date
    May 2006
    Location
    Nowhere, Colorado
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    and how do i do that...
    WARNING!!! This Message Contains Explicit Material Not Suitable For Idiots.

  4. #4
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by anime1161 View Post
    and how do i do that...
    at the beggining:

    SCAR Code:
    Program New;
    var
    x : Integer;
    //


  5. #5
    Join Date
    May 2006
    Location
    Nowhere, Colorado
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol i knew i would feel like an idiot for asking this, thnx for the help
    WARNING!!! This Message Contains Explicit Material Not Suitable For Idiots.

  6. #6
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by anime1161 View Post
    lol i knew i would feel like an idiot for asking this, thnx for the help
    np.


  7. #7
    Join Date
    May 2006
    Location
    Nowhere, Colorado
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well, now that i've fixed the variables, i've found myself with another error lol

    [Error] (12301:37): Invalid number of parameters in script
    WARNING!!! This Message Contains Explicit Material Not Suitable For Idiots.

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

    Default

    Post the line. I can help you out then. Otherwise in general it just means you need more information in the ( ). For example: to set run you put Run(true); if I put Run(true, random, random1); it would say invalid number of paralmentsm, because it is only suspose to have 1 thing inside bracits. Also I HIGHLY recommend using this script. It guides you through all errors in a very user friendly method.

  9. #9
    Join Date
    May 2006
    Location
    Nowhere, Colorado
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    //Chest Theiver
    //By: Rscheater13
    //With help from ~alex~
    //Stand facing so you can only see one chest if you theiving lvl isn't
    //high enough
    //Low-detail
    //Screen as high as possible
    //V-bright

    //I designed this one mainly for stealing Nature Runes but it works for any

    Program RScheater13sChestTheiver;
    {.include SRL\SRL.SCAR}

    Var
    TimesStolen: integer;
    x : Integer;
    y : Integer;

    Const
    TimesToSteal=500; //How many times you want to steal from the chest

    Procedure FindChest;
    Begin
    Repeat
    FindColorTolerance(x, y, 4018270, 6, 6, 514, 337, 40);
    MMouse(x, y, 2, 2);
    Until(IsUpText('hest'));
    End;

    Procedure OpenChest;
    Begin
    Mouse(x, y, 2, 2, False);
    ChooseOption(x, y, 'earch for trap');
    End;

    Procedure HoldOn;
    Begin
    Wait(16000+random(1000));
    End;

    Begin
    ActivateClient;
    SetUpSRL;
    Repeat
    Findchest;
    OpenChest;
    HoldOn;
    Until(TimesToSteal=TimesStolen)
    End.
    well there's the script, really basic, but i just can't get it to work
    WARNING!!! This Message Contains Explicit Material Not Suitable For Idiots.

  10. #10
    Join Date
    Aug 2007
    Location
    In Your Front Door!
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    //Chest Theiver
    //By: Rscheater13
    //With help from ~alex~
    //Stand facing so you can only see one chest if you theiving lvl isn't
    //high enough
    //Low-detail
    //Screen as high as possible
    //V-bright

    //I designed this one mainly for stealing Nature Runes but it works for any

    Program RScheater13sChestTheiver;
    {.include SRL\SRL.SCAR}

    Var
    TimesStolen: integer;
    x,y : Integer;


    Const
    TimesToSteal=500; //How many times you want to steal from the chest

    Procedure OpenChest;
    Begin
      Repeat
        if FindColorTolerance(x, y, 4018270, 6, 6, 514, 337, 40) then
        MMouse(x, y, 2, 2);
      Until(IsUpText('chest'));
      Mouse(x, y, 2, 2, False);
      ChooseOption('earch for trap');// I think this was your problem there is no x, and y in front
    end;

    Procedure HoldOn;
    Begin
    Wait(16000+random(1000));
    End;

    Begin
      SetUpSRL;
      ActivateClient;
      Repeat
        openchest;
        HoldOn;
        TimesStolen:= TimesStolen + 1
      Until(TimesToSteal=TimesStolen)
    End.

    Also Choose option doesn't use a x and y in there .
    You didn't add the count of timesstolen.
    Try that if it doesn't work, you probably need to change the color.
    This is for Jagex!

    My Public Scripts
    Simple AutoTalker
    Face Maker

  11. #11
    Join Date
    May 2006
    Location
    Nowhere, Colorado
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thank you very much, i'll try it as soon as i have a chance
    WARNING!!! This Message Contains Explicit Material Not Suitable For Idiots.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. eek. A little help needed:
    By malotthouse in forum OSR Help
    Replies: 4
    Last Post: 02-18-2008, 06:01 PM
  2. Help needed
    By faster789 in forum OSR Help
    Replies: 2
    Last Post: 09-30-2007, 03:11 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
  •