Page 10 of 12 FirstFirst ... 89101112 LastLast
Results 226 to 250 of 295

Thread: THE Beginner's Simba Tutorial

  1. #226
    Join Date
    Feb 2013
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Cheers for the help.

    Trying to figure out the changes for editing the SMART params, etc at the moment.

    ** Failed To Grab Smart Parameters **
    ** Please check your internet connection/firewall **
    Successfully executed.

    Getting that at the moment.

    Going to keep trying to figure it out.

  2. #227
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Fishh View Post
    Hey, thanks for making this tutorial, I'm working my way through it. Will this work for the '07 release currently? I'm at the first stage of learning how to make an actual script for RS, implementing DeclarePlayers and SMART. When I try to launch to check if it'll log a character in I get this error:

    [Error] (21:3): Unknown identifier 'Smart_Server' at line 20
    Compiling failed.

    This is the Smart_Server line. I've tried changing the servers around, etc. Still to no avail. Any help would be appreciated, I'd like to get working on some scripts and get into the member area. I've got 3 years of experience with C# but none with Pascal apart from this tutorial.

    Thanks!

    EDIT: Just read a few topics, I see that a VM is easy to run at the moment than getting SMART to work. I'll just use a VM until SMART is available again.

    If anyone has any useful tips for me though in regards to programming in Pascal (specifically for RS scripts) please feel free to send me a PM, I'm incredibly interesting in learning more and want to become a contributing member of this community for high quality scripts. It may take me a while but I'll get there.
    Oh, that's outdated! You no longer need those SMART variables. You can load SMART with the following script:
    Simba Code:
    program new;
    {$DEFINE SMART}
    {$i srl/srl.simba}

    begin
      SetupSRL();
    end.
    I will update the first post.

  3. #228
    Join Date
    Dec 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    This seems simmilar to "Turing"

  4. #229
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

    Default

    Under AntiBans and AntiRandoms heading, you used the word "think" when I think you meant to put "thing".

    AntiRandoms - Procedures/Functions that solve the many RuneScape random events. Don't panic! All the solvable random events are already implimented into SRL. The only think you have to do is add one line of code.
    Last edited by StickToTheScript; 03-03-2013 at 03:36 AM.

  5. #230
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by reidcool View Post
    This seems simmilar to "Turing"
    They are similar, yes.

    Quote Originally Posted by StickToTheScript View Post
    Under AntiBans and AntiRandoms heading, you used the word "think" when I think you meant to put "thing".
    Yeah, you're right, thanks.

  6. #231
    Join Date
    Feb 2013
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Great tut! Very helpful, goes over all the main foundations for learning simba.
    Thanks

  7. #232
    Join Date
    Mar 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you, I'm half way through this and it's helped me a lot so far!

  8. #233
    Join Date
    Mar 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Wow, Thank you so much! What a wonderful tutorial.

  9. #234
    Join Date
    Jan 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That was an incredibly informative tutorial. This really is THE guide for beginners, thank you for explaining terms and breaking down each line of code. I am looking forward to reaching this level of expertise one day. Thanks again!

  10. #235
    Join Date
    Aug 2007
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    hey Coh3n do you think that you could give us some suggestions on what to read up on/learn after reading this guide? Also do you have some programming excercises/ideas on what we can try and do with what we just learnt?

  11. #236
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by tvain View Post
    hey Coh3n do you think that you could give us some suggestions on what to read up on/learn after reading this guide? Also do you have some programming excercises/ideas on what we can try and do with what we just learnt?
    Well ideally I should have an intermediate and advanced guide to go along with this, but I no longer have the time to do so.

    YoHoJo has some great video guides out there. I would start there. He actually teaches how to use your programming skills in Runescape.

    Check this one out: http://villavu.com/forum/showthread.php?t=69179

  12. #237
    Join Date
    Sep 2007
    Location
    BitLeak
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    This is a great tutorial. Very nicely done, Coh3n.

  13. #238
    Join Date
    Mar 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    When i run following script, it open a window and loads runescape, but it doesn't login. ( I also added the red parts, because i have smart8 and the p07Include )

    program DeclarePlayers;
    {$DEFINE SMART8} // This is how we include SMART; it HAS to be called BEFORE SRL!
    {$i srl/srl.simba}
    {$I P07Include.Simba}

    procedure DeclarePlayers;
    begin
    HowManyPlayers := 1; // This is set to the total amount of players (more on multiplayer later ), for now, just keep it set as 1
    NumberOfPlayers(HowManyPlayers); // This is a procedure in SRL which sets up player arrays (also, more on that later), this will always be the same
    CurrentPlayer := 0; // This is the player to start with; the first player will always be 0 (you'll find out when you learn all about arrays)

    Players[0].Name := ''; // Username
    Players[0].Pass := ''; // Password
    Players[0].Nick := ''; // 3-4 lowercase letters from username; used for random event detection
    Players[0].Active := True; // Set to true if you want to use Player 0
    Players[0].Pin := ''; // Leave blank if the player doesn't have a bank pin
    end;

    begin
    ClearDebug;
    SetupSRL;
    DeclarePlayers; // Calls the procedure, you can't forget this!
    LoginPlayer; // You want your player to login, right?
    end.

  14. #239
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    It's likely because (as far as I know) SMART8 is for RS not OSR. I'm not sure if there's a version of SMART that works with OSR.

  15. #240
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    It's likely because (as far as I know) SMART8 is for RS not OSR. I'm not sure if there's a version of SMART that works with OSR.
    8 works with osr

  16. #241
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by RJJ95 View Post
    8 works with osr
    It would have to be a modified version, though. So the "official" one wouldn't work, he'd still need a different version.

  17. #242
    Join Date
    Apr 2013
    Location
    Belgium
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    HTML Code:
    program IfThenExample;
    
    procedure RandomFunction;
    var
      i: Integer;
    begin
      if (Random(10) < 5) then
        WriteLn('Less than 5!')
      else
        WriteLn('Greater than or equal to 5!')
    
      i := Random(1000);
      if ((i < 100) or (i>500)) then
      begin
        WriteLn('Small or large!');
        WriteLn('Which is it?');
      end else
      begin
        WriteLn('Somewhere in the middle!');
        WriteLn('But where...');
      end;
    end;
    
    begin
      ClearDebug,
      RandomFunction;
    end.

    Error: [Error] (13:3): Semicolon (';') expected at line 12
    Compiling failed.



    But there's clearly a semicolon there, am I doing something wrong somewhere else in my code? I can't find the mistake.
    Last edited by BelgianFries; 04-02-2013 at 08:00 PM.
    Use the "Reply With Quote" option when responding to my posts so that I get a notification, otherwise I won't respond.

  18. #243
    Join Date
    Feb 2013
    Posts
    303
    Mentioned
    4 Post(s)
    Quoted
    124 Post(s)

    Default

    Bookmarked This Will help me in furer when i try and make my first script

  19. #244
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by BelgianFries View Post
    HTML Code:
    program IfThenExample;
    
    procedure RandomFunction;
    var
      i: Integer;
    begin
      if (Random(10) < 5) then
        WriteLn('Less than 5!')
      else
        WriteLn('Greater than or equal to 5!')
    
      i := Random(1000);
      if ((i < 100) or (i>500)) then
      begin
        WriteLn('Small or large!');
        WriteLn('Which is it?');
      end else
      begin
        WriteLn('Somewhere in the middle!');
        WriteLn('But where...');
      end;
    end;
    
    begin
      ClearDebug,
      RandomFunction;
    end.

    Error: [Error] (13:3): Semicolon (';') expected at line 12
    Compiling failed.



    But there's clearly a semicolon there, am I doing something wrong somewhere else in my code? I can't find the mistake.
    That error refers to the line of code that comes before (not including white spaces) the highlighted line. That should help.

    Also, you can use [SIMBA][ /SIMBA] (without the space) tags to post Simba code.
    Last edited by Coh3n; 04-03-2013 at 02:43 PM.

  20. #245
    Join Date
    Apr 2013
    Location
    Belgium
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    That error refers to the line of code that comes before (not including white spaces) the highlighted line. That should help.

    Also, you can use [SIMBA][ /SIMBA] (without the space) tags to post Simba code.
    Oh, haha. Silly mistake. I actually already finished your tutorial, but thanks anyway.
    Use the "Reply With Quote" option when responding to my posts so that I get a notification, otherwise I won't respond.

  21. #246
    Join Date
    Mar 2013
    Location
    India
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Simba Code:
    program WhileDoExample;

    procedure WhileDoExample;
    var
      count: Integer;
    begin
      while (Count <> 5) do // See how the condition is the opposite of what you want? You want the script to end when Count = 5, so while Count doesn't equal 5, do this (<> means "doesn't equal")
      begin
        Inc(Count);
        Wait(500);
        WriteLn('The count is ' + IntToStr(Count) + '.');
      end;
    end;

    begin
      ClearDebug;
      WhileDoExample;
    end.

    I see that Count is undeclared. Does this mean that an undeclared integer takes the value of 0 ?

  22. #247
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Yes, it does. Count is declared as an integer and it's initial value is set to zero.

  23. #248
    Join Date
    Jan 2012
    Posts
    85
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    So excited to get home and try this out!
    <3

  24. #249
    Join Date
    Apr 2013
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Thanks a lot for your hard work on this guide. It really helped me understand this language more. I first was inspired to learn this language 1) because I wanted to know how to fix and edit existing scripts to fit my needs, and also eventually make my own scripts and give back to the community.

    Thanks again,
    Phat808

  25. #250
    Join Date
    May 2013
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    mHOW long will it take till i can make simba scripts >_> I wanna make a barb agility 9_9, A fisher, TRee chopper and banker 6_6. I understand the loops i mean i cant write them but by reading it I understand everything of the information that you stated.

Page 10 of 12 FirstFirst ... 89101112 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
  •