|  | 
	
	
		| adamwalker Apprentice
 
 
 Joined: 12 Mar 2005
 Posts: 195
 
 
 | 
			
			  |  Posted: Thu Feb 08, 2007 2:05 pm 
 #alarm and %time
 
 |  
				| Anyone know how I can make a command fire 15 minutes after %time as a one off alarm. 
 ive been playin with the syntax and i cant work it out.
 
 so if time is Sunday November 5, 2006 7:39:48 pm...... it will create an alarm that will fire at 7:54:48.....
 
 thanks
 |  | 
	
	  |  | 
	
		|  | 
	
		| Taz GURU
 
 
 Joined: 28 Sep 2000
 Posts: 1395
 Location: United Kingdom
 
 | 
			
			  |  Posted: Thu Feb 08, 2007 3:12 pm 
 |  
				| #alarm infifteen {+15:00} {#noop do whatever you want here in 15 mins} 
 |  | 
	
	  | 
		    
			  | _________________ Taz :)
 |   |  | 
	
		|  | 
	
		| Arminas Wizard
 
 
 Joined: 11 Jul 2002
 Posts: 1265
 Location: USA
 
 | 
			
			  |  Posted: Thu Feb 08, 2007 3:41 pm 
 |  
				| This one should go off tonight at 9:04 pm your time. 
 Select all of the code in the box below copy it then paste it into the command line and hit enter.
 Then find the alarm in the settings editor and set the trigger ID to AlOnce.
 
 
 
 
	  | Code: |  
	  | #ALARM {20:04:00} {#if (%match( %time, "Thursday February 8, 2007 9:04:%d")=1) {#untrigger AlOnce;#gag;#alarm +15:00 {#say Alarm fired.}}} |  
 In Zmud there was a bug in the Alarm creation code if I exported and reimported this after having set the ID. I'll check it in cMud when I get home.
 
 Oddly enough if I used + for the time It would not trigger at the correct time but only wait that amount of time before firing.
 
 edit: Lol Taz posted while I was playing with it.
 |  | 
	
	  | 
		    
			  | _________________ Arminas, The Invisible horseman
 Windows 7 Pro 32 bit
 AMD 64 X2 2.51 Dual Core, 2 GB of Ram
 |   |  | 
	
		|  | 
	
		| Fang Xianfu GURU
 
  
 Joined: 26 Jan 2004
 Posts: 5155
 Location: United Kingdom
 
 | 
			
			  |  Posted: Thu Feb 08, 2007 4:53 pm 
 |  
				| Just a note, you can set Alarm IDs with the #ALARM command in the same way you can set trigger IDs with the #trig command, like in Taz' example. 
 |  | 
	
	  |  | 
	
		|  | 
	
		| adamwalker Apprentice
 
 
 Joined: 12 Mar 2005
 Posts: 195
 
 
 | 
			
			  |  Posted: Fri Feb 09, 2007 12:05 pm 
 |  
				| Got it to work! my dumb fault for gettin wrong syntax. case of RTFM on my part. soz! 
 Thanks again
 |  | 
	
	  |  | 
	
		|  | 
	
		| Taz GURU
 
 
 Joined: 28 Sep 2000
 Posts: 1395
 Location: United Kingdom
 
 | 
			
			  |  Posted: Fri Feb 09, 2007 2:31 pm 
 |  
				| Well don't worry because I farted about with %time and %float and %eval for a while before remembering that it wasn't that difficult to do direct with #alarm because of course there is no difference between using %time to get the time now and giving it that +15:00 which does one 15 mins from now. 
 |  | 
	
	  | 
		    
			  | _________________ Taz :)
 |   |  | 
	
		|  | 
	
		|  | 
	
		|  |