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


Joined: 25 Apr 2006
Posts: 1

PostPosted: Tue Apr 25, 2006 4:30 pm   

Disappearing space in capture window
 
I've got a little problem with my channel capture window on Achaea:
Randomly, a space between the 2 lasts words of a sentence disappears.
Like this:
Code:
[18:16] xxxx: "Once you can kill imps/faries/whatever faster, you can
carry more corpses back."
[18:16] xxxx: "Can you still enterminia?"
[18:17] xxx:"Yes."
[18:17] xxxx: "Checking Empyrealicon."
[18:17] xxx: "What have you been killinglately?"
[18:17] xx: "Wildcats,pixies.."
[18:17] xxx:"Hmm."
[18:18] xxx: "How do i check the weapons/armor stats onitems."
[18:18] xx: "Hwo do i know what i can kill or not to beevil?"
[18:18] xxx: "You cant do thedifference."
[18:18] xxx: "You need the skill of weaponprobe inweaponry..."
[18:19] xxxx: "You just need to know, asking over newbie would be a
good idea."
[18:19] Jxxxx: "For now, you likely can't, xxxxxr. You need a skill
called Weaponprobe. You might ask for somebody with this skill in your House or
city, or ask your class channel what weapons and armour are best so they can
help you."
[18:19] xxxx: "Empyreal Assembly' House Icon is currently at 69.1%
power."


sometimes it erases it: ('enterminia', 'inweaponry', 'beevil'), sometimes it does not. If i dont GAG them in the main window, the space is there for sure... it's not a typo mayhem..

Here's the script i use to capture (i got it from these forums, and adapted it a bit);

Code:
#CLASS {Communication}
#REGEX {^\((.*)\):(.*)} {#var cap "%1";#class cap 1}
#TRIGGER {^(%w) tells you} {#T+ cap; #PLAY tellme.wav}
#TRIGGER {^You tell} {#T+ cap}
#CLASS 0
#CLASS {Communication|Cap} {disable}
#TRIGGER {*} {#CAPTURE Channels; #GAG}
#CLASS 0


and the settings for the channel window (which is certainly to blame for this problem):

Code:
#CLASS {childwindow}
#REGEX {^(\((.*)\):(.*) say.?,(.*) )} {#SUBSTITUTE {"["%time( hh:mm)"]"%3":"%4}}
#TRIGGER {You tell (*), ~"} {#SUBSTITUTE {%ansi( 14)"["%time( hh:mm)"] - You tell" %1": "}}
#REGEX {(.*) tells you,(.*)} {#SUBSTITUTE {%ansi( 14)"["%time( hh:mm)"]" %1":"%2}}
#REGEX {^(\d+)h\, (\d+)m\, (\d+)e\, (\d+)w (?pflags:[cexkdb@]*)\-} {#GAG}
#CLASS 0


Any idea why this happens ?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Apr 26, 2006 9:49 am   
 
#CLASS {Communication|Cap} {disable}
#TRIGGER {*} {#IF (%match(%line,"%dh, %dm") {#T- Cap} {#CAPTURE Channels; #GAG}}
#CLASS 0

#CLASS ChildWindow
#TRIGGER {^(?)} {#PSUB {%concat("[",%time("hh:mm"),"]",%1)} %x1}
#CLASS 0

That should be just a bit cleaner. You will have to fix up the prompt trigger you didn't show that turned of the Cap class.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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