Flexi Grandmaster Cheater Supreme
Reputation: 0
Joined: 05 Dec 2006 Posts: 1544 Location: Singapore
|
Posted: Sun Dec 02, 2007 2:24 am Post subject: Hi, anyone here does mRIC Scripting? |
|
|
Hiya, i need help here.
My country uses mirc to spam their IP in it so that people can join their lan games.
So, i need help with making a script to detect ip so that people would not overspam the ip in the channel.
Over much test, i guess this is the best to detect.
| Code: | | $validip($gettok(%repeat.check,%iii,32)) == $true |
But i have trouble making this into a full Script.
I want it to be like,
| Quote: | | 222.164.197.9 << MY IP!! COME JOIN MY GAME NOW! |
Then my bot will temp ban for repeat spamming of IPs.
This is the script i have for repeat ban.
How do i add this | Code: | | $validip($gettok(%repeat.check,%iii,32)) == $true |
so that they will ban on repeat on IP but not banning on normal chat repeat spam.
| Code: | on @*:text:*:#:{
if ( %rep_tid1 == $null ) { set %rep_tid1 $60 }
if ( %rep_ban1 == $null ) { set %rep_ban1 $300 }
if ( %rep_antal1 == $null ) { set %rep_antal1 $4 }
if ($nick isop $chan) { halt }
if ($nick isvoice $chan) { halt }
if ($nick == null) { return }
var %rp.repeats = rp. $+ $nick $+ . $+ $chan
var %rp.text = rp. $+ $nick $+ . $+ $chan $+ $text
if ( % [ $+ [ %rp.repeats ] ] == $null ) {
set -u [ $+ [ %rep_tid1 ] ] % [ $+ [ %rp.repeats ] ] 1
set -u [ $+ [ %rep_tid1 ] ] % [ $+ [ %rp.text ] ] $1-
}
elseif ( % [ $+ [ %rp.text ] ] == $1- ) {
inc % [ $+ [ %rp.repeats ] ]
}
elseif ( % [ $+ [ %rp.text ] ] != $1- ) {
set -u [ $+ [ %rep_tid1 ] ] % [ $+ [ %rp.text ] ] $1-
set -u [ $+ [ %rep_tid1 ] ] % [ $+ [ %rp.repeats ] ] 1
}
if ( % [ $+ [ %rp.repeats ] ] >= %rep_antal1 ) {
.msg # 15,1[9,1 $nick 15]15,01[08 has been muted for 5Min for breaking the 3Spams/Min rule 15]
ban -u $+ %rep_ban1 # $nick %bs
unset %rp. $+ $nick $+ . $+ $chan
unset %rp. $+ $nick $+ . $+ $chan $+ . $+ text
}
} |
_________________
|
|