mIRC Home    About    Download    Register    News    Help

Print Thread
#204538 23/09/08 03:19 PM
Joined: Sep 2008
Posts: 2
F
Filth Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
F
Joined: Sep 2008
Posts: 2
I'm new to scripting, so I need someone to help me with this...

I want a script that says "It's Filth. With a capital F." whenever someone says "filth" (with "f" instead of "F") on a channel. Is there a way to do this? I've tried it several times and failed, but like I said, I'm new to this.

Joined: Jul 2006
Posts: 4,163
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,163
Code:
on *:text:*:#:if ($istokcs($strip($1-),filth,32)) msg $chan It's Filth


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Sep 2008
Posts: 2
F
Filth Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
F
Joined: Sep 2008
Posts: 2
I know this is old now, but... Right now the script won't work if there's any symbol next to the "filth". Is there a way to make it ignore these (and only these) symbols if there's one of them after that word:

. , ! ? : ; '

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Code:
on $*:TEXT:/(filth)/S:#:msg # It's Filth.


Link Copied to Clipboard