|
Nastorrian Newbie
Joined: 18 Aug 2012 Posts: 2
|
Posted: 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! |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4671 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
Nastorrian Newbie
Joined: 18 Aug 2012 Posts: 2
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4671 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
hogarius Adept
Joined: 29 Jan 2003 Posts: 221 Location: islands.genesismuds.org
|
Posted: 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?
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4671 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
zeldadixie Newbie
Joined: 31 Aug 2012 Posts: 1
|
Posted: Fri Aug 31, 2012 4:59 am |
Why isn't it showing?
|
|
|
|
hogarius Adept
Joined: 29 Jan 2003 Posts: 221 Location: islands.genesismuds.org
|
Posted: 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?
|
|
|
|
|
|