Register forum user name Search FAQ

Gammon Forum

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 ➜ Tips and tricks ➜ How to gag annoying players

How to gag annoying players

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2  3 

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #30 on Sun 02 May 2004 09:44 PM (UTC)
Message
This gets asked so often I have now made a wiki page explaining pasting triggers which deals with exactly how to do this, with screen dumps.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by WhiteWolf   Canada  (18 posts)  Bio
Date Reply #31 on Tue 04 May 2004 02:18 AM (UTC)

Amended on Tue 04 May 2004 02:38 AM (UTC) by WhiteWolf

Message
Ok, before I go altering the trigger yet again...

Putting %1 in the 'Send' area, & in the Send To: area 'Output' does ~not~ solve my double-iteration problem.

I'm beginning to think its a trigger conflict, but I don't see how, as they are exclusive (one triggers on name at beginning of pose, other on name appended to end of a spoof)

I found the problem... both the above, despite supposedly being exclusive when set at the same sequence were both going off. There is ~no~ way it can match on both unless the person was manually appending a fake spoof tag on the end)

I reset the sequence, and its gone... *sigh* mapping sequences is gonna become a pain...


As for the Wiki-paste instructions, when I go to that main triggers window, my 'Paste' button is ~not~ lit, so I cannot paste, hence I have to do it all ~manually~.

Again, is this a 3.47 bug/flaw?

WhiteWolf (rather PO'd)
Top

Posted by WhiteWolf   Canada  (18 posts)  Bio
Date Reply #32 on Tue 04 May 2004 02:47 AM (UTC)
Message
ERF... formatting... Now I see how the client could misunderstand me. Its been way too long since I took Comp-Sci/Programming in college.

I understood the following line as a single 'phrase' to be matched, and I suspect MC dinna. What do I need to do to make the it one 'match-item'?

* ) [ Sample-Name ]

(thats what I had in the window, though name-edited)

Do I have to put another set of braces around it to make it one 'match-item'? Those brackets have to be used as they are the ones used by the mu*'s spoof-identifier. Its tacked onto the end of the spoof, with exactly that spacing too...

(thinking he could use a manual on 'How to Code Triggers')

WhiteWolf
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #33 on Tue 04 May 2004 09:53 PM (UTC)

Amended on Tue 04 May 2004 09:55 PM (UTC) by Nick Gammon

Message
Quote:

As for the Wiki-paste instructions, when I go to that main triggers window, my 'Paste' button is ~not~ lit, so I cannot paste, hence I have to do it all ~manually~.


You shouldn't have to do that manually, let's get that straight. If you copy from, and including <triggers> to </triggers> in a proper example and go to the trigger list and paste it, it *will* work. However copying from <trigger ... to </trigger> will not work. You need the <triggers> part. It looks for that before it enables the paste button.

I'm losing track here of what triggers you have, what text you are matching on, and what is the exact problem. Perhaps *you* copy the trigger/s you are using, the text you are matching on, and explain what is wrong. That way we can see exactly what you have.

Quote:

I understood the following line as a single 'phrase' to be matched, and I suspect MC dinna. What do I need to do to make the it one 'match-item'?

* ) [ Sample-Name ]


Again, I would like to see exactly what you have. Is this a regular expression or not? It is important. If not, you don't throw in extra brackets or it will try to match the brackets. If it is, it won't match. For instance, in a regular expression this:

[Nick]

doesn't match "Nick" in square brackets, it matches a *single* character which is one of the following: N, i, c, k.




- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by WhiteWolf   Canada  (18 posts)  Bio
Date Reply #34 on Wed 05 May 2004 08:09 AM (UTC)
Message
Thanks again Nick.

I see why I couldn't paste Flannel's 'corrected' trigger format (after I mentioned it had to be the beginning of the pose) The <triggers> & </triggers> was outside the noted 'copy' area, and that blocked my attempts.

Lemme dig thru my .mct file here, and get the two triggers...

</trigger>
<trigger
custom_colour="5"
enabled="y"
group="Pose_Clipper"
ignore_case="y"
keep_evaluating="y"
match="^Sample*"
name="Sample"
omit_from_output="y"
regexp="y"
sequence="92"
>
</trigger>

</trigger>
<trigger
custom_colour="5"
enabled="y"
group="Spoof-Gag"
ignore_case="y"
keep_evaluating="y"
match="* ) [ Sample ]"
name="Sample_2"
omit_from_output="y"
sequence="94"
>
</trigger>

Now I solved my problem by giving the first one sequence priority, but #2 should not interfere... what do I need to put around that text-sequence to have it interpreted as a whole, not as individual items?

WhiteWolf
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #35 on Wed 05 May 2004 07:52 PM (UTC)
Message
that copy area was to duplicate the trigger X times. If you wanted three triggers, copy that, then paste it inside the <triggers> </triggers> once. If you read the instructions at the end, I thought I made it clear.

As you were trying to add trigger en mass.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #36 on Thu 06 May 2004 10:21 PM (UTC)
Message
Quote:

Lemme dig thru my .mct file here, and get the two triggers...


You don't need to dig in the .mct file, although that will work. Just look at the triggers list, select the two triggers (Ctrl+Click to select discontiguous ones) and then hit the "copy" button. That will do the same thing without having to wade through the world file.

In fact, I had to juggle what you had by adding <triggers> and </triggers> to it, and removing an extra </trigger> in the middle. So it would have been simpler to just do what I suggested above.

Now, back to solving your problem.

Your first trigger isn't going to do much. It matches:

^Sample*

Being a regular expression that means matching a line starting with "Sampl" and followed by zero or more of the letter "e". ie.

Sampl
Sample
Samplee
Sampleee (and so on).

I would drop the asterisk, and match on "^Sample". That will match any line starting with "Sample".

The second one, which is not a regular expression will match on:

<anything> ) [ Sample ]

However it has to literally get that exact construction (including the spaces, brackets etc.).

Now if you posted some example lines which are what you are trying to gag, it would help.



- 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.


105,660 views.

This is page 3, subject is 3 pages long:  [Previous page]  1  2  3 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.