Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Ansjovis
Newbie


Joined: 24 Apr 2003
Posts: 6
Location: Sweden

PostPosted: Wed Apr 07, 2010 9:43 am   

capturing problems when converting from zmud to cmud
 
Hi, Im having some capturing problems.
Its probably a simple solution but i cant solve the problem.
I want to capture clantalk into a clan window, and before
every capture in the clan window i want to show the current time.
In Zmud i use this code: #say %time(hh:mm:ss yy-mm-dd);#cap clan;#gag;#cap clan
Example: I type: cl hi
Main window shows: [CLAN] 100% heard you say, 'hi'.
clan window shows:
11:37:25 10-04-07
[CLAN] 100% heard you say, 'hi'.

This does not work in Cmud. Useing the same code
Main window shows: time
clan window shows:
time
time
As command code the same in Cmud as in Zmud something else must have
changed to cause this problem.
What code should i use to get this to work?
Thanks in advance
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Apr 07, 2010 10:58 am   
 
CMud has time stamping built in. Go into the package editor, find the setting for your Clan window. Click the preferences button for that then go to the Session section, Scrollback tab. You should see a box that says "Show timestamps".

Then your trigger only has to do "#cap clan".
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Wed Apr 07, 2010 12:33 pm   
 
You'll still have to use #gag if you want it gagged from the main window too, #cap will still only send the information to the new window, it doesn't do anything to the information in the session window.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Thu Apr 08, 2010 12:37 pm   
 
Code:

:WindowName:#SHOW {%time(hh:mm:ss yy-mm-dd)}
#CAP WindowName
#GAG


where WindowName is the window wou wanna send the command to

i can think of times this is better then turning on timestamps...

Code:

:Chat:#SHOW {%ansi(red)%char(91)%ansi(white)%time(hh:mm:ss yy-mm-dd)%ansi(red)%char(93)}
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Thu Apr 08, 2010 5:22 pm   
 
What times do you think this is better than timestamps? There might be some, but I can't think of any, unless you only want to timestamp certain things.
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Thu Apr 08, 2010 5:44 pm   
 
yes, i only want to timestamp certain things without losing the screen real estate that cmud timestamps use

also i can format them to how i like using anythink %time allows, date for instance, i stay logged eternally, and when i go away for a few days, i can come back and see what days certain events occured

also being able to color, or add other info to the timestamp is a nice part...
:Chat:#SHOW {%ansi(red)%char(91)%ansi(white)%time(hh:mm:ss%char(32)yy-mm-dd)%ansi(red)%char(93) Some event happened}

[10:44:49 10-04-08] Some event happened

i was just trying to give th OP what he wanted instead of blindy just giving what i often here as a default answer, "cMud has that now", where it has something LIKE that, but not THAT :)
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Thu Apr 08, 2010 5:51 pm   
 
You can change the format, font, and color of the built-in timestamps in Options. The only things you can't do is change color in the middle of the timestamp, and turn it on and off for different lines.
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Thu Apr 08, 2010 5:54 pm   
 
You asked how it was better for me at times, just saying
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Thu Apr 08, 2010 6:32 pm   
 
I know. Thank you for responding. Razz You're right that it won't work if you want to only timestamp specific lines. I just wanted to make clear that you can customize the timestamp, in case Ansjovis got the impression you couldn't.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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