Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
crobb
Newbie


Joined: 10 Mar 2002
Posts: 3
Location: Iraq

PostPosted: Mon Mar 18, 2002 3:39 pm   

time interval
 
how can i use zmud to perform some command at a time interval say every 5 minutes. and can i make it just hit enter instead of making an actual command, just so i can get my prompt up every 5 minutes without moving or casting something? im using version 5.55
Reply with quote
crobb
Newbie


Joined: 10 Mar 2002
Posts: 3
Location: Iraq

PostPosted: Mon Mar 18, 2002 4:39 pm   
 
could you please give me an example Jagang?
Reply with quote
dracx
Beginner


Joined: 14 Oct 2000
Posts: 26
Location: USA

PostPosted: Mon Mar 18, 2002 4:59 pm   
 
#ALARM *5 {#SEND %crlf}

Dracx
Reply with quote
crobb
Newbie


Joined: 10 Mar 2002
Posts: 3
Location: Iraq

PostPosted: Mon Mar 18, 2002 5:20 pm   
 
could you tell me what the %crlf means in your alarm above.

Also how could i make the *5 a random number between say 1 and 200 ?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Mar 18, 2002 5:24 pm   
 
That would be every 5 seconds, which is a bit of overkill. For once every 5 minutes, try this. For a random time, use the %random function in the time field.
#ALA *5:00 {#CR}


LightBulb
All scripts untested unless otherwise noted
Reply with quote
crobb
Newbie


Joined: 10 Mar 2002
Posts: 3
Location: Iraq

PostPosted: Mon Mar 18, 2002 5:46 pm   
 
quote:

That would be every 5 seconds, which is a bit of overkill. For once every 5 minutes, try this. For a random time, use the %random function in the time field.
#ALA *5:00 {#CR}


LightBulb
All scripts untested unless otherwise noted



thats cool, thank. Im just wondering whether ill still need the * in front of the random numbers or not?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Mar 19, 2002 12:55 am   
 
No, what you'll need is one-time alarms with the random numbers. But since you want something fancy instead of something basic I'm going to allow you to figure out the actual script you'll need.

LightBulb
All scripts untested unless otherwise noted
Reply with quote
crobb
Newbie


Joined: 10 Mar 2002
Posts: 3
Location: Iraq

PostPosted: Tue Mar 19, 2002 3:49 pm   
 
Thanks LightBulb,

I am a bit stupid when it comes to progging so maybe someone else would like to help me make the time interval a random number?




PS. what does the CR and the CLRF mean in the above alarms
Reply with quote
itsmarty
Novice


Joined: 29 Jan 2002
Posts: 37
Location: USA

PostPosted: Tue Mar 19, 2002 9:36 pm   
 
quote:

PS. what does the CR and the CLRF mean in the above alarms



Go to the support forum and bring up the online help files. From there choose 'search' and enter cr. Once you've figured that one out search for crlf.

Since the entries just tell you what they do instead of what they stand for, it's carriage return and carriage return line feed. Old typewriter terms.

Martin
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Mar 20, 2002 2:18 am   
 
Random numbers in Alarms requires a complex code, towards this end I will direct you to read the forums, you might only have to go back a little, and there is a nifty search function.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net