Results 1 to 7 of 7

Thread: Simba Script Shell

  1. #1
    Join Date
    May 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Lightbulb Simba Script Shell

    Here's a shell I use when writing scripts. Instead of having to retype alot, I just save this to a file and save as a different name. This has Antiban, Login, Player setup.

    program SCRIPTNAME;
    {$DEFINE SMART}
    {$i srl/srl.simba}

    Procedure DeclarePlayers;
    begin
    HowManyPlayers := 1;
    NumberOfPlayers(HowManyPlayers);
    CurrentPlayer := 0;

    Players[0].Name :=''; // Account Name
    Players[0].Pass :=''; // Account Password
    Players[0].Nick :=''; // Account Nickname - example Imanoobbot -> 'mano'
    Players[0].Active:=True;

    end;

    procedure AntiBan;
    begin
    if(not(LoggedIn))then
    Exit;
    case Random(100) of
    0:
    begin
    HoverSkill('', false); // EDIT: put a skill name in the single quotes.
    wait(2453+Random(432));
    end;
    1: PickUpMouse;
    2:
    begin
    MakeCompass('N');
    wait(100+random(133));
    MakeCompass('S');
    wait(50+random(133));
    MakeCompass('N');
    end;
    end;
    end;
    begin
    DeclarePlayers;
    LoginPlayer;
    repeat



    Antiban;
    until(not(loggedin));

    end.

  2. #2
    Join Date
    Jan 2008
    Location
    10° north of Hell
    Posts
    2,035
    Mentioned
    65 Post(s)
    Quoted
    164 Post(s)

    Default

    Use simba tags...
    [simba][/simba]

    Also shell isn't the word I'd use, I'd say template...

    Dg's Small Procedures | IRC Quotes
    Thank Wishlah for my nice new avatar!
    Quote Originally Posted by IRC
    [22:12:05] <Dgby714> Im agnostic
    [22:12:36] <Blumblebee> :O ...you can read minds

  3. #3
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Skeleton would be an even better word to use...

    Also, cleaned it up a bit:
    Simba Code:
    program SCRIPTNAME;
    {$DEFINE SMART}
    {$i srl/srl.simba}

    Procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name :=''; // Account Name
      Players[0].Pass :=''; // Account Password
      Players[0].Nick :=''; // Account Nickname - example Imanoobbot -> 'mano'
      Players[0].Active:=True;
    end;

    procedure AntiBan;
    begin
      if (not LoggedIn)then Exit;
      case Random(100) of

        0: begin
             HoverSkill('', false); // EDIT: put a skill name in the single quotes.
             wait(2453+Random(432));
           end;

        1: PickUpMouse;

        2: begin
             MakeCompass('N');
             wait(100+random(133));
             MakeCompass('S');
             wait(50+random(133));
             MakeCompass('N');
           end;

      end;
    end;


    begin
      ClearDebug;
      SetUpSRl;
      DeclarePlayers;
      if not(LoggedIn) then
        LoginPlayer;
    end.
    Last edited by Abu; 05-14-2012 at 06:22 AM.

  4. #4
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Dgby714 View Post
    Use simba tags...
    [simba][/simba]

    Also shell isn't the word I'd use, I'd say template...
    A feature Simba definitely needs.
    I am Ggzz..
    Hackintosher

  5. #5
    Join Date
    May 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    doesnt it have this tho? it has save as default. so when you open a new scrip it already has all it typed in. i think all you do is put all that in then save as default

  6. #6
    Join Date
    Jan 2009
    Location
    radplaneservices@hush.com
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by abundances View Post
    doesnt it have this tho? it has save as default. so when you open a new scrip it already has all it typed in. i think all you do is put all that in then save as default
    Im guessing hes referning to a different theme/look like [code] for boards, Or more likely it would add it to the Library (...or extention/engine? lol). You could make your own extension/include file and would only need to include it with its name like you do SRL and others (EX: '{$i srl/srl.simba} //Enables SRL for script) but would the user would have to add it.

    I made a copy cat almost of scar learning c++. Had a findColorSpiral(return success as (no, yes). It seemed like (way) too much towards the beginning to wrap my head around easily at all, But the learning curve dropped fast In my Experience, Very quick to get use too it like normal basic scripting. Much more efficent than I would of imagined.

    SRL is pretty much the same thing, building blocks that can get very high.

  7. #7
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Quote Originally Posted by abundances View Post
    doesnt it have this tho? it has save as default. so when you open a new scrip it already has all it typed in. i think all you do is put all that in then save as default
    That's what he meant - 'save this as your default script'

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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