A Timer!

by Unknown

Back to Mechanic's Corner.

Unknown2008-11-24 07:02:24
... I want a handy-dandy timer like everyone else has on their logs.

Would someone care to explain how to make one?

I'm talking about the timers that are like...

###h, ###m, ###e, ##p, (alphabet soup) --

Thanks in advance for your help. freaked.gif
Unknown2008-11-24 07:54:20
What client?
Malarious2008-11-24 11:37:39
QUOTE(Myrkr @ Nov 24 2008, 02:02 AM) 585938
... I want a handy-dandy timer like everyone else has on their logs.

Would someone care to explain how to make one?

I'm talking about the timers that are like...

###h, ###m, ###e, ##p, (alphabet soup) --

Thanks in advance for your help. freaked.gif


For which client was a good question... for Zmud in that format it also depends if you have a linebreak or not... without linebreak its easier

#REGEX {^(\\d+)h, (\\d+)m, (\\d+)e, (\\d+)p (\\a+)-} {#echop } "" {nocr|prompt}

The above is done in Regular expression format so that it works a bit faster..... the first part is a prompt match. this part:

#echop

will make it show something like this...

5000h, 5000m, 5000e, 10p elrx-

the brackets are optional, the paranthesis are not.

I prefer the preprompt timestamp...

5000h, 5000m, 5000e, 10p elrx-

Either works though the one I use is.

#REGEX {^(\\d+)h, (\\d+)m, (\\d+)e, (\\d+)p (\\a+)-} {#if (@timestamp = 1) {#PSUB { %1} %x1} } "" {nocr|prompt}


If you need more help or use mushclient let us know.
Unknown2008-11-24 21:25:48
QUOTE(Malarious @ Nov 24 2008, 06:37 AM) 586011
For which client was a good question... for Zmud in that format it also depends if you have a linebreak or not... without linebreak its easier

#REGEX {^(\\d+)h, (\\d+)m, (\\d+)e, (\\d+)p (\\a+)-} {#echop } "" {nocr|prompt}

The above is done in Regular expression format so that it works a bit faster..... the first part is a prompt match. this part:

#echop

will make it show something like this...

5000h, 5000m, 5000e, 10p elrx-

the brackets are optional, the paranthesis are not.

I prefer the preprompt timestamp...

5000h, 5000m, 5000e, 10p elrx-

Either works though the one I use is.

#REGEX {^(\\d+)h, (\\d+)m, (\\d+)e, (\\d+)p (\\a+)-} {#if (@timestamp = 1) {#PSUB { %1} %x1} } "" {nocr|prompt}
If you need more help or use mushclient let us know.


The help given was awesome. I do, indeed, have zMUD.