Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Solaras
Wanderer


Joined: 11 Mar 2002
Posts: 93

PostPosted: 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>
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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