mIRC Home    About    Download    Register    News    Help

Print Thread
#62362 30/11/03 01:30 PM
Joined: Dec 2002
Posts: 339
F
Fjord artisan
OP Offline
Fjord artisan
F
Joined: Dec 2002
Posts: 339
on *:TEXT:*:#Chan:{ if (($chr(33) && $chr(63) && $chr(95) && $chr(2) && $chr(31) && $chr(68) && $chr(65) && $chr(78) && $chr(71) && $chr(69) && $chr(82)) isin $1-) { mode #Chan +MRb $address($nick,2) | kick #Chan $nick Flooo000000000000oooooood! } }

The thing is I need this to bad when all the $chr's in a msg in random order... but it kicks for example for r or for d... (on some tests it kicked someone for saying "u made scripts"

The flood msgs we do get look like

danger!_!DANGER??¿¿??danger!_!DANGER??¿¿??danger!_!DANGER??¿¿??danger!_!DANGER??¿¿??danger!_!DANGER??¿¿??danger!_!DANGER??¿¿??danger!_!DANGER??¿¿??danger!_!DANGER??¿¿??danger!_!DANGER??¿¿??danger!_!D

but they change the ccodes and the ?!'s place on every flood..

So I want the script to tiger with D, A, N, G, E, R, _, ?, !, , and  are in the same line in any order to kick the user...

Any help welcome.

Joined: Nov 2003
Posts: 67
C
Babel fish
Offline
Babel fish
C
Joined: Nov 2003
Posts: 67
Code:
ON @*:TEXT:*:#channel:{
  if ((*danger* iswm $strip($1-)) && ($chr(63) isin $1-) && ($chr(191) isin $1-) && ($chr(33) isin $1-)) { 
    mode #channel +MRb $wildsite 
    kick #channel $nick Flooo000000000000oooooood!
  }
}


irc.universochat.net
#escripting
Joined: Dec 2002
Posts: 339
F
Fjord artisan
OP Offline
Fjord artisan
F
Joined: Dec 2002
Posts: 339
Thank you.

Joined: Dec 2003
Posts: 3
A
Self-satisified door
Offline
Self-satisified door
A
Joined: Dec 2003
Posts: 3

ON @*:TEXT:*:#channel:{ if ((*danger* iswm $strip($1-)) && ($chr(63) isin $1-) && ($chr(191) isin $1-) && ($chr(33) isin $1-)) { mode #channel +MRb $wildsite kick #channel $nick Flooo000000000000oooooood! }}
Very interesting, but I have a question, where do I write this code... in remote?

Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
yes... preferibly at the top of a clean remote file because it's an catch all event (only for one channel though but still)


If it ain't broken, don't fix it!

Link Copied to Clipboard