Lightlevel restrictions

Here you can post threads on the development of the current beta releases 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 » Thu Jul 13, 2017 3:41 am

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: 335
Joined: Fri Feb 20, 2009 8:30 pm

Re: Lightlevel restrictions

Post by RusseL » Thu Jul 13, 2017 5:08 am

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 » Thu Jul 13, 2017 5:18 am

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: 160
Joined: Mon Feb 06, 2006 6:12 am

Re: Lightlevel restrictions

Post by DevGIB » Thu Jul 13, 2017 3:02 pm

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: 2282
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Lightlevel restrictions

Post by Yukiko » Thu Jul 13, 2017 7:46 pm

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.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest