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
Goten4233
Newbie


Joined: 20 Mar 2003
Posts: 8

PostPosted: Thu Mar 20, 2003 5:34 am   

Chat Gagging help - PLEASE
 
Okay on my mud it's very simple
User chats 'Sentences'
I want to make an if statement to check if the person who chatted is one of my friends, and if not, gag the chat.

I tried making a variable and used the String List to set my friends.

I made the trigger like this.

The pattern is (%w) chats '(*)'
Then
#if {%1=@friend} {} {#gag}

But when it goes to check what is on friend it's like this for example.
Friend1|Friend2|Friend3|Friend4|etc.
So it doesn't check for each one separately...I would really like this solved if anyone knows why...please.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu Mar 20, 2003 6:20 am   
 
You are trying to check for list membership:

The pattern is (%w) chats '(*)'
Then
#IF (%ismember(%1,@friend)) {} {#GAG}


Ton Diening
Reply with quote
Goten4233
Newbie


Joined: 20 Mar 2003
Posts: 8

PostPosted: Thu Mar 20, 2003 9:53 pm   
 
Thank you so much. :)
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