Nitro
08-08-2007, 08:57 AM
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
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
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
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