Results 1 to 5 of 5

Thread: Please help with anti-random.

  1. #1
    Join Date
    Oct 2008
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Please help with anti-random.

    Hello again,

    Thanks to the people who helped me out on my other question.

    I've done what people said and added FindNormalRandoms; and procedure DeclarePlayers; into the script.

    This is what it looks like now:

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Mining.scar}

    procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name := 'Username';
      Players[0].Pass := 'Password';
      Players[0].Nick := 'Nick';
      Players[0].Active := True;
    end;

    Var
    x, y: integer;
    begin
      Repeat
      Mousespeed := 15
      DropAll;
      Repeat
        LoadRockRecords;
        FindObjRock(x, y, Varrock_Iron);
        ClickMouse(x, y, True);
        FindNormalRandoms;
        Wait(3000+random(2000));
        Until (InvFull= True);
        Until false
    end.
    However when I try and run the script, the following message comes up in the debug box: [Runtime Error] : Out Of Range in line 1087 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/AntiRandoms/AntiRandoms.scar

    Then it opens up a new tab - AntiRandoms.scar and shows me line 1087 which reads:

    SCAR Code:
    if FindTPAinTPA(Players[CurrentPlayer].NickTPA,TPA,Matches) then  //Length check inside the function ;)

    What do I need to do to get the anti-random to work?
    And is there anything that needs to be done to my script?

  2. #2
    Join Date
    Nov 2007
    Location
    PA
    Posts
    90
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It would help a lot to know what the line 1087 is. Or you should try reinstalling SRL
    -It's not that women don't want to hear your opinion, it's that they want to hear their opinion, but in a deeper voice

    <a href="http://www.justsayhi.com/bb/fight5" style="display: block; background: url(http://assets.justsayhi.com/badges/7...8hnwzprff0.jpg) no-repeat; width: 296px; height: 84px; font-family: Arial, sans-serif; font-size: 42px; color: #fff; text-decoration: none; text-align: center; padding-top: 145px;">26</a><p></p>

  3. #3
    Join Date
    Aug 2008
    Posts
    87
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm preety sure you have to add
    Code:
    SetUpSRL;
    Just put it right under the begin.

    Quote Originally Posted by Skepsis View Post
    It would help a lot to know what the line 1087 is. Or you should try reinstalling SRL
    The problem is with AntiRandoms, so why don't you just check it yourself and try and help him?

  4. #4
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    You've never declared your players. Call DeclarePlayers at the beginning of your loop (before the repeat).
    :-)

  5. #5
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    btw dude can you please edit and use scar tags, its kinda hard w/o it.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Anti-Random help?
    By 666d3v1l666 in forum OSR Help
    Replies: 0
    Last Post: 11-11-2008, 04:35 AM
  2. anti random help
    By del_signo in forum OSR Help
    Replies: 6
    Last Post: 04-09-2007, 04:54 AM
  3. Help on Anti-Random
    By UnKnOwN ScrIPTeR in forum OSR Help
    Replies: 1
    Last Post: 12-30-2006, 11:44 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
  •