TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

#gag question

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
blkno1



Joined: 03 Dec 2007
Posts: 117

PostPosted: Tue Dec 04, 2007 5:11 pm    Post subject: #gag question Reply with quote

Im using the following to catch my chats and send em to the file chat.log Then I open another terminal and use tail -f chat.log to keep track of chats.

My question is what would be the best way to use #gag so that its ONLY going to the chat.log? Im trying to clean up the amount of spam on the main terminal window.

Code:
#action {[CLAN] %0} {#logline chat.log}


Im a looong time Zmud user, who runs only Linux these days, and tintin++ looks to be the best there is.

thanks for your time.
bklno1
Back to top
View user's profile Send private message Yahoo Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Tue Dec 04, 2007 8:21 pm    Post subject: Reply with quote

There are two ways to go about this:

Code:

#action {^[CLAN] %0} {#logline chat.log}
#gag {^[CLAN] %0} {#logline chat.log}


or

Code:

#action {^[CLAN] %0} {#logline chat.log;#gagline}
Back to top
View user's profile Send private message Send e-mail
blkno1



Joined: 03 Dec 2007
Posts: 117

PostPosted: Wed Dec 05, 2007 8:48 am    Post subject: Reply with quote

Hmm both seem to work but whatever there sending to the chat.log is blank. The screen scrolls up, but nothing there.

Checking out the helpfile for #gagline

Command: #gagline

The gagline command will stop the next line from being displayed.
If used in an action it will work in a similar fashion as the gag
command. If you use gagline before a showme in an action the showme
will be gagged, rather than the line triggering the action. To avoid

Is something cut off at the end there?
Back to top
View user's profile Send private message Yahoo Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Wed Dec 05, 2007 9:05 am    Post subject: Reply with quote

Looks like the #gag interferes with logline.

Fortunately there are several options Coffee

With this code colors are lost.

Code:

#action {^[CLAN] %0} {#logline chat.log [CLAN] %0;#gagline}


With this code you add your own color code.

Code:

#action {^[CLAN] %0} {#logline chat.log <128>[CLAN] %0;#gagline}


With this code you keep the original colors, though depending on your mud's output this may need customization. Use #config convert on to see color codes used by your mud.

Code:

#action {~%0[CLAN]%1} {#logline chat.log %0[CLAN]%1;#gagline}
Back to top
View user's profile Send private message Send e-mail
blkno1



Joined: 03 Dec 2007
Posts: 117

PostPosted: Wed Dec 05, 2007 9:57 am    Post subject: Reply with quote

Option two worked like a charm!Ecstatic Option 3 didn't work so I tried the #config meta on to see what my muds (Medievia btw) output was. Sorry I couldn't make heads or tails of it.

Code:

\e[1m\e[32m[\e[1m\e[33mCLAN\e[1m\e[32m] \e[1m\e[36mYou feel Laylia say, 'thank you'.


Thanks for all your help.
blkno1
Back to top
View user's profile Send private message Yahoo Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Wed Dec 05, 2007 12:30 pm    Post subject: Reply with quote

The \e[**m stuff are color codes. You can use them in color triggers, which start with a tilda. The following should do the trick:

Code:

#action {~^\e[1m\e[32m[\e[1m\e[33mCLAN\e[1m\e[32m] %0}
{
    #logline chat.log \e[1m\e[32m[\e[1m\e[33mCLAN\e[1m\e[32m] %0;
    #gagline
}
Back to top
View user's profile Send private message Send e-mail
blkno1



Joined: 03 Dec 2007
Posts: 117

PostPosted: Sun Dec 09, 2007 3:13 pm    Post subject: Reply with quote

Worked like a charm! Thanks!
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group