Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Plugins
➜ Copying emote or remote text to chat redirector window plugin
Copying emote or remote text to chat redirector window plugin
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2 3
Posted by
| Woki
(17 posts) Bio
|
Date
| Reply #15 on Sun 26 Apr 2015 07:26 PM (UTC) |
Message
| I'm now trying to keep other things OUT of the redirector.
<trigger
enabled="y"
keep_evaluating="y"
match="^(?!moon dragon|rat|unburdened|for sale|).*$"
regexp="y"
script="chattrigger"
sequence="60"
>
</trigger>
I am trying to specify particular things that copy over in souls or actions that I don't want, so if my moon dragon done anything (sometimes she does an awful lot all at once) that line of action won't copy to the redirector. I got this from your guide and I know I'm not doing it right. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #16 on Sun 26 Apr 2015 07:47 PM (UTC) |
Message
| Omit: script="chattrigger"
Then it matches, but doesn't go to the other window.
Then uncheck "keep evaluating". Then it won't go on to be matched by the main chat trigger. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Woki
(17 posts) Bio
|
Date
| Reply #17 on Sun 26 Apr 2015 11:00 PM (UTC) Amended on Sun 26 Apr 2015 11:18 PM (UTC) by Woki
|
Message
| I realized what I missed, I had forgotten to omit from output as well.
Now the only thing I can't figure out is why the rest of it still isn't working. I've missed something simple, I know. | Top |
|
Posted by
| Woki
(17 posts) Bio
|
Date
| Reply #18 on Sat 02 May 2015 05:42 PM (UTC) |
Message
| I've tried tweaking things in my script and it's still not ignoring the listed names. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #19 on Sat 02 May 2015 09:11 PM (UTC) |
Message
| Copy and paste your amended trigger please. Also show the trigger you use for the chats you do want to see. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Woki
(17 posts) Bio
|
Date
| Reply #20 on Sat 02 May 2015 11:09 PM (UTC) Amended on Sun 03 May 2015 03:26 AM (UTC) by Nick Gammon
|
Message
| Ok, this is what I have for what I want to see and what works at present.
<trigger
enabled="y"
ignore_case="y"
match="(^)([(.*)]|\(dragon's flock\)|\(number chasers\)|\(Tshop Spotters\)|\(pishe\)|\(clan viras\)|\(clan_viras\)|\Seamstresses\)|\(thieves\)|\(wizards\)|\(warriors\)|\(witches\)|\(assassins\)|\(RRU\)|\(newbiehelpers\)|\(newbie\)|\(Seamstresses\)) (.*)$"
regexp="y"
script="chattrigger"
sequence="60"
>
</trigger>
<trigger
custom_colour="2"
enabled="y"
ignore_case="y"
match="(^)you (newbie-tell|newbiehelpers-tell|tell |ask |exclaim |)(.*)(\:)(.*)"
regexp="y"
script="chattrigger"
sequence="60"
>
</trigger>
<trigger
back_colour="14"
custom_colour="5"
enabled="y"
ignore_case="y"
match="^(.*?)$"
match_back_colour="y"
match_text_colour="y"
regexp="y"
script="chattrigger"
sequence="60"
text_colour="15"
>
</trigger>
<trigger
enabled="y"
keep_evaluating="y"
match="^(.*?)$"
match_text_colour="y"
regexp="y"
script="chattrigger"
sequence="100"
text_colour="13"
>
</trigger>
I've played around with my scripts and colours some more, and I've managed to change my moon dragon text line to white and then have it not copy over, but that then means I would have to specify each thing by name and change the colours for those lines. Here's what I have working at the moment:
<trigger
custom_colour="17"
enabled="y"
ignore_case="y"
keep_evaluating="y"
match="(^.*dark gold moon dragon.*$)"
regexp="y"
sequence="59"
other_text_colour="gainsboro"
>
</trigger>
So then the emotes that the dragon does, the colour is changed to white - gainsboro, and are not picked up in the redirect.
Um, does that make any sense? | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #21 on Sun 03 May 2015 03:29 AM (UTC) |
Message
|
Quote:
I'm now trying to keep other things OUT of the redirector.
match="^(?!moon dragon|rat|unburdened|for sale|).*$"
I don't see that in your posted code. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Woki
(17 posts) Bio
|
Date
| Reply #22 on Sun 03 May 2015 06:39 PM (UTC) Amended on Sun 03 May 2015 07:13 PM (UTC) by Woki
|
Message
| I didn't manage to get that one working, so I left it out. I've only managed to get it working with moon dragon and rat by specifying them individually at the moment.
I have other text go across as well, like the unburdened text and sometimes when I list a shop's stock it puts the 'the shop has for sale:'. So I imagine if I want to stop that I'll have to list those by name individually too. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #23 on Sun 03 May 2015 08:00 PM (UTC) |
Message
| Please post the text you expect to see (from the MUD) and describe which lines you expect to be redirected and which ones not. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Woki
(17 posts) Bio
|
Date
| Reply #24 on Sun 03 May 2015 10:41 PM (UTC) |
Message
| I'm looking for my guild messages to be redirected and any clubs I am in.
Tells should go across as well in the original format that I see in the mud.
I am looking for emotes, remotes and souls to go over from players to the redirector.
If possible I would like things that aren't from players to not be copied over - if that means I have to then add new things to a list of NPCs whose actions I don't want to see, so be it.
In the mud itself I don't mind seeing my tells/chats and things in there as well - I just like having the redirect to catch things if I'm in combat groups. | Top |
|
Posted by
| Meerclar
USA (733 posts) Bio
|
Date
| Reply #25 on Mon 04 May 2015 03:34 AM (UTC) |
Message
| Can you give us some actual text from the MUD to work with? Doesn't need to be much but a sample of each type of message you want to redirect would be best. Including some of the stuff from several NPCs that you don't want copied would be nice as well for testing an exclusion routine. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | Top |
|
Posted by
| Woki
(17 posts) Bio
|
Date
| Reply #26 on Tue 05 May 2015 09:48 AM (UTC) |
Message
| Ok, so er,
(thieves) Nienna's wispy voice comes from the wooden bracelet, saying: Angua is currently on Elm Street.
Nienna tells you: Hello, how are you today!
You tell Nienna: Very well thank you, I'm out stealing pretty jewellery!
Nienna hugs you!
The dark gold moon dragon flicks you with her tongue.
The grey rat bounces around, happily.
Gassy Holmsfirth greets you.
(Now, the tricky part is identifying what's what.) At present I've set remotes to magenta, remotes and souls to blue, so I can split them off to my redirector along with my text.
Anything my moon dragon does to me also gets copied, but I don't want that. I'm trying to basically get anything that a non-player actions to me to not be copied to my chat redirector. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #27 on Tue 05 May 2015 07:43 PM (UTC) |
Message
| So in that example what do you not want redirected? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Woki
(17 posts) Bio
|
Date
| Reply #28 on Tue 05 May 2015 08:11 PM (UTC) |
Message
| I'm hoping to Not have directed, what the moon dragon or the rat does, heck, any animals at all, or what NPC's emote to me. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #29 on Tue 05 May 2015 08:40 PM (UTC) |
Message
| You are going to have to be more specific here. After many requests you finally post what you are getting from the MUD.
Now I tried that with the plugin and the triggers you mentioned above, and only two lines got shown in the miniwindow.
(thieves) Nienna's wispy voice comes from the wooden bracelet, saying: Angua is currently on Elm Street.
You tell Nienna: Very well thank you, I'm out stealing pretty jewellery!
Line by line: Which lines do you want in the miniwindow? Which ones not? What is happening that you don't want? I can't just guess. |
- Nick Gammon
www.gammon.com.au, www.mushclient.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.
99,356 views.
This is page 2, subject is 3 pages long:
1
2 3
It is now over 60 days since the last post. This thread is closed.
Refresh page
top