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


Joined: 02 Jun 2002
Posts: 5

PostPosted: Sun Jun 02, 2002 5:16 am   

auto log
 
How do you make an auto log trigger that makes the name of the character date and start time as the logs file name?

Thanks
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Jun 02, 2002 5:28 am   
 
1. Add the #LOG commands to the end of the password trigger, or
2. Put the #LOG commands in the atconnect alias

Attempts to include the time in the filename haven't worked well and aren't necessary. One log per day, per character, should be more than enough. The #LOG command appends by default, so overwriting isn't a problem. If you need the logon time, make a trigger that will fire at the end of your logon text. This can either use the MUD's time command, if it has one, or the %time function.

#AL atconnect {#LOG {%char_%time(mmm-d-y)}

LightBulb
Vague questions get vague answers
Reply with quote
Sixy
Newbie


Joined: 02 Jun 2002
Posts: 5

PostPosted: Sun Jun 02, 2002 5:38 am   
 
It makes a text file by the name of {%char_%time(mmm-d-y)).txt thats the exact file name in the dir
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Jun 02, 2002 7:58 am   
 
Since you know your character's name (I don't) you can replace %char with the actual name. If you can't get the time function to work, then I'm afraid you'll have to either make your logfiles manually or do without the date/time in the filename. I believe this will work, but I don't intend to test it since I don't want to clutter my hard-drive with unneeded logfiles. The last example had an unmatched {.
#AL atconnect {#LOG {Sixy_%time(mmm-d-y)}}


LightBulb
Vague questions get vague answers
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