|
Drystin Beginner
Joined: 24 Jul 2002 Posts: 18 Location: Denmark
|
Posted: 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 |
|
|
|
a5hi5m Beginner
Joined: 04 Mar 2004 Posts: 24 Location: Australia
|
Posted: 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 |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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 |
|
|
|
|
|