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
Real Time
Author Message
Alias
Journeyman
*

Posts: 107
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #6
RE: Real Time
(05-21-2012 07:59 PM)admin phoenix Wrote:  you have got the problem that your sector will sleep after some time if no one enter the sector.
this means that your timer will not count anymore.
and if you have 1000 of this spawns you will have 1000 timer more on your shard.
with the onserver_timer function you can check (maybe) every 5 min. if the time has come and it is 16:00 o'clock.
if this is true make and foritems loop and let´s spawn the monsters.
that´s for me, the best solution but maybe others will also work.

with the method I controll my headhunter system.
every saturday at 17:00 o'clock the headhunter system restarts on my server.

it works very good.
ok tyvm 4 idea, but will this work ?

[function f_onserver_timer]
IF STRMATCH("*16:00","<rtime.hoursek>")
serv.newitem i_bandage
NEW.P = 4304,984
NEW.UPDATE
RETURN 1
ENDIF
05-21-2012 09:49 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Real Time - Alias - 05-19-2012, 06:00 PM
RE: Real Time - Crusader - 05-19-2012, 06:26 PM
RE: Real Time - admin phoenix - 05-20-2012, 01:23 AM
RE: Real Time - Alias - 05-21-2012, 06:14 PM
RE: Real Time - admin phoenix - 05-21-2012, 07:59 PM
RE: Real Time - Alias - 05-21-2012 09:49 PM
RE: Real Time - admin phoenix - 05-21-2012, 10:25 PM
RE: Real Time - Alias - 05-21-2012, 11:43 PM
RE: Real Time - Alias - 05-24-2012, 05:11 PM
RE: Real Time - admin phoenix - 05-24-2012, 07:57 PM
RE: Real Time - Alias - 05-24-2012, 10:18 PM
RE: Real Time - admin phoenix - 05-24-2012, 10:39 PM
RE: Real Time - Alias - 05-24-2012, 11:23 PM
RE: Real Time - admin phoenix - 05-24-2012, 11:52 PM
RE: Real Time - Alias - 05-25-2012, 12:08 AM
RE: Real Time - admin phoenix - 05-25-2012, 01:21 AM
RE: Real Time - Alias - 05-25-2012, 01:59 AM

Forum Jump:


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