The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
light to an area?
Author Message
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #1
light to an area?
how do i make it bright to this area?

Code:
[AREADEF a_hotaka_plains]
NAME=The Army Recruiter's House
GROUP=Tokuno Islands
P=1235,771,3,4
RECT=1223,753,1248,776,4
FLAGS=region_flag_nobuilding|region_flag_underground
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass
REGION.SECTORS LIGHT 0    ????

Dragons of Time 2000-2020
http://dragonsoftime.com
01-07-2015 02:54 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: light to an area?
There's no way to do that since Light is a Sector's property and one Region can hold the 80% of one Sector and another Region the other 20% ... so the only way to to that is to manually change that sector's light ingame and then saving the world (light will be stored in spheredata.scp)
01-08-2015 01:48 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #3
RE: light to an area?
command?

Dragons of Time 2000-2020
http://dragonsoftime.com
01-08-2015 03:54 AM
Find all posts by this user Like Post Quote this message in a reply
karma
Moderator
****

Posts: 178
Likes Given: 17
Likes Received: 32 in 29 posts
Joined: Jul 2012
Reputation: 3



Post: #4
RE: light to an area?
Consider using @EnvironChange (which fires also when a char enters a sector) and SECTOR.LIGHT=x (don't remember if you need to do this with TIMERF like TIMERF 1, SECTOR.LIGHT= 1 or SECTOR.TIMERF 1, LIGHT=x; time ago without it the server crashed).
If you want to change the whole map light, use MAP.<MAP>.ALLSECTORS LIGHT=x
01-08-2015 04:44 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)