mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2004
Posts: 10
M
mok Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Apr 2004
Posts: 10
Ok, here's a little script I found from mirc.stealth.net. I added this addon script into my mIRC today, and was testing it and it works great, but the only thing I would want to change is to actually give those people who violated by saying certain words more chances before they get kicked. For example, if I say "test" I would want the script to actually do a /say first to warn that guy in the channel and if the does it again for 2 times he'll be kicked and banned. Can someone please show me how this is done? Thanks in advance!



on @*:text:*:#: {
;Start Insert
if ($nick !isop #) {

var %SayKick = test, test2, test3

var %SayKickCount = 0
while ($gettok(%SayKick,0,44) > %SayKickCount) {
inc %SayKickCount
if ($gettok(%SayKick,%SayKickCount,44) isin $strip($1-)) {
var %SayKickHit = Yes
}
}
if (%SayKickHit == Yes) {
ban # $nick 2
kick # $nick Baned
}
}
;End Insert
}

Joined: Dec 2002
Posts: 397
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
kinda simple but it will eat you alive....

what u need to do is set a var

have the persons nick then how many times they said it then in the var would be equal to the word said

eg: %doodperson.2 B*tch

or it could be done the other way around
eg %doodperson.B*tch 2

this way can kinda get tedious and eat your resourceses alive
u can allways try a hash or even an ini file if u want


Need amazing web design for low price: http://www.matrixn3t.net
Joined: Apr 2004
Posts: 10
M
mok Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Apr 2004
Posts: 10
Hey thanks for the reply there. I am new to IRC scripting, so I don't really understand how you meant by adding the person nick? If i was to add the persons nick manually each time a person tries to spams the channel, i would be busy adding each nicknames in the script right? Can you please give me some more information about it? Thanks! laugh

Joined: Apr 2004
Posts: 4
C
Self-satisified door
Offline
Self-satisified door
C
Joined: Apr 2004
Posts: 4
maybe this will work for you or give you an idea of what to do:

on @*:text:*:#: {
if ($nick isreg #) {
var %SayKick = test, test2, test3
var %SayKickCount = 0
while ($gettok(%SayKick,0,44) > %SayKickCount) {
inc %SayKickCount
if ($gettok(%SayKick,%SayKickCount,44) isin $strip($1-)) {
var %SayKickHit = Yes
if (% $+ $nick == $null) { var % $+ $nick 1 }
}
}
if (%SayKickHit == Yes) {
while (% $+ $nick <= 1) {
msg # $nick This Is Your Only Warning
inc % $+ $nick
return
}
ban # $nick 2
kick # $nick Baned
unset % $+ $nick
}
}
}


Link Copied to Clipboard