Results 1 to 3 of 3

Thread: Where does the anti random go?

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

    Where does the anti random go?

    The script atm:

    SCAR Code:
    Var
    x, y, i: integer;
    begin
      Repeat
      Mousespeed := 15
      DropAll;
      Repeat
        LoadRockRecords;
        FindObjRock(x, y, Varrock_iron);
        ClickMouse(x, y, True);
        Wait(10000);
      Until (InvFull= True);
      i = i + 1
      Until (i = 1)
    end.

    How do i get the below anti-random into the script?

    SCAR Code:
    procedure AntiRandoms;
      begin
      if not LoggedIn then Exit;
       FindNormalRandoms;
        if FindFight then // if it finds a fight then it will(next time)
       SetRun(true); // true means yes, so it will turn on run if it finds a fight
      RunAway('E', True, 1, 5000); // runs east and waits 5000 milliseconds
                                             // and then comes back
     end;

    Do I paste into the anti-random actually into the script, put it underneath or what?
    can someone show me how it should look?

    (sorry for being a complete noob)

  2. #2
    Join Date
    Jul 2007
    Posts
    140
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm, i think you are going to set it before the end. in script, cause end. makes whole script stop, use end; right before you paste it in and then use end.

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

    Default

    Quote Originally Posted by daniiboy69 View Post
    The script atm:

    Var
    x, y, i: integer;
    begin
    Repeat
    Mousespeed := 15
    DropAll;
    Repeat
    LoadRockRecords;
    FindObjRock(x, y, Varrock_iron);
    ClickMouse(x, y, True);
    Wait(10000);
    Until (InvFull= True);
    i = i + 1
    Until (i = 1)
    end.

    How do i get the below anti-random into the script?

    procedure AntiRandoms;
    begin
    if not LoggedIn then Exit;
    FindNormalRandoms;
    if FindFight then // if it finds a fight then it will(next time)
    SetRun(true); // true means yes, so it will turn on run if it finds a fight
    RunAway('E', True, 1, 5000); // runs east and waits 5000 milliseconds
    // and then comes back
    end;


    Do I paste into the anti-random actually into the script, put it underneath or what?
    can someone show me how it should look?

    (sorry for being a complete noob)
    Your script should look like this:
    Code:
    program New;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Mining.scar}
    
    procedure AntiRandoms;
      begin
      if not LoggedIn then Exit;
       FindNormalRandoms;
        if FindFight then // if it finds a fight then it will(next time)
       SetRun(true); // true means yes, so it will turn on run if it finds a fight
      RunAway('E', True, 1, 5000); // runs east and waits 5000 milliseconds
                                             // and then comes back
     end;
    
    Var
    x, y, i: integer;
    begin
      SetUpSRL;
      i:= 0
      Repeat
      DropAll;
      Repeat
        LoadRockRecords;
        FindObjRock(x, y, Varrock_iron);
        ClickMouse(x, y, True);
        AntiRandoms;
        Wait(10000);
      Until (InvFull = True);
      i:= i + 1
      Until (i = 1)
    end.
    You put the procedure you the top so that you verify what it is going to do.
    You then should have it put in where it is going to be used the most, repeats are best for this, so notice how i put it under the ClickMouse.

    You must also have SetUpSRL in the script while using Randoms, and I'm not sure, but I think that you have to have a Player Setup aswell, just search 'Tutorial Island', there should be heaps showing you how to do it.

    All in all it is a VERY basic script. If i were you i would put in some + Random times and deffently use functions such as Mouse, just have a squizz through the SRL manual.

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
  •