|
Solaras Wanderer
Joined: 11 Mar 2002 Posts: 93
|
Posted: Fri Oct 05, 2007 1:03 pm
ATCP Question |
Code: |
<IAC><SB><200>Char.Vitals<LF>
H:3519/3519 M:5306/5306 E:16495/16495 W:23020/23020 NL:62/100 <IAC><SE> exdb-<IAC><EOR> |
I can telnet trigger that line to capture the vitals, but I am unsure of the method (if there is one) to capture this section of the data.
Code: |
<IAC><SE> exdb-<IAC><EOR> |
Is there a way to include that in the trigger?
This is my current ATCP trigger, and yes I realize it doesn't actually do anything yet, it is just there for examing.
Code: |
<trigger type="Telnet" param="200" priority="170" stop="true" newline="false" prompt="true" id="17">
<pattern>Char.Vitals$H:(%d)/(%d) M:(%d)/(%d) E:(%d)/(%d) W:(%d)/(%d) NL:(%d)/100 </pattern>
</trigger>
|
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Oct 05, 2007 1:20 pm |
In short: no. You'll need another trigger to capture it. Telnet triggers only fire on the text between IAC SB and IAC SE.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Oct 05, 2007 4:56 pm |
You just need to create a Prompt trigger (turn off the "trigger on newline" option, and turn on the "trigger on prompt" option). For the trigger pattern, use "exdb-" or "^(*)-" or something like that.
There was a bug with prompt triggers in CMUD v1.34, but it is fixed in v2.0x to fire properly when the IAC EOR is received at the end of the line. |
|
|
|
|
|