|
jed Adept
Joined: 18 Dec 2005 Posts: 246
|
Posted: Wed May 16, 2007 2:33 am
possible minor capture bug? |
I have some text that is output from my mud as follows.
Quote: |
13/590M 190/200V 3RV 68760093XP 1.7AC 94gp 10pm QJP
You can not do that while sleeping.
1008/1160H 13/590M 190/200V 3RV 68760093XP 1.7AC 94gp 10pm QJP
Sygis gossips 'hahaha'You can not do that while sleeping.
1008/1160H 13/590M 190/200V 3RV 68760093XP 1.7AC 94gp 10pm QJP
who
---Creators--
[ e- Herder ] Sygis welcomes you to our collective imagination :) |
I have a trigger set up with a pattern of
and a script of
that is supposed to capture the sygis gossips pat and send it to the tell window. it usually works, however once in a while (once a day or so) I see the gossip within the main window. It looks like I tried to do something that returned the you can not do that while sleeping part. and that somehow caused the sygis gossips part to be shown.
Any ideas if my trigger is bad, or if this is a bug? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed May 16, 2007 2:41 am |
It's the trigger. Your trigger states that there needs to be an apostrophe immediately before the end of the line, and in the example you have there, it's not the end of the line. You might want to remove the $ from the trigger and use #if (%ends(line,')) to determine whether or not another line has been stuck on the end or not. If there is another line, you'll probably want to use #sub and #window instead of #gag and #cap.
|
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: Wed May 16, 2007 11:31 pm |
It looks like you have a return character at the end of your prompt just like I do but I don't think I've ever had that problem, perhaps Sygis is spoofing you rather than using standard comms channels.
You could try my trigger and see if you get the problem.
Code: |
#TRIGGER {^%w {gossip|say|tell|-|auction|shout|yell|ask|exclaim|sigh|smile|rage|state|snarl}%*'$} {#WIN Comm {%time(hh:nn) %ansi(bold,%linecol)%line};#GAG} |
|
|
_________________ Taz :) |
|
|
|
|
|