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


Joined: 18 Aug 2012
Posts: 2

PostPosted: Sat Aug 18, 2012 9:02 am   

Quick help with a logger
 
I am trying to put something together that when something is said in a certain channel like "chat" it logs it and puts it in another window for almost like copying the exact thing that was said so i can see what was said in that channel without having to look up the history. I have been fiddling with it for two days and cant seem to figure it out. ANY help would be amazing.

Here is an example of what im trying to explain

[chat : Nastorrian] Good morning mud!

Now i want that to be copied and sent to another window so i can see who said what on chat and other various lines. Im sure once i get a working version of chat i can alter it to work in other channels to. But ive tried and I cant figure it out. So this is my last resort. Thank you guys for the help!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Sat Aug 18, 2012 2:18 pm   
 
You want #FILE and #WRITE to make manual 'logs'.

#EVENT onLoad {#FILE 1 chatlog.txt}

#TR {~[chat : (%w)~]} {
#WRITE 1 %line
#CAPTURE Chat
#GAG
}
_________________
Discord: Shalimarwildcat
Reply with quote
Nastorrian
Newbie


Joined: 18 Aug 2012
Posts: 2

PostPosted: Sun Aug 19, 2012 3:21 am   
 
I tryed that, but when people talk in chat it isnt showing up in the window
Im currently readin through the help files for what you said.
I just cut and past what u put into my zmud so im sure thats why its not working :x
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Sun Aug 19, 2012 11:44 am   
 
oh, zMUD doesnt have EVENTs, so whithout the file ever being initialized the write will fail...

#ALIAS atconnect {#FILE 1 chatlog.txt}
_________________
Discord: Shalimarwildcat
Reply with quote
hogarius
Adept


Joined: 29 Jan 2003
Posts: 221
Location: islands.genesismuds.org

PostPosted: Mon Aug 20, 2012 6:52 pm   
 
Shalimar, is the original poster asking about creating a Chat-channel log file, or just another window to capture Chat-channel text into?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Tue Aug 21, 2012 1:05 pm   
 
a chat channel log i assume, because when you cap;gag to a child window, it is often stripped from a normal log file
_________________
Discord: Shalimarwildcat
Reply with quote
zeldadixie
Newbie


Joined: 31 Aug 2012
Posts: 1

PostPosted: Fri Aug 31, 2012 4:59 am   
 
Why isn't it showing?
Reply with quote
hogarius
Adept


Joined: 29 Jan 2003
Posts: 221
Location: islands.genesismuds.org

PostPosted: Fri Aug 31, 2012 11:45 am   
 
Um, why isn't what showing where? Could you please give some more details about what you are trying to do?
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