Results 1 to 15 of 15

Thread: Option to use SCSS in scripts.

  1. #1
    Join Date
    Jul 2007
    Location
    England
    Posts
    86
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Option to use SCSS in scripts.

    Hey,

    This funky, little procedure will load SCSS, Load a world with the least players in and set the handle, Only if the declared constant is set to true, If false it will just carry on as if it wasn't there.

    I made this procedure for my script. But I thought I might as well share it with you guys. You can use it, just remember to credit me. Here it is as an example for you to use.

    Example

    SCAR Code:
    program UseSCSSExample;

    {.include SRL/SRL.scar}

    const
      UseSCSS = True; // Set to True if you would like to use SCSS.

    procedure SetupSCSS;
    begin
      Writeln('UseSCSS; is set to true, Loading SCSS...');
      Wait(2000);
      if OpenSCSS then
      begin
        Writeln('Loading world with least players in.');
        SCSSLoadLeast(False, True);
      end;
    end;

    begin
      SetUpSRL;
      if UseSCSS then
        SetupSCSS;
    end.

    -Nitro

  2. #2
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Good job.
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  3. #3
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Kewlishnes?


    Methinks I like it.
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  4. #4
    Join Date
    May 2007
    Location
    Seattle
    Posts
    1,069
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    NICE! Will use right now.

    EDIT: Doesn't work
    FORMERLY BORN2CODE | Play Internet Games
    http://img147.imageshack.us/img147/2084/sigg.png

  5. #5
    Join Date
    Aug 2007
    Posts
    282
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program UseSCSSExample;

    {.include SRL/SRL.scar}

    const
      UseSCSS = True; // Set to True if you would like to use SCSS.

    procedure SetupSCSS;
    begin
      if UseSCSS then
      begin
        Writeln('UseSCSS; is set to true, Loading SCSS...');
        Wait(2000);
        if OpenSCSS then
        begin
          Writeln('Loading world with least players in.');
          SCSSLoadLeast(False, True);
        end;
      end;
    end;

    begin
      SetUpSRL;
      SetupSCSS;
    end.

    thats easier for users to put into their script

    good procedure though

  6. #6
    Join Date
    May 2007
    Location
    Seattle
    Posts
    1,069
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Edit: Nvm! Works
    FORMERLY BORN2CODE | Play Internet Games
    http://img147.imageshack.us/img147/2084/sigg.png

  7. #7
    Join Date
    Nov 2006
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    bewarned, use scss only with java 1.5.something 1.6 will crash sometimes during worldswitching(not first time you load but it happens sometimes after that)
    Infractions, reputation, reflection, the dark side of scripting, they are.

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

    Default

    I dont know if the part i put works, i just used what he had

  9. #9
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    And on some computers (like one of mine...), SCSS doesn't allow compass rotation

  10. #10
    Join Date
    Aug 2007
    Location
    England
    Posts
    734
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCSS works good on mine and its just genrally handy so thanks
    The truth finally came out...


  11. #11
    Join Date
    Dec 2006
    Posts
    173
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Cool, I'm going to try to use it in my next script. I'll give proper credits if I use it....

    OffTopic: SCSS does not work on my computer, so I cant use it.
    Starting to merchant, if you know of any good clans, PM me please.

  12. #12
    Join Date
    Oct 2006
    Location
    I'm a figment of your imagination
    Posts
    422
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Doesn't work. When I include SCSS - total failure of SCSS.scar:
    Code:
    Line 67: [Error] (12303:1): Unknown identifier 'ChangeFPHandle' in script C:\Program Files\SCAR 3.11\includes\SRL/SRL/misc/SCSS.scar
    Using SRL 4.0 BETA.

    It's been a while... but I'm BACK!!!

  13. #13
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yep, the SRL Devs know about that bug botmaster. I hope it will be fixed in the official release of SRL 4.0. (im sure it will be)

  14. #14
    Join Date
    Oct 2006
    Posts
    334
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    do you know if there is a temporary fix for that error?
    i can't run anything because it finds that error in line 67 of SCSS.SCAR.

  15. #15
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Umm, i think there is.. but im not sure.. Use the search button.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Is there a wait option in C++?
    By Rs-Gp-4U in forum C/C++ Help and Tutorials
    Replies: 13
    Last Post: 03-06-2008, 09:01 PM
  2. Won't Click Option..
    By Home in forum OSR Help
    Replies: 6
    Last Post: 01-17-2008, 03:40 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
  •