|
Kevadrin Newbie
Joined: 29 Jul 2011 Posts: 8
|
Posted: Thu Aug 25, 2011 5:34 am
ATCP Imperian |
Hello all,
I'm once again beating my head against the wall. I'm trying to figure out how to use ATCP, and just down right confused.
I have ATCP emulation turned on, on cMUD Pro 3.34.
My code is:
Code: |
<trigger type="Telnet" param="200" priority="11370" newline="false" id="1137">
<pattern>Char.Vitals$(*)</pattern>
<value>#echo %1
</value>
</trigger>
|
It writes out:
Code: |
H:4318/4318 M:2848/3088 E:20490/20490 W:14340/14340 NL:15/100 |
When I try to make the (*) into (H:(\d+)/(\d+) M:(\d+)/(\d+) E:(\d+)/(\d+) W:(\d+)/(\d+) NL:(\d+)/(\d+))
it doesn't work and I'm close to pulling my hair out.
Please help! |
|
|
|
geniusclown Magician
Joined: 23 Apr 2003 Posts: 358 Location: USA
|
Posted: Thu Aug 25, 2011 2:22 pm |
Try this:
Code: |
<trigger type="Telnet" param="200" priority="11370" regex="true" newline="false" id="1137">
<pattern>Char.Vitals$(*)</pattern>
<value>#echo %1
</value>
</trigger> |
|
|
_________________ .geniusclown |
|
|
|
Fizgar Magician
Joined: 07 Feb 2002 Posts: 333 Location: Central Virginia
|
Posted: Thu Aug 25, 2011 3:21 pm |
Assuming you are talking about Imperian.com:23. The trigger I have below seems to work fine and echos back your current hp. They also seem to use GMCP which I like better but I guess that's just a matter of personal opinion.
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<trigger type="Telnet" param="200" priority="11370" regex="true" newline="false" copy="yes">
<pattern>Char\.Vitals\nH:(\d+)/(\d+)\s+M:(\d+)/(\d+)\s+E:(\d+)/(\d+)\s+W:(\d+)/(\d+)\s+NL:(\d+)/(\d+)</pattern>
<value>//#print %gmcp.char.vitals
#print %1</value>
</trigger>
</cmud> |
Hope that helps. |
|
_________________ Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34 |
|
|
|
|
|