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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Perishable food system
Author Message
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #1
Perishable food system
I have thinking a few different system to make the food perishable, but I don´t know if they are efficient or not.

a) Through f_onserver_timer
Launching a globar foritems searching fot type t_food, and aplying the food decay.
Very expensive in resources. Sad

b) Through container timer, and player timer. My players have already a permanent timer runing over them, so no problem to aplying the food decay over them every time the Timer fires.
Also, all containers would need to have a @TIMER event, which search food type, FORCONTTYPE, and aplying the food decay. Relatively fast.

I´d like the second option. Do you see any problems before script it? Or do you see a better option.

Thanks in advance. Smile
09-18-2012 06:38 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Perishable food system - Gil Amarth - 09-18-2012 06:38 AM
RE: Perishable food system - WRWR - 09-18-2012, 06:43 AM
RE: Perishable food system - Gil Amarth - 09-18-2012, 07:24 AM
RE: Perishable food system - WRWR - 09-18-2012, 08:09 AM
RE: Perishable food system - Gil Amarth - 09-18-2012, 07:47 PM
RE: Perishable food system - Skul - 09-19-2012, 06:28 AM

Forum Jump:


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