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
Pchild
Newbie


Joined: 22 Apr 2004
Posts: 4
Location: USA

PostPosted: Thu Apr 22, 2004 8:25 pm   

Timers other than tick timer?
 
Perhaps my trigger knowlege isn't that great... but I can't figure out how to make simple timeers.

I used to use a program called SimpleMU as my Mudd Client untill I found out about zmud. I have used zmud ever sence, a superior program... but simplemu had a timer option... where you could put in the time, and string...

Example
Every 10 seconds it would type "Cast faerie fire"

And I could also make another one for lets say 20 seconds... and 15 seconds...

How could I do this in Zmud, The tick timer is the only timer that I see... But you can't put diffrent times in the tick timer, there's only one.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Apr 22, 2004 10:11 pm   
 
#ALARM *10 {cast faerie fire}
Reply with quote
Theragil
Apprentice


Joined: 13 Feb 2004
Posts: 157
Location: USA

PostPosted: Thu Apr 22, 2004 11:11 pm   
 
Here's a simple alias I use to let me make repeating events and stop them from the command line without having to fiddle with syntax bits. The way it works is something like this:

loop speedloop 30 drink speed
loop speedloop off

The first creates a looping command that executes every 30 seconds and executes the command "drink speed" and the second disables that. The name is used to match them up. I find this a little easier to remember to use when I'm setting things up on the fly, which I often do. (Of course if you're already used to the #alarm command it's probably not much simpler to use this.) It also puts the alarms into my "Temp" folder which makes it easier to find and remove anything that shouldn't be there. Here's the alias:

#ALIAS loop {#exec %concat( "#untrigger ", %char( 34), %1, %char( 34));#if (%lower( %2) <> "off") {#exec %concat( "#alarm ", %char( 34), %1, %char( 34), " {*", %2, "} {", %-3, "} ", %char( 34), "Temp", %char( 34));%-3}}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Apr 23, 2004 5:00 am   
 
A simpler version of the above alias:
#ALIAS loop {#IF (%lower( %2) <> "off") {#ALARM "%1" *%2 {%-3} "Temp";%-3} {#UNTRIGGER "%1"}}
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