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
Drystin
Beginner


Joined: 24 Jul 2002
Posts: 18
Location: Denmark

PostPosted: Sun Nov 28, 2004 2:12 am   

IF NOT
 
Hey out there...
Im trying to figure out how to get this to work.
Pattern : (*) has entered the world.

Then i want an IF to look at the %1 and if %1 is NOT a member of @adel have it execute a command

I hope you undestand.

please help me.
_________________
Drystin
Reply with quote
a5hi5m
Beginner


Joined: 04 Mar 2004
Posts: 24
Location: Australia

PostPosted: Sun Nov 28, 2004 9:31 am   
 
#tr {Pattern : (*) has entered the world.} {#if !%ismember( %1, @adel) {#echo command} {#noop}}

replace the #echo command with what ever you want to execute.
_________________
Smoking@BatMUD
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun Nov 28, 2004 9:48 am   
 
ok since %ismember is case sensitive and it always helps to quote strings here is a rewrite of of the previous reply. (This is meant to be pasted in the command line (where you send mud commands) and then hit enter)


#TRIGGER "worldenter" {(*) has entered the world.} {#IF (!%ismember( %lower( "%1"), %lower( @adel))) {#ECHO NOT A MEMBER} {#NOOP}}

Used Pretty Print
Syntax Colourizer
_________________
Zmud Support Library
Zmud Knowledge Base
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