Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
timerd problem. (56d-Nightly)
Author Message
Satvet
Journeyman
*

Posts: 87
Likes Given: 31
Likes Received: 6 in 6 posts
Joined: Sep 2015
Reputation: 0



Post: #1
timerd problem. (56d-Nightly)
"timerd" does not work on the item on the character. (56d-Nightly)
but there is no such problem in "56d-X", it works properly.
How "timerd" works like "56d-X"?

Errors triggers success.
02-04-2020 11:04 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 958
Likes Given: 5
Likes Received: 222 in 184 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: timerd problem. (56d-Nightly)
I'm testing here using this code, and its working fine

Code:
[TYPEDEF t_test_timer] // usage: just type ".xevents +t_test_timer" or ".xtype t_test_item" and then ".xtimerd 10"
ON=@Timer
say timer
return 1

But note that sphere internal engine must loop through all objects on world to keep updating the timer of each one, and its not a good idea loop through many hundreds/millions of items 10x per second (TIMERD), so sphere only uses TIMERD on chars, and TIMER on items. You can set TIMERD on items but it will automatically drop the precision (eg: TIMERD=22 will turn into TIMER=2)
02-06-2020 07:14 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)

This forum uses Lukasz Tkacz MyBB addons.