Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
reapz
Newbie


Joined: 31 Mar 2005
Posts: 3

PostPosted: 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.
Reply with quote
Maelstrom
Apprentice


Joined: 10 Feb 2005
Posts: 158

PostPosted: 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
Reply with quote
reapz
Newbie


Joined: 31 Mar 2005
Posts: 3

PostPosted: 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 Very Happy
Reply with quote
Maelstrom
Apprentice


Joined: 10 Feb 2005
Posts: 158

PostPosted: 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}}
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: 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}
_________________
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Thu Mar 31, 2005 10:20 pm   
 
*rpoke*

#TRIGGER {^~<{@Block} OOC:~> '*'} {#GAG}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
reapz
Newbie


Joined: 31 Mar 2005
Posts: 3

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net