Skip to content
MSN Addons

little help

A TG007 community discussion started by rumba.

Discussion 3 posts
Page 1 of 1
Open
Topic #4742 · 3 published posts · 691 views

hey plz i want the script read badword from text and if it in the text kick the nick

 

on *:TEXT:*: {

if (wt i 've to write here? ) { kick # $nick badword }

}

on *:TEXT:*:#: {
 var %l = 1
 while ($read(badwords.txt,%l)) {
   if ($read(badwords.txt,%l) isin $1-) { kick # $nick bad word | break }
   inc %l
 }
}

 

Something like this. basically just start a new text doc, put all the bad words in it, so the bad word you want the script to respond to, on it's own line, and save that as badwords.txt in mIRC's main directory.

 

the list would look like this

 

crap

stupid

lmao

etc.

 

 

Ofcourse i didn't use offensive words cause it wouldn't be good to.

so i tried to make it like this

 

on *:kick:*: { 
 var %l = 1
 while ($read(text\kickreason.txt,%l)) {
   if ($read(text\kickreason.txt,%l) isin $1-) { kick # $nick bad word in the reason }
 }
}

 

but it didnt work and the script is hanging up also i can replace it with

 

if (shit isin $1-) { kick # $nick badword in reason }

 

but it will kick any word contain ''shit'' so i try to decrease the words

Edited Sep 9, 2005 9:23 AM by rumba