Page 2 of 3 FirstFirst 123 LastLast
Results 26 to 50 of 54

Thread: Using SRL...

  1. #26
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    Hello im a noob , so say i get a woodcutting scirpt and copy the scirpt into the scar window, Do i have to set up the "Setting Up SRL." and the "Setting up your Players." and the "MainLoop" bits my self ot his this include in the script?

  2. #27
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    2,823
    Mentioned
    3 Post(s)
    Quoted
    25 Post(s)

    Default

    Nice guide, nice detail and color in writing.

  3. #28
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    help me please!

  4. #29
    Join Date
    May 2007
    Location
    http://www.srl-forums.com
    Posts
    265
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey thanks fawaki for that.

  5. #30
    Join Date
    May 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    my scar write this: Found compass-where i can find tutorial for this?

  6. #31
    Join Date
    Jan 2007
    Location
    Pluto
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    A cool Tut..
    Learned more about DeclarePlayers from here..
    Thanks a lot.
    Right Here, All Underneath.

  7. #32
    Join Date
    Aug 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Awesome tut, thank you h):

  8. #33
    Join Date
    Aug 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the guide, should get my scripts better with it.

  9. #34
    Join Date
    Aug 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    its good...very nice!

  10. #35
    Join Date
    Aug 2007
    Location
    Georgia, U.S.
    Posts
    890
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks. helped alot.

  11. #36
    Join Date
    Jul 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wait, where do you put "declare players"?

  12. #37
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    DeclarePlayers;

    but it on the begin of you script.
    like:

    SCAR Code:
    //<the script>

    {main loop}
    begin
      SetupSRl;
      DeclarePlayers;
      //<other stuff>
    end.

  13. #38
    Join Date
    Mar 2007
    Location
    Jersey
    Posts
    159
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Thank you so much. This will surely help me send in a decent SRL script. Gotta love the player array.

  14. #39
    Join Date
    Oct 2007
    Location
    Montreal, Quebec, Canada
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    this was a really good read. It was really helpful for me, but I have a questiong regarding the mini-miner+banker.

    PHP Code:
    repeat

      
    if Players[CurrentPlayer].loc='Dalafor' then
       begin
           WalkToMine
    ;
       
    end;
      
       if 
    Players[CurrentPlayer].Loc='Timmingron' then
       begin
           repeat
               Mine
    ;
               if (
    not(Loggedin)) then break;
           
    until(InventoryFull)

           
    WalkToDalafor;
           
    Bank;
           
    ProgressReport;
       
    end;

       if ((
    LoggedIn) and (Players[CurrentPlayer].Banked mod Loads 0)) then
          begin
             SetChat
    ('off'1);
             
    repeat
               Wait
    (1000);
               
    FindRandoms;
             
    until(not(LoggedIn));
             
    NextPlayer(true);
          
    end;

       if (
    not(Loggedin)) then NextPlayer(false);
    until(false); 
    I'm just curious as to why your banking in "Dalafor" (as a opposed to Falador) and mining in "Tummingron" (as a opposed to Rummington)?
    An explanation would be helpful, thanks.

  15. #40
    Join Date
    May 2007
    Location
    The Netherlands
    Posts
    54
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well, 1 thing is not clear to me. you said it is important to set the numbers of players..

    SCAR Code:
    NumberOfPlayers(4);

    u can see you set a 4 between the hooks. (4).

    but then you post an example like this:

    SCAR Code:
    Procedure DeclarePlayers;
    begin
    NumberOfPlayers(HowManyPlayers);   // Sets the Players Array Length;
    CurrentPlayer:=3;



    you havent set the numbers of players between the hoops. like this

    NumberOfPlayers(HowManyPlayers); // Sets the Players Array Length;
    NumberOfPlayers(4); // Sets the Players Array Length;



    what is the good one?


    Edit: after some looking i saw someone say that i need to leave it unchanged.. is that so?

  16. #41
    Join Date
    Sep 2007
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ahh thanks I think I get what SRL is for now

  17. #42
    Join Date
    Oct 2007
    Posts
    100
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thank you for this, it was easy to follow

  18. #43
    Join Date
    Nov 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    how do i set up a script

  19. #44
    Join Date
    Nov 2007
    Location
    I live in Slovenia! :)
    Posts
    837
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks for the information

  20. #45
    Join Date
    Dec 2007
    Location
    Colombia. Bogotá D.C
    Posts
    720
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i understood it better thanks for the tut , very nicely done..

  21. #46
    Join Date
    Dec 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That helped me with alot, Thank you

  22. #47
    Join Date
    Jan 2008
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Great job lots of information

  23. #48
    Join Date
    Mar 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    wow great tut it helped me understand SRL a lot

  24. #49
    Join Date
    Feb 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Very good tutorial. Helpful in understanding it. I'll have to come back and check it out when I have more time.

  25. #50
    Join Date
    Feb 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    After looking through it, I became very confused. Since this is the tutorial island section, I think it's appropriate for me to ask how the arrays work and how I set the values for:
    Rand: String; // * Stuck inside Random
    Skill:'Mining' String; // * User Action to Perform
    Level:'31' array[0..21] of word; // * Levels of all skills. SetIn GetPlayerLevels.
    Worked: Integer; // * Time User has worked
    Banked: Integer; // * Number of Banks User has done
    Booleans: Array of Boolean; // * For reports, etc.
    Integers: Array of Integer; // * For reports, etc.
    Strings : Array of String; // * For reports, etc.
    Extendeds : Array of Extended; // * For reports, etc.

    After I set these values, I have my player record set right? Could you provide me with a complete example? I think I could learn it better if I compared what I'm making to an official player record. Thanks.

    *Is it allowable for me to request an example?

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •