Results 1 to 2 of 2

Thread: Spelling Error

  1. #1
    Join Date
    Dec 2011
    Posts
    484
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Spelling Error

    http://villavu.com/forum/showthread.php?t=58935


    Under "Putting It All Together" declaring is spelled wrong. It is not spelled "declareing". It is done twice.


    These are in chronological order.




    Simba Code:
    begin
      if (Condition) then // Notice the intent after a "begin" statement
      begin // Notice how the begin lines up with "if" in columns
        DoThis;
      end else
      begin
        DoThis;
      end;
    end;

    It should say "indent" not "intent" I believe.

    Simba Code:
    program InternalCommandsExample;

    function RepeatUntil: Boolean;
    var
      count: Integer;
    begin
      repeat
        if (Random(100) > 75) then
        begin
          Writeln('Greater than 75!');
          Exit; // See how it will exit if the random number is greater than 75?
        end else
          Writeln('Less than or equil to 75!');

        Inc(count);
      until(count = 10); // If no number is greater than 75, it will repeat 10 times
    end;

    procedure ForToDo;
    var
      count: Integer;
    begin
      for count := 1 to 10 do
      begin
        if (count = 5) then
          Continue; // You'll notice that when count equals 5, nothing gets written to the debug box

        Writeln('Count does not equal 5! Count = ' + IntToStr(count));
      end;
    end;

    procedure WhileDo;
    var
      count: Integer;
    begin
      while (count < 100) do
      begin
        if (count >= 10) then
          Break; // See how it will break out of the loop if the count is greater than or equal to 10?

        Writeln('Count is less than 10!'); // This will not be written if count is greater than or equal to 10 because we broke out of the loop
        Inc(count); // Can't forget this, otherwise we'll have an infinite loop; take it out and run the script
      end;
    end;

    begin
      ClearDebug;
      RepeatUntil;
      ForToDo;
      WhileDo;
    end.

    "equal" is spelled wrong as "equil".

    "Writeln('Less than or equil to 75!');"

    Under "The SRL Include":

    Remember at the start of the guide when I said you needed to download SRL properly? Well here is why... SRL is comprised of all sorts of functions/procedures available for you to use. Each of them make you scripting life easier. In order to use these handy functions, you have to include and setup SRL in your script. You can do so by setting up you script like this:

    It should say "Each of them make your scripting life easier"

    Simba Code:
    program FailsafesExample;
    {.include SRL/SRL.scar}

    procedure FailsafeExample;
    var
      x, y : Integer;
    begin
      if FindColor(x, y, 2167538, MSX1, MSY1, MSX2, MSY2) then // If the color (2167538) is found, the coordinates of where it was found is stored in the variables (x, y).
        MMouse(x, y, 4, 4) // Moves the mouse to x, y; 4, 4 is the randomness on x, y
      else

      begin
        Wait(1000); // Remember 1000ms = 1s
        Writeln('First FindColor failed, trying second...');
        if FindColor(x, y, 3652378, MMX1, MMY1, MMX2, MMY2) then
          Mouse(x, y, 4, 4, True) // This moves AND left clicks the mouse with randomness 4, 4; 'True' = Left click; 'False' = Right click
        else

        begin
          Wait(1000);
          Writeln('Second FindColor failed, trying third...');
          if FindColor(x, y, 4981245, MIX1, MIY1, MIX2, MIY2) then
            MMouse(x, y, 4, 4)
          else

          begin
            Wait(1000);
            Writeln('Third FindColor failed, trying forth...');
            if FindColor(x, y, 6478356, MCX1, MCY1, MCX2, MCY2) then
              Mouse(x, y, 4, 4, True)
            else

            begin
              Wait(1000);
              Writeln('Forth FindColors failed, logging out');
              Logout; // This is pretty straight forward, it logs your player out
            end;
          end;
        end;
      end;
    end; // There are so many 'end's because each begin has to have an end, otherwise you will get an "Identifier expected..." error

    begin
      ClearDebug;
      FailsafeExample;
    end.

    Where it says "trying forth" it should say "trying fourth".

    No problem. I am learning so much right now. If it stays this clear and easy to understand I might have a script out in a few days.

    Under "Antiban and AntiRandoms"


    "The only think you have to do is add one line of code."

    "think" should be "thing"

    "Any other rewards can easily be added. This line will randomly choose one of the options when a reward box is opened. The 'Xp' option is the option to get a gene lamp."

    Under Antirandoms, "gene' should be "genie".


    "Well, that's it for Antiban and AntiRandoms. Every script you write for RuneScape should include both of these. These significantly decrease your changes at a ban"

    "changes" should be "chances"

    In the conclusion:
    "Remember to always ask questions if you're unsure about something. I have no problem giving a more detailed explanation on something if you need it. Don't be afraid to post your questions and either I or someone else from the community will replay as soon as possible."

    "replay" should be "reply"
    Last edited by Grihmm; 12-29-2011 at 09:07 AM. Reason: Tidying up my double posts.

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    =D Thanks for finding and pointing all of these out, someone should get to them shortly.

    You put it in simba tags so only key simba words are bolded, try using different tags.

    Why not just keep editing the first post with all of the new findings please? ;D
    Last edited by YoHoJo; 12-29-2011 at 09:45 AM.

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
  •