Checking timers via scripts

Posted by Neverwhere on Wed 16 Oct 2002 03:45 PM — 4 posts, 16,616 views.

USA #0
Ok, when I have scripts running is there a way to tell how long the time has been going for? like /CheckAura or something?

I want to have it show that on the world using world.send "XXX", but i cant figure out howto call it from the mud
Australia Forum Administrator #1
Look at the scripting function GetTimerInfo. Selector 11 gives you the date/time the timer last fired.
USA #2
I want how long it has been firing for.. Since the GetTimerInfo where it says when it last fired gets updated every second (which is when the timer fires), that wont work. If it was started at X time, how would i check it at Y time, which is before it expires.

Neverwhere
Australia Forum Administrator #3
GetTimerInfo also tells you the number of seconds until it will fire next. Is that not what you want? Say the timer fires every 60 seconds and it has 20 seconds to go, then it must have been active for 40 seconds.