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
hykou
Wanderer


Joined: 29 Apr 2004
Posts: 63
Location: USA

PostPosted: Fri Jun 11, 2004 1:35 am   

tell the time that someone sent me a tell
 
hello, i would like zMUD to tell me the time and capture the tell in
the same window.

heres an example of the tel...

Arcteria tells you '+-Nogoth harn-+ and shift :)'

i know to use %1 for the name, and %w for the actual tell inbetween the ' ''s. i would perfer the time in the front but anything is fine. thanks
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Jun 11, 2004 3:32 am   
 
No, actually you don't want to use %1 for the name or %w for the tell. %w will only match alpha characters, which doesn't include spaces. That makes it a good choice for the name, which should only be one word, but not for the tell which will often contain several words. The correct wildcard for the tell is *.

This is simplest if you use the #CAPTURE command which has the added benefit of preserving the colors from the MUD. Some people prefer the #WINDOW command, so I'll illustrate both methods.

#CAPTURE method
Pattern: %w tells you '*'
Value:
:Tells:#SHOWP {%time( hh:nn) }
#CAPTURE Tells

#WINDOW method
Pattern: (%w) tells you '(*)'
Value:
#WINDOW Tells {At %time( hh:nn) %1 told you '%2'}
Reply with quote
hykou
Wanderer


Joined: 29 Apr 2004
Posts: 63
Location: USA

PostPosted: Sat Jun 12, 2004 3:29 am   
 
neither works
this is what i could do before...

#TRIGGER {Tells you '*'} {#cap TellsReceived} {logging}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Jun 12, 2004 4:05 am   
 
Since you have an existing trigger which works, all you need is to add the time before the capture.
#TR {Tells you '*'} {:TellsReceived:#SHOWP {%time( hh:nn) };#CAP TellsReceived} {logging}

NOTE: The TellsReceived window must be open for this to work. You might not get a timestamp on the first capture, but you should on all the rest.
Reply with quote
hykou
Wanderer


Joined: 29 Apr 2004
Posts: 63
Location: USA

PostPosted: Sat Jun 12, 2004 12:02 pm   
 
thanks this works great
Reply with quote
Kraemder
Beginner


Joined: 27 Sep 2003
Posts: 10
Location: USA

PostPosted: Sat Jun 12, 2004 1:48 pm   
 
I tweaked this trigger just a tad to get it to filter chat channels in Achaea for me. It's working very well, nearly as well as a Simutronics MUD.. but it seems that if someone says something that takes up more than one line, then it fails to trigger. Is there anything I can do about this? Here's the trigger as well as I can copy it...

This is the pattern... {~(%w~):*"*"}

and what it does..

:Amunet:#SHOWP {%time( hh:nn)}
#CAP Amunet
#GAG
#GAG 1

I had hoped to gag not only the message itself in the main window, but the additional status bar info that the mud resends after after every bit of text. That's why there are two #GAG statements..This isn't too distracting, but getting rid of it would be nice. Unfortunately, it didn't work.
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