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
poploco
Beginner


Joined: 14 Oct 2003
Posts: 18
Location: Canada

PostPosted: Wed Mar 06, 2013 7:51 pm   

Auto "logging" (as in text log) help needed.
 
Hello,

I am trying to get the #log command to turn on as I connect to certain chars. I know I can type #log march06.txt and it will log all info to that file. But is there a way to do it so the log automatically turns on and adds the date of the day without me typing it? I tried #log (%date).txt but it will not work. All it does is write exactly (%date).txt as a filename... and not the date. I tried all 3 types of brackets... []{}() but they keep doing the same thing.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Mar 06, 2013 8:53 pm   
 
%date has no meaning in CMud, which is why it did that. Can't really just make up commands and functions because the names make sense to you Mr. Green.

You want to use %time(). Will also want to put this in an event like onConnect if you want to have it start automatically.
_________________
EDIT: I didn't like my old signature
Reply with quote
poploco
Beginner


Joined: 14 Oct 2003
Posts: 18
Location: Canada

PostPosted: Wed Mar 06, 2013 10:17 pm   
 
works thanks!
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