Page 1 of 1

timer datatype doesn't count down

Posted: Thu May 18, 2006 10:48 am
by iluvseq
The timer datatype doesn't tick down, it just stays set to whatever value you set it.

Is there another (maybe built into IS?) datatype to server the same function?

Posted: Fri Jul 28, 2006 6:27 am
by Kroak
Having the same problem. To test and make sure I wasn't imagining it I made a small looping script that would echo the timer's value. Looks like this is the main reason most of the script I've been trying out for botting doesn't work.

Code: Select all

	function main()
	{
	  DeclareVariable AssistTimer timer script
	  AssistTimer:Set[100]
	  while 1	
	   {
	       echo ${AssistTimer}
	       wait 1
	   }
	}	
Unless I'm messed up, that should show me some kind of countdown, but doesn't. This is putting the biggest damper on scripts like autobot. (lotsa timers in it.) Doesn't error out, just never incrememts.
Unless there's another way to use it that I haven't seen.

Posted: Fri Jul 28, 2006 8:38 am
by bardomatic
I believe it's actually in the process of being removed

Posted: Fri Jul 28, 2006 8:57 am
by Lax
The timer datatype was not intended to be available in ISXEQ -- and a timer certainly has nothing to do with EQ, so it would be available in LavishScript itself instead. You can get millisecond-resolution timing by using ${Script.RunningTime}.

Posted: Fri Jul 28, 2006 9:11 am
by Kroak
TY for the reply. Helps a lot to know it isn't just busted just not there.. :)
Kinda sad though. 90% of the scripts I see here have timers in them.