trigger help, and regexp issues.

Posted by Acton on Thu 26 Jun 2008 09:52 PM — 4 posts, 18,624 views.

#0
Hello,
I've got a question, and actually there are two but they're almost the same thing.
First, I'm working on ignoring someone on a mud--perma ignores haven't been implimented.
What I've done, is done something like: *[INFO] bla* and then just sent ignore bla, but I'd only like to ignore them if they go ld, connect, or log off.
Also, I'm really confused on how regexp works. I get the range thing, [a-c] and some others, but I'm not really able to apply it to something I need.
I'm using php, which wasn't recommended, but it's what I know efficiently enough to use. I'm going to try to make databases of info, etc, and am trying to work up to that point.
Help would be awesome, and thanks.
Australia Forum Administrator #1
You shouldn't need to use PHP or any scripting to do a simple ignore trigger. Please copy and paste your trigger so I can see what you are doing.

Use this method: http://mushclient.com/copying


#2
Hello,
There are two triggers in question
The first is this:
When someone logs on, I have them autoignored but they are using a bot to get their messages through. Zoal and lotsapoon are both mine, which I'm using for testing.
Here's the trigger:
^Riel chats\, \'(Zoal)|(Lotsapoon) was last seen (.*?)$
basically, I want to just be able to add names to that list, and get it to trigger on those.
Second is this:
^symon tells you\, \'\:(.*?)\: findzoal\.\'$
basically, the name between the : is a code that I'm using so not everyone can send me findzoal.
Thanks,
Australia Forum Administrator #3
Use this method: http://mushclient.com/copying


Also please post some example output.