SphereCommunity
timerdf - Printable Version

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



timerdf - ChaveS - 12-06-2012 04:36 PM

i was missing i timerf function with decimals

a simple timerdf function:
Code:
[function timerdf]
serv.newitem i_timerdf
new.attr 090
new.p <p>
new.link <uid>
new.name <argv[1]>
new.timerd <argv[0]>

[itemdef i_timerdf]
id=i_virtstone_6
on=@timer
try uid.<link.uid>.<name>
remove
return 1


usage
timerdf XX,function

ie timerdf 5,say aaa

to Say aaa after half second


RE: timerdf - Mordaunt - 12-07-2012 02:20 AM

I thought that there was a hardcoded function that did this, like timerf. Turns out I was wrong. Nice work around.