|
Gunho Newbie
Joined: 07 Jun 2008 Posts: 4
|
Posted: Sun Dec 21, 2008 1:13 am
Channel Capture assistance |
So I've looked though some of the completed channel capture scrips that were posted throughout the forums. The few that I got to work all had one problem, they would only capture one line of text, the rest of it still displays on the main window. I reverted to just a simple capture trigger, and I'm wondering if I can get some assistance on getting it to capture multi-line channel communications.
Current trigger
^~(*~)~:(*)"
#capture channels
#gag
#echo chat (will disapear eventually just helping me remember to look at the other window for the text)
All the channels I'm trying to capture have the same basic structure. Example:
(City): John says, "Until next time."
If anyone has some ideas I can try out I'd appreciate it. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Dec 21, 2008 1:37 am |
Find out if your MUD has an option to let you set the length of the lines it sends. Iron Realms MUDs, for example, hide this somewhere like CONFIG SCREENWIDTH or CONFIG LINELENGTH. If you can reconfigure the line length, either set it to a massively high number that it's never going to reach, or set it to 0 (which is normally off - no linebreaks inserted).
What this means for your script is that the trigger you have there will start working absolutely fine - and it also makes anything else you might want to do involving multiple lines (like where a person or item's name can vary in length and change where the line wraps, or for room descriptions, item descriptions, or whatever else) a million times easier.
If you want the output to look the same as it used to after you've changed the line length, CMUD can do its own word wrapping - set the wrap column to 80 and the indent to 0 and you're good to go.
If your MUD doesn't support line length 0, badger your admins until they put it in, or change to a MUD that lets you. Seriously, this sort of script is too complex to be worth the effort most of the time. If you simply must have a script that captures multiple lines, though, post again and we'll see what we can do. |
|
|
|
Gunho Newbie
Joined: 07 Jun 2008 Posts: 4
|
Posted: Sun Dec 21, 2008 1:46 am |
Alright, I'll do that. I noticed that others had multi-line channel stuff being captured fine, and thought I may have been missing something simple.
Thanks Fang. |
|
|
|
|
|
|
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
|
|