|
Jared242004 Beginner
Joined: 28 Jul 2004 Posts: 21 Location: Canada
|
Posted: Thu Sep 10, 2009 9:35 pm
Auto save Timer |
I need a hand making an auto save timer. The game i plays allows saves every minute, but i would like to save every 2 minutes or so
Thanks in advance |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Thu Sep 10, 2009 10:39 pm |
What you want my friend is an #ALARM
Try something like this.
Code: |
#ALARM saveMe {*120} {save} |
|
|
_________________ Asati di tempari! |
|
|
|
Jared242004 Beginner
Joined: 28 Jul 2004 Posts: 21 Location: Canada
|
Posted: Thu Sep 10, 2009 11:39 pm |
thanks
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Sep 11, 2009 3:26 am |
This is one of the examples in the helpfile, I think (if not, go look at the same helpfile in the CMud manual, I know it's in that one). There's no point in having this trigger going while offline, so you'll want to use the connection-timer syntax.
#alarm -2:00 {save}
the - indicates that the time source is to be the connection timer instead of the system clock. the X:XX is the amount of time in (hours, which in this case aren't used,) minutes and seconds since you were connected (starting at the time this alarm was created, of course.) So, for example, -2:00 is the same as *120. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Jared242004 Beginner
Joined: 28 Jul 2004 Posts: 21 Location: Canada
|
Posted: Fri Sep 11, 2009 6:26 am |
thanks, i will have to try that
|
|
|
|
|
|