Welcome to PenUltima Online. Click to login or register.

Functions:

SetRegionLightLevel( regionname, lightlevel )
Parameters:
Name Type
regionname String
lightlevel Integer (0..30)
Explanation
Sets the light level of a region by name.
Notes: lightlevel must be a value between 0 and 30 where 0 is daylight and 30 is near-total darkness. regionname must match a region name from REGIONS\LIGHT.CFG.
Return values
1 if the light level was set successfully
Errors
"Invalid Parameter type"
"Light Level is out of range"
"Light region not found"
Related Configs
light.cfg