|
Motient Beginner
Joined: 14 Mar 2004 Posts: 18 Location: USA
|
Posted: Thu Jan 27, 2005 4:44 am
child windows and logging |
I wish I could understand that log help file but it didn't help me
I am trying to log from a child window specific text.
I don't care about color just care about the text.
This is what I am using
#TRIGGER { {AvNet|Chat|auction|tells the group|says|tell the group|grats|You tell||tells you|clan} } {#CAPTURE Chats}
how do I automatically log this child window with timestamps
And how do I prevent the text below from showing up
Clan Healer stares at you and utters the words, 'mana'.
Duyo drinks water from Clan Fountain.
Your blade barrier blocks the Clan Training Dummy's attack!
I just want to get the channel convos like this
{Clan} Eldrich: might be a suicide mission
{Avnet} Kreeghor: can't we all just get along?
Eldrich tells you, 'shut the hell up'
You tell Eldrich, 'BFEG'
Any ideas? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Jan 27, 2005 2:53 pm |
Logfiles log everything that's sent to the window. If you don't want something in the log, then don't send it to the window. If you want timestamps for everything that happens, then you'll either have to send timestamps to the child window or have a trigger in the child window that provides the timestamps. You can get the time from either the %time variable or the %time() function.
This alias will automatically log the Chats child window. The filename is the datestamp and the first line should have the timestamp.
Code: |
#AL atconnect {:Chats:#LOG {%time(ddmmmyy)};:Chats:#SAY %time} |
I would recommend making a separate trigger for the {Clan} channel to keep out lines of the type you mention. You should also remove the empty item between "tell the group" and "You tell".
#TR {%q{AvNet|Chat|auction|tells the group|says|tell the group|grats|You tell|tells you}%q} {#CAP Chats}
#TR {~{Clan~}} {#CAP Chats} |
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
|
Motient Beginner
Joined: 14 Mar 2004 Posts: 18 Location: USA
|
Posted: Thu Jan 27, 2005 6:26 pm child windows and logging |
Thanks for your help this is my finalized version of what you helped me with
Code: |
#CLASS {chat}
#ALIAS atconnect {:Chats:#LOG {%time(ddmmmyy)};:Chats:#SAY %time}
#TRIGGER {~{AvNet~}} {#CAPTURE Chats;:Chats:#SAY %time}
#TRIGGER {{tells the group|says,|You say,|tell the group||You tell|tells you}} {#CAPTURE Chats;:Chats:#SAY %time}
#TRIGGER {~{Clan~}} {#CAPTURE Chats;:Chats:#SAY %time}
#TRIGGER {~{Chat~}} {#CAPTURE Chats;:Chats:#SAY %time}
#TRIGGER {~{Auction~}} {#CAPTURE Chats;:Chats:#SAY %time}
#TRIGGER {~{Grats~}} {#CAPTURE Chats;:Chats:#SAY %time}
#CLASS 0
|
|
|
|
|
|
|