Hi all
Usually, we have lightlevel limit as 0-30. As I guess, its built-in value.
Anybody know how change this contraint?
I dont find any in server files or ultima sdk.
thanks
Lightlevel restrictions
Moderator: POL Developer
Re: Lightlevel restrictions
what do you mean? what exactly you wanna change?
0-30 are values accepted by client.
0-30 are values accepted by client.
Re: Lightlevel restrictions
i need whole darknesswhat do you mean? what exactly you wanna change?
i know. so my question is - how to ignore it ( or simulate darkness another way )0-30 are values accepted by client.
Re: Lightlevel restrictions
Firstly it's important to know that the light level function of UO is clientside and that even if you get the server to tell the player to have light set to as dark as possible, and they are running something like Razor or Injection then the player can force their own light level and won't see the darkness anyway.
With that said to do it from within a script you're looking at the character object and for this example i'm going to use mobile as the object reference.
You'd want to use the setlightlevel( level, duration) method which can be done by
Hope this helps.
With that said to do it from within a script you're looking at the character object and for this example i'm going to use mobile as the object reference.
You'd want to use the setlightlevel( level, duration) method which can be done by
Code: Select all
if( condition == true )
mobile.setlightlevel(30, 10000);
endif
Re: Lightlevel restrictions
Also regions.cfg has a light level setting as well. If you're need is to set a light level for a particular region then that might work for you too.