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
Strain.
Author Message
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #5
RE: Strain.
I'm thinking in about something like this:
One handler that have a timer, 60 seconds, and send serv.allclients a function to check if where the player is with the right environ. The first time, the script looks what should be the environ in the moment and set it and set one tag in the region/sector i don't know, preventing it to get evaluated again for some time.

Example:

Code:
[ITEMDEF BLA BLA]
ON=@TIMER
SERV.ALLCLIENTS TIMERF <R10>,F_CHECK_ENVIRON
TIMER 60
RETURN 1

[FUNCTION F_CHECK_ENVIRON]
IF <REGION.TAG.CHECKED> && <SECTOR.TAG.CHECKED> // Can we set tag in sector?
RETURN 1
ENDIF

// It's not checked for some time then check it and set
// Now preventing it be rechecked in few time

REGION.TAG.CHECKED 1
SECTOR.TAG.CHECKED 1 // ?? =D
TIMERF <R30,45>,REGION.TAG.CHECKED 0
TIMERF <R30,45>,SECTOR.TAG.CHECKED 0 // ??
Assuming that lots of sector/regions will not update everytime unless players are there.
If 2+ players in the same sector/region, it will be checked only one time.

This is the best idea that I had.
Using the 'serv.rtime' would be very very nice too.
Right now we need get USE for the GameMinuteLength in sphere.ini =D

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
08-17-2012 02:32 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Strain. - Mordaunt - 08-17-2012, 01:15 PM
RE: Strain. - Shaklaban - 08-17-2012, 01:44 PM
RE: Strain. - Mordaunt - 08-17-2012, 01:52 PM
RE: Strain. - Shaklaban - 08-17-2012, 02:00 PM
RE: Strain. - Extreme - 08-17-2012 02:32 PM
RE: Strain. - RanXerox - 08-18-2012, 01:00 AM
RE: Strain. - Extreme - 08-18-2012, 01:03 AM
RE: Strain. - Mordaunt - 08-18-2012, 03:19 AM
RE: Strain. - Mordaunt - 08-18-2012, 05:32 AM
RE: Strain. - Extreme - 08-18-2012, 09:43 AM
RE: Strain. - Anarch Cassius - 08-18-2012, 01:46 PM
RE: Strain. - Mordaunt - 08-19-2012, 03:33 AM
RE: Strain. - Extreme - 08-19-2012, 06:11 AM

Forum Jump:


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