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 6:41 pm   

logging multiple lines (a different way?)
 
okay id like to log all auction activity, but irealized today that aot of times it would wrap to multiple lines if theres alot of eq going up for auction...look like this:

[Auction] Robert : Up for bids: Blood red boots, Blood red helmet, Blood Red
Armour, Crimson Shield, Blood red amulet, Blood red
bracers and Blood red cloak.
[Auction] Robert : Dreamcast has requested 20000 as the opening offer.


-i have a trigger to log every line that begins with '[Auction] Robert :' but is there a way to start logging that, then stop when the next line is received, which would be another '[Auction] Robert : '? Then also log that line again?
in summary...write to the log file everytime the prompt is recieved, then stop logging the next time the same prompt is recieved again...?

/ Malleus /
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Mar 15, 2003 7:28 pm   
 
#TR {^~[Auction~] Robert} {#IF (@logging = 0) {#VAR logging 1;#LOG}}
#TR {.} {#IF (@logging = 1) {#VAR logging 0;#LOG}}

Don't forget to open a logfile first, so it will have a name.

LightBulb
Advanced Member
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