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


Joined: 30 Jul 2003
Posts: 36

PostPosted: Sat Feb 28, 2004 11:01 pm   

Capture
 
I want to capture lines from a mud (chat channels) and send them to another window. This works well with #Cap Communication
However I find it only captures the 1st line of text on long gossips. I have tried using #cap -1 Communication and also #cap 4 communication but they dont seem to work. Or i am doing it wrong. Any one have any idea?

Trigger:

PAttern: *Answer*
Value: #Cap Communication
Reply with quote
musishun00
Wanderer


Joined: 16 Dec 2003
Posts: 77
Location: USA

PostPosted: Sat Feb 28, 2004 11:24 pm   
 
Could you post an example of a long chat line? I assume that your MUD has internal word wrapping? zMUD's word wrapping will #CAP everything on a line, but if your mud sends things to you in multiple lines, the #CAP might be an issue. In the meantime, you may try something like this (if you've got blank lines in between everything):

#TRIGGER {~*Answer~*} {#C+ Communication}
#TRIGGER {^$} {#C-}

See if that helps you out at all.

EDIT: Added the "^" (highlighted in red) just to make sure you're only stopping the #CAP on a blank line.
Reply with quote
palio
Novice


Joined: 30 Jul 2003
Posts: 36

PostPosted: Thu Mar 04, 2004 4:49 am   
 
#TRIGGER {~*Answer~*} {#C+ Communication}
#TRIGGER {^$} {#C-}


Sorry to ask a stupid question here. but would that trigger every time a new line is sent? and does that slow down the client?

This is what is sent the mud wraps after the word in:

You =G= this is a test line to see how long I can type and actually capture in
my communication window. I think once it wraps there is no more capturing


This is what is captures in my cap window:

You =G= this is a test line to see how long I can type and actually capture in
Reply with quote
albatross
Newbie


Joined: 04 Mar 2004
Posts: 4
Location: USA

PostPosted: Thu Mar 04, 2004 7:14 pm   
 
Another option is to set your mud's wrap setting to 0 (unlimited line length), and set zMud's wrap setting to match what the mud's line length had been. I don't know what mud you play, and there's no guarantee that you can set the wrap on your mud, but if you can it will fix your problem. As an added bonus, it keeps other people from abusing your trigs if they send gossips that wrap around to the next line.
Reply with quote
palio
Novice


Joined: 30 Jul 2003
Posts: 36

PostPosted: Tue Mar 09, 2004 4:47 am   
 
#TRIGGER {~*Answer~*} {#C+ Communication}
#TRIGGER {^$} {#C-}

I tried this
It kept spamming my screen with Capture text off and Capture text on. and it did not send any text to the capture window. The mud I play does not have a way to remove the wrapping from it
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