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


Joined: 16 Mar 2001
Posts: 38
Location: USA

PostPosted: Mon Nov 01, 2004 7:41 pm   

Question with Charbal's HTML Logger
 
I have 4 windows in my Zmud. 1 main window, and 3 on the right side (seperate not tabbed) of my screen which i use to capture communications from my Form, Town, and Clan.

In the main window i have alias to run Charbal's HTML program. This works fine, but it doesnt capture anthing from my other 3 windows.

The code looks like this..
Code:

#ALIAS atconnect {#HTMLLOG e:\zMUD\Medievia\logs\medLog_%time( mm-dd-yy).htm}
#ALIAS atdisconnect {#HTMLLOG}
#ALARM "LogRotate" {00:00:01} {#SAY Rotating Logs;#HTMLLOG e:\zMUD\Medievia\logs\medLog_%time( mm-dd-yy).htm}


Being that non of my alias, triggers and such show up for the other 3 windows, I then setup alias's for each window which are basically the same thing just storing them in different directories.

Code:

#ALIAS atconnect {#HTMLLOG e:\zMUD\Medievia\logs\form\medLog_%time( mm-dd-yy).htm}
#ALIAS atdisconnect {#HTMLLOG}
#ALARM "LogRotate" {00:00:01} {#SAY Rotating Logs;#HTMLLOG e:\zMUD\Medievia\logs\form\medLog_%time( mm-dd-yy).htm}


Problem is that the other windows (the 3 that are not the main) will not start logging unless i manually type in "atconnect".

Is there a way for the original code to call the other 3 or is there an easier setup that i havent figured out?

BTW the code for the windows looks like
Code:

#CLASS {Chat Filter} {enable}
#ALIAS cwin {{#SHOW}

#TRIGGER {*~[CLAN~] %1 has ENTERED the world of Medievia.} {#WINDOW chat %ansi( bold, yellow)~(%time( "hh:mm")~)%1 has entered the game.;#GAG}

#TRIGGER {~[CLAN~] %1 has BEEN NPK'd by %2!} {#WINDOW chat %ansi( bold, maroon)Clan %1 has been NPK'd by %2.;#CHATALL %ansi( bold, maroon)~*~* %1 has been NPK'd by %2.~*~*;#gag}

#TRIGGER {~[CLAN~] %1 has LEVELED!} {#WINDOW chat %ansi( bold, yellow)Clan %1 has leveled.;#CHATALL %ansi( bold, yellow)~*~* %1 has leveld.~*~*;#gag}

#TRIGGER {~[CLAN~] You feel %1 say, '%2'.} {#WINDOW chat {%ansi( bold, green)~[%ansi( yellow)%1%ansi( bold, green)~]%ansi( gray)%time( "hh:mm")%ansi( bold, green):%2};#gag}

#TRIGGER {~[CLAN~] * heard you say, '%1'.} {#WINDOW chat {%ansi( bold, green)~[%ansi( yellow)RYN%ansi( bold, green)~]%ansi( gray)%time( "hh:mm")%ansi( bold, green)%1};#GAG}

#TRIGGER {~[CLAN~] %1 has LEFT the game.} {#WINDOW chat %ansi( bold, yellow)~(%time( "hh:mm")~)~(%1~) has left the game.;#GAG}

#TRIGGER {~[TOWN~] %1 ~(%2~) says, '%3'.} {#WINDOW town {%ansi( bold, yellow)~[%ansi( bold, green)%1%ansi( bold, yellow)~]%ansi( cyan)%2%ansi( gray)%time( "hh:mm"):%ansi( bold, cyan)%3};#gag}

#TRIGGER {~[FORM~] %1 tells everyone, '%2'.} {#WINDOW form {%ansi( bold, yellow)~[%ansi( bold, purple)%1%ansi( bold, yellow)~]%ansi( gray)%time( "hh:mm"):%2}}

#TRIGGER {You telepath %1, '%2'.} {#WINDOW chat %ansi( gray)~[%ansi( bold, red)RYN%ansi( gray)~-~>%ansi( red)%1%ansi( gray)~]%ansi( gray)%time( "hh:mm"):%ansi( bold, red)%2}

#TRIGGER {%1 telepaths you, '%2'.} {#WINDOW chat %ansi( gray)~[%ansi( bold, red)%1%ansi( gray)~]%ansi( gray)%time( "hh:mm"):%ansi( bold, red)%2}
#CLASS 0


Thanks
Reply with quote
misterbalrog
Apprentice


Joined: 26 Oct 2004
Posts: 108

PostPosted: Mon Nov 01, 2004 9:54 pm   
 
I don't know how you've set up your automatic cmd execution, but you can use the <window>:<cmd> function to issue commands in other windows.

chat:@logexec;town:@logexec;etc...

Hope that helps...
Reply with quote
Broksonic
Novice


Joined: 16 Mar 2001
Posts: 38
Location: USA

PostPosted: Mon Nov 01, 2004 11:31 pm   
 
Thanks misterbalrog...
worked great..

heres what i did if anyone needs it

Code:

#CLASS {logs}
#ALIAS atconnect {#HTMLLOG e:\zMUD\Medievia\logfile\medLog_%time( mm-dd-yy).htm;town:atconnect;form:atconnect;chat:atconnect}
#ALIAS atdisconnect {#HTMLLOG;town:atdisconnect;form:atdisconnect;chat:atdisconnect}
#ALARM "LogRotate" {00:00:01} {#SAY Rotating Medievia Logs;#HTMLLOG e:\zMUD\Medievia\logfile\medLog_%time( mm-dd-yy).htm}
#CLASS 0


not sure if i will need to set the <window>:<cmd> for the #ALARM yet will see at midnight...

But otherwise works fine..
thanks again..
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