Page 1 of 1

Lightlevel restrictions

Posted: Thu Jul 13, 2017 3:41 am
by az_rieil
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

Re: Lightlevel restrictions

Posted: Thu Jul 13, 2017 5:08 am
by RusseL
what do you mean? what exactly you wanna change?
0-30 are values accepted by client.

Re: Lightlevel restrictions

Posted: Thu Jul 13, 2017 5:18 am
by az_rieil
what do you mean? what exactly you wanna change?
i need whole darkness
0-30 are values accepted by client.
i know. so my question is - how to ignore it ( or simulate darkness another way )

Re: Lightlevel restrictions

Posted: Thu Jul 13, 2017 3:02 pm
by DevGIB
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

Code: Select all

if( condition == true )
mobile.setlightlevel(30, 10000);
endif
Hope this helps.

Re: Lightlevel restrictions

Posted: Thu Jul 13, 2017 7:46 pm
by Yukiko
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.