Lightlevel restrictions

Here you can post threads specific to the current release of the core (099)

Moderator: POL Developer

Post Reply
az_rieil
New User
Posts: 11
Joined: Tue Jan 24, 2017 1:46 am

Lightlevel restrictions

Post 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
RusseL
Forum Regular
Posts: 375
Joined: Fri Feb 20, 2009 8:30 pm

Re: Lightlevel restrictions

Post by RusseL »

what do you mean? what exactly you wanna change?
0-30 are values accepted by client.
az_rieil
New User
Posts: 11
Joined: Tue Jan 24, 2017 1:46 am

Re: Lightlevel restrictions

Post 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 )
DevGIB
Grandmaster Poster
Posts: 248
Joined: Mon Feb 06, 2006 6:12 am

Re: Lightlevel restrictions

Post 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.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Lightlevel restrictions

Post 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.
Post Reply