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
albo
Apprentice


Joined: 27 Mar 2008
Posts: 106

PostPosted: Fri Apr 24, 2009 6:43 pm   

Using #say and %time to throw current time on the screen and trigger off it
 
Basically at these times i need some class folders to be turned on, or off, and if turned on I need some aliases to be entered to get things going again.
I have tried it with other times exactly as it is, and it worked, but wanted a second opinion. So drop a line here and tell me what you think.

#CLASS {stand-alone *censored* on and off}
#TRIGGER {06:(%1) pm} {*censored action to perform*}
#TRIGGER {09:(%1) am} {
*censored alias to perform*
#wait 2000
*censored alias to perform*
}
#TRIGGER {11:(%1) pm} {
*censored alias to perform*
#wait 5000
*censored alias to perform*
}
#TRIGGER {07:(%1) am} {*censored action to perform*}
#CLASS 0

Here is the trigger that throws the time up on the screen for me.

#CLASS {staying connected}
#TRIGGER {TICK IN 5 SECONDS.} {
save
backup
#wait 5000
#say %time( "hh:nn am/pm")
}
#CLASS 0

This seemed pretty simple, but I got to looking at it and thinking about it, and I noticed I really only wanted the aliases and actions to be performed once for each time period. I am saying that after 9 am I just wanted to turn on some class folders and then perform an alias once, and that the way I had it set up was going to do that like 12+ times every hour (since my tick timer is set to 5 minutes to stay connected it would go off 12 times per hour). I do think I got it to work though, instead of performing the alias it performs an in game command that will do 1 of 3 things. 1 it will say it is ok to go through with what I want, 2 it will say there are like 20 minutes before I can do that, and 3 it will say in a round-about way I am already doing that. So I merely set up a trigger that will fire off the one that tells me I can go through with what I want right now.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Fri Apr 24, 2009 7:59 pm   
 
#alarm also takes times of the day as its argument, or lengths of time that you've been connected. Much easier.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
albo
Apprentice


Joined: 27 Mar 2008
Posts: 106

PostPosted: Fri Apr 24, 2009 8:24 pm   
 
All I want to do is cut those class folders on, or off, and then perform certain actions when turned on; I want to turn then on, or off, at specific times also. Could you devise a way to do that #alarm pretty easily? At the 6: 00 pm I want to turn them off, and at the 7:00 am I want to turn the off. I want them back on at 9:00 am and 11:00 pm.
Reply with quote
albo
Apprentice


Joined: 27 Mar 2008
Posts: 106

PostPosted: Fri Apr 24, 2009 9:38 pm   
 
I got it working.
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