Results 1 to 7 of 7

Thread: Help with random events

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

    Default Help with random events

    the main reason why i downloaded SRL is so that i can solve the random events while autoing on RS. I have no clue what so ever on how to make a script that will solve random events while my character is autoing.

    my question is, can anyone give me an easy tutorial that will explain how to solve a random event while autoing? if so it would give me alot of help. thanks : )

  2. #2
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    procedure Declareplayers;
      begin
      HowManyPlayers:=1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer:=0;
    
         Players[0].Name :='Abcdefgh' //PlayerName
         Players[0].Pass :='password' //Password
         Players[0].Nick :='cdefg'  //Players nick name( a few letters from playername)
         Players[0].Loc  :='';
         Players[0].Active:=True;
          end;
    This is procedure what you need to get antirandoms work.
    This must put after "SetUpSRL;"
    You can check SRL's anti random stuff from includes\SRL\SRL\core\AntiRandoms.

    Here is example how to use SRL's anti random stuff.
    Code:
    procedure Declareplayers;
      begin
      HowManyPlayers:=1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer:=0;
    
         Players[0].Name :='Abcdefgh' //PlayerName
         Players[0].Pass :='password' //Password
         Players[0].Nick :='cdefg'  //Players nick name( a few letters from playername)
         Players[0].Loc  :='';
         Players[0].Active:=True;
          end;
    
    procedure Randoms;
    begin
    FindNormalRandoms;  //Solves "normal" randoms
    end;
    
    begin
    Setupsrl;
    Declareplayers;
    //Your stuff here
    Randoms; 
    //something here
    end.
    Hope this helps.

  3. #3
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Pentti you forgot to add something.
    You will need to put this right after declareplayers; procedure in your main loop.
    SCAR Code:
    NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, UpChars);


  4. #4
    Join Date
    Aug 2006
    Location
    London
    Posts
    2,021
    Mentioned
    2 Post(s)
    Quoted
    0 Post(s)

    Default

    FindNormalRandoms doesnt run from fights (otherwise autofighters would be running around stupidly)

    in the "Randoms" procedure, add
    SCAR Code:
    if(FindFight)then
     begin
     RunAwayDirection('n');
     wait(10000+random(5000));
     RunBack;
     end

    RunAwayDirection runs away, you can replace 'n' with 'e' 's' or 'w', RunBack moves the opposite direction that RunAwayDirection did
    Join the Official SRL IRC channel. Learn how to Here.

  5. #5
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Junior View Post
    Pentti you forgot to add something.
    You will need to put this right after declareplayers; procedure in your main loop.
    SCAR Code:
    NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, UpChars);

    Oh, oops! Good you noticed that.

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

    Default

    thanks for the help guys, this really helps me alot. : )

  7. #7
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, thats good. If any problems comes, just tell us.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. No Random Events!!
    By Swift in forum RuneScape News and General
    Replies: 52
    Last Post: 03-15-2008, 02:27 PM
  2. Random Events
    By vilon in forum OSR Help
    Replies: 7
    Last Post: 09-06-2007, 04:25 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
  •