SphereCommunity
Timer/memory - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Timer/memory (/Thread-Timer-memory)

Pages: 1 2


RE: Timer/memory - Mordaunt - 09-13-2012 09:59 PM

Of course he can... I merely suggested a way to take over offline gains. While nonlinear your regular timer mechanism would handle gains


RE: Timer/memory - Gil Amarth - 09-14-2012 05:00 AM

And that is what my script do, I use more2 of the timer like a tag because is a empty unused space of memory, and later check how many serv.time has passed.

There is a few secure conditions like checking if there was a clean logout (crashes could cause problems, no @logout fires), and secure if serv.time has been reset to zero (serv.time goes automatically to zero in loooong periods of time, like 6 months).
And set the timer to -1 when you logout, for not add that time your character lingers in the worlds, before disappears.

All my script is how handle a timer with serv.time