|
reapz Newbie
Joined: 31 Mar 2005 Posts: 3
|
Posted: Thu Mar 31, 2005 6:36 pm
Channel ignore script (person specific) |
I've tried writing this a couple different ways, and it never works. I'm new to ZMUD scripting, but have worked on other stuff (like mirc scripting) and I'm just getting frustrated now. I believe it has something to do with my pattern matching, so I want to see what you guys come up with.
What I'm basically looking for is an ignore script, that will block/mute/ignore someone.
Sample:
<Lamerone OOC:> blah blah
<Dumbass OOC:> OMGBBQ! HAHA
I think my problem lies with the <>'s but I've tried matching agianst
?name OOC:* and *name OOC* but it never works.
Could you help me out? I'd settle for a name specific script, where I'd have to copy and paste the trigger each time for each person, but somehow holding all the people I wish to ignore in a database would be nice. If someone can help me with this, I'll be able to fix it up to support all the different channels on my own.
Thanks in advance for any help you can give me. |
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: Thu Mar 31, 2005 6:58 pm |
Something like this should work...
#TRIGGER {^~<@Block OOC:~>} {#GAG}
Also add a variable called "Block", make it a list, and add/remove people as you see fit...
Under options tab I would check option for case sensitive |
|
|
|
reapz Newbie
Joined: 31 Mar 2005 Posts: 3
|
Posted: Thu Mar 31, 2005 7:52 pm |
Didn't work. I have:
#CLASS {IGNORE}
#VAR Block {Vrudash|Nihkos}
#TRIGGER {^~<@Block OOC:~>} {#GAG}
#CLASS 0
and when I tell them to say something, I still see it:
<Vrudash OOC>: 'hmm'
<Nihkos OOC>: 'Hmm.'
And yes, I have triggers enabled |
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: Thu Mar 31, 2005 8:26 pm |
Hmm ok, doesnt seem to work like I thought it would...
Try:
#TRIGGER {^~<(%w) OOC:~>} {#IF %ismember(%1,@Block) {#GAG}} |
|
|
|
DeathDealer Adept
Joined: 20 Jul 2004 Posts: 268
|
Posted: Thu Mar 31, 2005 8:42 pm |
This prolly aint it, but try this if Maelstroms 2nd try dont work:
#TRIGGER {^~<<@Block> OOC:~>} {#GAG}
Note: far as I can tell it won't gag more than one line.
so if it always starts and ends with a ' then prolly should put '*' in there.
#TRIGGER {^~<<@Block> OOC:~> '*'} {#GAG} |
|
_________________
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Thu Mar 31, 2005 10:20 pm |
*rpoke*
#TRIGGER {^~<{@Block} OOC:~> '*'} {#GAG} |
|
|
|
reapz Newbie
Joined: 31 Mar 2005 Posts: 3
|
Posted: Fri Apr 01, 2005 11:28 am |
Ok, I noticed one thing while trying (and failing) with your guys' examples. We had it as OOC:> when it's OOC>:
Well, got it working, and I can't thank you all enough, because it was driving me crazy. It also appears : needed a ~ before it. I added in an alias to add people on the fly. I also had it echo to me when a victim tried using the OOC channel, simply for testing purposes. Once again, thanks!
#CLASS {IGNORE}
#ALIAS IGNORE {#VAR BLOCK @BLOCK|%1}
#VAR Block {Victim1}
#TRIGGER {^~<(%w) OOC~>~:} {
#IF %ismember( %1, @Block) {
#GAG
#ECHO VICTIM_IGNORED
}
}
#CLASS 0 |
|
|
|
|
|