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
Daytime and lightlevel question
Author Message
Khizag
Apprentice
*

Posts: 11
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2012
Reputation: 0



Post: #10
RE: Daytime and lightlevel question
Hmm... I'm here again...

So, I've defined my region:
Code:
[AREADEF a_lightband_5]
NAME=lightband5
GROUP=Lightbands
P=4590,100,5,0
RECT=4081,0,5120,4096,0

And a function that should bring the night all over this region

Code:
[FUNCTION f_world_light_update]
SERV.AREA.a_lightband_5.SECTORS LIGHT 25

But when I try to use this test item:
Code:
[ITEMDEF i_light_update]
ID=i_crystal_ball
TYPE=t_normal
NAME=Light update

ON=@Dclick
    f_world_light_update
        SRC.GO <SERV.AREA.a_lightband_5.P>
    SRC.SAY DEBUG: <SERV.AREA.a_lightband_5.P>
    RETURN 1

The light remains the same. The PG goes at the right position and says "DEBUG: 4590,100,5" but but no light changes... where is the problem?

Ah, and there aren't errors in the log.
(This post was last modified: 06-22-2012 08:13 AM by Khizag.)
06-22-2012 08:10 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Daytime and lightlevel question - Khizag - 06-15-2012, 06:52 PM
RE: Daytime and lightlevel question - Khizag - 06-22-2012 08:10 AM

Forum Jump:


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