An admin only script so when you say /startdays it turns the sky of the map and makes it night, then after about 10 mins the sky it turns to a sunrise sky, also, a SunFX will move across the sky at a slow pace as it changes. Every time the sky changes a message to all the people in the chat area will appear that says "it is now Night!"
The console says that the problem is that there are 2 #'s signs in part of the script. Some sort of Syntax error. the part it's complaining about says it's like this:
}
ne##w sun() {
azimuth = "320";
elevation = "25";
color = "0.800000 0.800000 0.800000 1.000000";
ambient = "0.300000 0.300000 0.300000 1.000000";
}
When it's really this:
}
new sun() {
azimuth = "320";
elevation = "25";
color = "0.800000 0.800000 0.800000 1.000000";
ambient = "0.300000 0.300000 0.300000 1.000000";
}
This is my first script... I hope someone can help fix it D:
Written By:
Jaden
function startdays(%client)
{
if(!%client.isAdmin && !%client.isSuperAdmin)
{
centerPrint(%client, "You are not an admin.", 3);
return;
}
}
new Sky(Sky) {
position = "192 -56 0";
rotation = "1 0 0 0";
scale = "1 1 1";
materialList = "Add-Ons/Map_SlateEdits.zip/stars.dml";
cloudHeightPer[0] = "0.349971";
cloudHeightPer[1] = "0.3";
cloudHeightPer[2] = "0.199973";
cloudSpeed1 = "0.0005";
cloudSpeed2 = "0.001";
cloudSpeed3 = "0.0003";
visibleDistance = "1500";
fogDistance = "-1000";
fogColor = "0.800000 0.900000 0.900000 1.000000";
fogStorm1 = "0";
fogStorm2 = "0";
fogStorm3 = "0";
fogVolume1 = "0 0 0";
fogVolume2 = "0 0 0";
fogVolume3 = "0 0 0";
fogVolumeColor1 = "0.000000 0.000000 0.000000 1.000000";
fogVolumeColor2 = "0.000000 0.000000 0.000000 1.000000";
fogVolumeColor3 = "0.000000 0.000000 0.000000 1.000000";
windVelocity = "0.25 0.25 0";
windEffectPrecipitation = "1";
SkySolidColor = "0.600000 0.600000 0.600000 1.000000";
useSkyTextures = "1";
renderBottomTexture = "0";
noRenderBans = "0";
}
new sun() {
azimuth = "320";
elevation = "25";
color = "0.800000 0.800000 0.800000 1.000000";
ambient = "0.300000 0.300000 0.300000 1.000000";
}
new fxSunLight() {
position = "121 151 367";
rotation = "1 0 0 0";
scale = "1 1 1";
Enable = "1";
LocalFlareBitmap = "base/lighting/corona";
RemoteFlareBitmap = "base/lighting/corona2";
Sunational socialistmuth = "0";
SunElevation = "30";
LockToRealSun = "1";
FlareTP = "1";
Colour = "1.000000 0.300000 0.000000 1.000000";
Brightness = "1";
FlareSize = "1.1";
FadeTime = "0.1";
BlendMode = "0";
AnimColour = "0";
AnimBrightness = "0";
AnimRotation = "0";
AnimSize = "0";
AnimAzimuth = "0";
AnimElevation = "1";
LerpColour = "1";
LerpBrightness = "1";
LerpRotation = "1";
LerpSize = "1";
LerpAzimuth = "1";
LerpElevation = "1";
LinkFlareSize = "0";
SingleColourKeys = "1";
MinColour = "0.000000 0.000000 0.000000 1.000000";
MaxColour = "1.000000 1.000000 1.000000 1.000000";
MinBrightness = "0";
MaxBrightness = "1";
MinRotation = "0";
MaxRotation = "359";
minSize = "0.5";
MaxSize = "1";
Minational socialistmuth = "0";
MaxAzimuth = "360";
MinElevation = "-30";
MaxElevation = "210";
RedKeys = "AZA";
GreenKeys = "AZA";
BlueKeys = "AZA";
BrightnessKeys = "AZA";
RotationKeys = "AZA";
SizeKeys = "AZA";
AzimuthKeys = "AZ";
ElevationKeys = "AZ";
ColourTime = "5";
BrightnessTime = "5";
RotationTime = "5";
SizeTime = "5";
AzimuthTime = "250";
ElevationTime = "600";
}
function stopdays(%client)
{
if(!%client.isAdmin && !%client.isSuperAdmin)
{
centerPrint(%client, "You are not an admin.", 3);
return;
}
cancel($day.time);
}
if(%action $= "startdays"){
startdays(%client);
messageall("It is now night. Soon, the sun will rise, and a new day will begin");
messageclient(%client,"","\c6You have started the days.");
};
messageall(%all,"","\c6It is now " @ %day.time @ ".");
%all.SkyChange = schedule(700000,0,"SkyChange", %all);
if(%day.time $= "sunrise"){
new Sky(Sky) {
position = "192 -56 0";
rotation = "1 0 0 0";
scale = "1 1 1";
materialList = "base/data/skies/sunset/resource.dml"
cloudHeightPer[0] = "0.349971";
cloudHeightPer[1] = "0.3";
cloudHeightPer[2] = "0.199973";
cloudSpeed1 = "0.0005";
cloudSpeed2 = "0.001";
cloudSpeed3 = "0.0003";
visibleDistance = "1400";
fogDistance = "1000";
fogColor = "0.800000 0.600000 0.700000 1.000000";
fogStorm1 = "0";
fogStorm2 = "0";
fogStorm3 = "0";
fogVolume1 = "0 0 0";
fogVolume2 = "0 0 0";
fogVolume3 = "0 0 0";
fogVolumeColor1 = "0.000000 0.000000 0.000000 1.000000";
fogVolumeColor2 = "0.000000 0.000000 0.000000 1.000000";
fogVolumeColor3 = "0.000000 0.000000 0.000000 1.000000";
windVelocity = "0.25 0.25 0";
windEffectPrecipitation = "1";
SkySolidColor = "0.600000 0.600000 0.600000 1.000000";
useSkyTextures = "1";
renderBottomTexture = "0";
noRenderBans = "0";
}
new Sun() {
azimuth = "320";
elevation = "25";
color = "0.800000 0.800000 0.800000 1.000000";
ambient = "0.400000 0.300000 0.200000 1.000000";
}
}
else if(%day.time $= "Mid Day"){
new Sky(Sky) {
position = "192 -56 0";
rotation = "1 0 0 0";
scale = "1 1 1";
materialList = "base/data/skies/sky_blue2/resource.dml";
cloudHeightPer[0] = "0.349971";
cloudHeightPer[1] = "0.3";
cloudHeightPer[2] = "0.199973";
cloudSpeed1 = "0.0005";
cloudSpeed2 = "0.001";
cloudSpeed3 = "0.0003";
visibleDistance = "1500";
fogDistance = "1000";
fogColor = "0.800000 0.900000 0.900000 1.000000";
fogStorm1 = "0";
fogStorm2 = "0";
fogStorm3 = "0";
fogVolume1 = "0 0 0";
fogVolume2 = "0 0 0";
fogVolume3 = "0 0 0";
fogVolumeColor1 = "0.000000 0.000000 0.000000 1.000000";
fogVolumeColor2 = "0.000000 0.000000 0.000000 1.000000";
fogVolumeColor3 = "0.000000 0.000000 0.000000 1.000000";
windVelocity = "0.25 0.25 0";
windEffectPrecipitation = "1";
SkySolidColor = "0.600000 0.600000 0.600000 1.000000";
useSkyTextures = "1";
renderBottomTexture = "0";
noRenderBans = "0";
}
new Sun() {
azimuth = "220";
elevation = "40";
color = "0.800000 0.800000 0.900000 1.000000";
ambient = "0.300000 0.300000 0.500000 1.000000";
}
}
else if(%day.time $= "Sunset"){
new Sky(Sky) {
position = "192 -56 0";
rotation = "1 0 0 0";
scale = "1 1 1";
materialList = "base/data/skies/sunset/resource.dml"
cloudHeightPer[0] = "0.349971";
cloudHeightPer[1] = "0.3";
cloudHeightPer[2] = "0.199973";
cloudSpeed1 = "0.0005";
cloudSpeed2 = "0.001";
cloudSpeed3 = "0.0003";
visibleDistance = "1400";
fogDistance = "1000";
fogColor = "0.800000 0.600000 0.700000 1.000000";
fogStorm1 = "0";
fogStorm2 = "0";
fogStorm3 = "0";
fogVolume1 = "0 0 0";
fogVolume2 = "0 0 0";
fogVolume3 = "0 0 0";
fogVolumeColor1 = "0.000000 0.000000 0.000000 1.000000";
fogVolumeColor2 = "0.000000 0.000000 0.000000 1.000000";
fogVolumeColor3 = "0.000000 0.000000 0.000000 1.000000";
windVelocity = "0.25 0.25 0";
windEffectPrecipitation = "1";
SkySolidColor = "0.600000 0.600000 0.600000 1.000000";
useSkyTextures = "1";
renderBottomTexture = "0";
noRenderBans = "0";
}
new Sun() {
azimuth = "320";
elevation = "25";
color = "0.800000 0.800000 0.800000 1.000000";
ambient = "0.400000 0.300000 0.200000 1.000000";
}
}
else if(%day.time $= "Night"){
new Sky(Sky) {
position = "192 -56 0";
rotation = "1 0 0 0";
scale = "1 1 1";
materialList = "Add-Ons/Map_SlateEdits.zip/stars.dml";
cloudHeightPer[0] = "0.349971";
cloudHeightPer[1] = "0.3";
cloudHeightPer[2] = "0.199973";
cloudSpeed1 = "0.0005";
cloudSpeed2 = "0.001";
cloudSpeed3 = "0.0003";
visibleDistance = "1500";
fogDistance = "-1000";
fogColor = "0.800000 0.900000 0.900000 1.000000";
fogStorm1 = "0";
fogStorm2 = "0";
fogStorm3 = "0";
fogVolume1 = "0 0 0";
fogVolume2 = "0 0 0";
fogVolume3 = "0 0 0";
fogVolumeColor1 = "0.000000 0.000000 0.000000 1.000000";
fogVolumeColor2 = "0.000000 0.000000 0.000000 1.000000";
fogVolumeColor3 = "0.000000 0.000000 0.000000 1.000000";
windVelocity = "0.25 0.25 0";
windEffectPrecipitation = "1";
SkySolidColor = "0.600000 0.600000 0.600000 1.000000";
useSkyTextures = "1";
renderBottomTexture = "0";
noRenderBans = "0";
}
new sun() {
azimuth = "320";
elevation = "25";
color = "0.800000 0.800000 0.800000 1.000000";
ambient = "0.300000 0.300000 0.300000 1.000000";
}
}
if(%action $= "stopdays"){
stopdays(%client);
announce("The days have ended.");
}
activatepackage(Days);
(this is the file:)