Just curious as to what the darkest light level that is allowed by POL. As I would like to darken the nights some to make NightSight (spell & Potion) have more worth, also make better use of torches, candles & lanterns. The way it is at the moment it does'nt get that dark, so the above mentioned hardly get used, if at all. I would like dungeons to be very very dark as they should be.
Also before adjusting light levels is there a way to standardize the light level of the whole world, world wide. So no matter where you are in the map the light level is the same, rather than walk cross the street in a town and its day on one side, cross the street and it's night on the other. Seen this alot on other shards.
To adjust light levels would I edit :- POL\Regions\light.cfg
- Code: Select all
# Note, regions found later in the file override those found earlier.
# default, over land and sea, is daylight
LightRegion Background
{
Range 0 0 5119 4095
LightLevel 0
}
# Divide the outside world into four time zones. This way darkness
# can pass somewhat gradually across the land.
#LightRegion TimeZone1
#{
# Range 0 0 1279 4095
# LightLevel 9
#}
#LightRegion TimeZone2
#{
# Range 1280 0 2559 4095
# LightLevel 0
#}
#LightRegion TimeZone3
#{
# Range 2560 0 3839 4095
# LightLevel Daylight
#}
#LightRegion TimeZone4
#{
# Range 3840 0 5119 4095
# LightLevel 9
#}
#
LightRegion CastleBlackthorne
{
Range 1500 1400 1550 1480
LightLevel 15
}
# Plunge the dungeons, and green acres, and the new lands (T2A), into darkness
LightRegion Dungeons
{
Range 5120 0 6143 4095
LightLevel 20
}
or do I edit :- \POL\pkg\world\daynight\daynight.scr
- Code: Select all
use uo;
use os;
Include "include/clock";
var daylight_brightness := GetGlobalProperty ("daylight_level");
if (!daylight_brightness)
daylight_brightness := 0;
endif
var nighttime_brightness := GetGlobalProperty ("nighttime_level");
if (!nighttime_brightness)
nighttime_brightness := 20;
endif
program DNCycle ()
var hour := GetHour();
while (1)
daylight_brightness := GetGlobalProperty ("daylight_level");
if (!daylight_brightness)
daylight_brightness := 0;
endif
nighttime_brightness := GetGlobalProperty ("nighttime_level");
if (!nighttime_brightness)
nighttime_brightness := 20;
endif
hour := GetHour();
if ( (hour >= 6) and (hour <= 20) )
Broadcast ("It is dawn.");
DawnTransition ();
SetRegionLightLevel ("Background", daylight_brightness);
repeat
sleep(60);
hour := GetHour ();
until ((hour < 6) or (hour > 20));
else
Broadcast ("It is dusk");
DuskTransition ();
SetRegionLightLevel ("Background", nighttime_brightness);
repeat
sleep (60);
hour := GetHour ();
until ((hour >= 6) and (hour <= 20));
endif
endwhile
endprogram
function DuskTransition()
var lightamt := daylight_brightness;
while (lightamt <= nighttime_brightness)
SetRegionLightLevel ("Background", lightamt);
lightamt := lightamt + 1;
sleep (3);
endwhile
endfunction
function DawnTransition()
var lightamt := nighttime_brightness - 1;
while (lightamt >= daylight_brightness)
SetRegionLightLevel ("Background", lightamt);
lightamt := lightamt - 1;
sleep (3);
endwhile
endfunction
What I am after is a true night, but also have the dungeons darker as well (more realistic).
As always, any advice/pointers would be greatly appreciated.
Peace Out.