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


Joined: 20 Feb 2005
Posts: 2

PostPosted: Sun Feb 20, 2005 8:43 pm   

Help w/Logging and Child Windows
 
Hello,

I'm an admin on a MUD, and I was wondering if it was possible to re-route messages from certain logging channels to child windows. That is, to not see them on the parent window, but have them instead go straight to the child window.

Example of the logging channel:

//(player) Log Jimmy-Bob: bow

Example of the child window logging trigger I have set-up:

:Logs: #sayp %time( c)%char( 32)
#cap Logs

So, is it possible to gag the log message on the main window, and have it log to the child?

Thanks in advance.
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Sun Feb 20, 2005 10:19 pm   
 
add a #GAG
to the trigger
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun Feb 20, 2005 10:25 pm   
 
Without writing a custom plugin the only way would be to #GAG the line in the main window.

#TRIGGER {//~(player~) Log (%x):} {:Logs:#sayp %time(c)%char(32);#CAP logs;#GAG}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
totality
Newbie


Joined: 20 Feb 2005
Posts: 2

PostPosted: Sun Feb 20, 2005 11:14 pm   
 
Thanks for the help- it is much appreciated.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Feb 21, 2005 1:05 am   
 
Actually, there IS a way. It involves #MAKEWINDOW, but it's kind of a pain.

#MAKEWINDOW windowname REDIRECT <--sends the line directly to the specified window AND shunts everything else to this window

#MAKEWINDOW _previous REDIRECT <--stops sending mud output to the aforementioned window, returning control to the previous window to get that stuff

I'm not quite familiar with #MAKEWINDOW behavior, so you might want to experiment cautiously and expect problems to iron out.
_________________
EDIT: I didn't like my old signature
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