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
Couple of questions about TIMER
Author Message
Murmur
Apprentice
*

Posts: 33
Likes Given: 3
Likes Received: 2 in 2 posts
Joined: Feb 2013
Reputation: 0



Post: #1
Couple of questions about TIMER
First, I want to thank everyone for helping me out on my project.

Question number one about TIMER is: Is there a way to use a FLOAT value in a TIMER argument?

Such as this original code for an item I have:

Code:
TIMER <EVAL {1 2}>

My newbieness tells me that I could use:

Code:
TIMER <FLOATVAL {0.1 0.2}>

But it doesn't work, I'm guessing I'm either using bad syntax or there is some sort of 'tick' going on behind the scenes that prevents anything happening faster than 1 second on TIMER

The second question I have about TIMER is: I have ideas for a ton of fun items that would require TIMER on a vast amount of them. Before I fleshed out all the ITEMDEFs for them, I wanted to make sure that I'm not doomed to fail with like 1000+ items equipped on different players all with TIMERs running. Is there any known issues with this?

As always, I appreciate your time everyone.

Thanks, -Murmur

*you glance to your left to a region you just surveyed... you glimpse a magical being, more shadow than substance, caught midway in transformation... the figure smiles, the corners of his mouth jut upwards slightly on the edges, suddenly stretched to a length not at all human...*
05-04-2017 05:01 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: Couple of questions about TIMER
TIMER can use only integer numbers like -1, 0, 1, 231564654, etc. But you can also use TIMERD which uses timer in tenths of sec (eg: TIMERD=17 -> 1.7s)

items with active timer can consume a bit more CPU/RAM than items with inactive timer, but there's no problem to do it as long as your server have enough hardware to handle this
05-05-2017 02:47 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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