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
Malleus
Novice


Joined: 05 Jan 2003
Posts: 45
Location: USA

PostPosted: Sat Mar 15, 2003 2:33 am   

Logging One Line with Trigger
 
i want to hae a trigger setup to log a line everytime that line is recieved, and just append it to the 'auction.txt' logfile...i dont want to open a new window to log from there(if its possible)...the output is as follows:

[Auction] Robert : Got 1002 from Rama(bree). Do I hear 1022?

-its all one line, and i just want to log that line(basically log all auction activity)...i could have a trigger like:
#TRIG {~[Auction~] Robert :} {#log auction.txt}
but how would i just capture that one line, then stop logging?

/ Malleus /
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Mar 15, 2003 5:48 am   
 
A log is a continuous record of activity, not a line here and there. Use #FILE and #WRITE.
#AL atconnect {#FILE 1 auction.txt}
#TR {~[Auction~] Robert :} {#WRITE 1 {%trigger}}


LightBulb
Advanced Member
Reply with quote
Malleus
Novice


Joined: 05 Jan 2003
Posts: 45
Location: USA

PostPosted: Sat Mar 15, 2003 7:49 am   
 
woo, learn somethin new everyday...thanks :)

/ Malleus /
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