SphereCommunity
-kill unlogged and -kill logged - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Requests (/Forum-Script-Requests)
+--- Thread: -kill unlogged and -kill logged (/Thread-kill-unlogged-and-kill-logged)



-kill unlogged and -kill logged - Lazarus - 12-07-2012 12:10 PM

Hi!

I want to change something that i don't know if it works only bad for me Sad

The KILLS in my shard only get decay [down] when the character is ONLINE using the line in sphere.ini :

Code:
// Seconds time to decay a murder count
MurderDecayTime=5*60*60


This only works if the character is online.
So, I wanna do something like: If it is online, the character get dropped the murderdecaytime of sphere.ini time.

If it's offline, the character get's dropped every another time Shock [Like 8 hours online and 15 hours offline]


any idea? Using a item memory it's the way that I will do it, but, it's better any other way?

Thanks

Lazarus.


RE: -kill unlogged and -kill logged - Mordaunt - 12-07-2012 12:14 PM

f_onserver_timer would be a better way to handle offline players.


RE: -kill unlogged and -kill logged - Lazarus - 12-07-2012 01:08 PM

(12-07-2012 12:14 PM)Mordaunt Wrote:  f_onserver_timer would be a better way to handle offline players.

forallclients?
-kill? haha


RE: -kill unlogged and -kill logged - Mordaunt - 12-07-2012 10:26 PM

No.... use it as the timer to run a function.

Obviously you would isolate it to those offline with murderer counts.