|
trigger sends command twice
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Jedhi
(31 posts) bio
|
| Date |
Thu 08 Mar 2012 09:39 PM (UTC) [ quote
] |
| Message |
hi,
i'm trying to create a trigger when someone sends me a tell, i reply to it automessage. somehow it sends my reply twice. option is set to World.
any thoughts? | top |
|
| Posted by |
Nick Gammon
Australia (18,772 posts) bio
Forum Administrator |
| Date |
Reply #1 on Thu 08 Mar 2012 10:26 PM (UTC) [ quote
] |
| Message |
Show please?
 |
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.
|
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
| Posted by |
Jedhi
(31 posts) bio
|
| Date |
Reply #2 on Thu 08 Mar 2012 10:32 PM (UTC) [ quote
] Amended on Thu 08 Mar 2012 10:39 PM (UTC) by Jedhi
|
| Message |
trigger: http://dl.dropbox.com/u/60672885/trigger_bug.jpg
mud aardwolf. on the tech channel i recieved no help. on player only told, that he has the same problem and hasn't found a solution to fix it
<triggers>
<trigger
lines_to_match="3"
match="^(.+)tells you \'(.+)\'$"
omit_from_log="y"
regexp="y"
sequence="100"
>
<send>reply I think i'm AFK at the moment.</send>
</trigger>
</triggers>
| top |
|
| Posted by |
Nick Gammon
Australia (18,772 posts) bio
Forum Administrator |
| Date |
Reply #3 on Fri 09 Mar 2012 02:09 AM (UTC) [ quote
] |
| Message |
That trigger won't reply twice. Someone else had a similar issue recently and it turned out they had two such triggers. So each one replies.
Try turning on Game menu -> Trace, and then watch what happens. That tells you about each matching trigger. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
| Posted by |
Jedhi
(31 posts) bio
|
| Date |
Reply #4 on Fri 09 Mar 2012 08:14 AM (UTC) [ quote
] |
| Message |
don't have 2 triggers. with trace:
TRACE: Matched trigger "^{tell}(?<msg>.*)"
TRACE: Executing trigger script "chats"
You tell Melviant 'I think i'm AFK at the moment.'
and this is done twice. maybe it has something to do with aardwolf client mod? | top |
|
| Posted by |
Nick Gammon
Australia (18,772 posts) bio
Forum Administrator |
| Date |
Reply #5 on Fri 09 Mar 2012 09:02 PM (UTC) [ quote
] |
| Message |
Quote:
TRACE: Executing trigger script "chats"
What script "chats"?
Quote:
...and this is done twice.
What is done twice? Can you post the whole thing please?
Are you copying/pasting? Or retyping? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
| Posted by |
Fiendish
USA (849 posts) bio
Global Moderator |
| Date |
Reply #6 on Sat 10 Mar 2012 01:36 AM (UTC) [ quote
] Amended on Sat 10 Mar 2012 02:17 AM (UTC) by Fiendish
|
| Message |
Change your trigger pattern to
match="^{tell}(.+)tells you \'(.+)\'$"
This is an unfortunate, though in this case solvable, side effect of only having partial line substitution capability in mushclient and the apparent inability to have keep_evaluating="n" halt extra-plugin triggering (has this always been the case? I can't remember).
The very short version of a rather long story here is that the aard_chat_echo.xml plugin triggers on tagged tells and re-displays them sans tags in a way that causes coarsely defined triggers to fire again. This is unintentional, but not easily solved given the above.
For history see:
http://mushclient.com/forum/bbshowpost.php?id=11073&page=1
and uh...probably this...
http://mushclient.com/forum/bbshowpost.php?bbsubject_id=6356 |
http://aardwolfclientpackage.googlecode.com/ | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
1,072 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )