mIRC Home    About    Download    Register    News    Help

Print Thread
#139531 16/01/06 03:32 AM
Joined: Jan 2006
Posts: 2
T
Bowl of petunias
OP Offline
Bowl of petunias
T
Joined: Jan 2006
Posts: 2
Hi all
Im after a script that will set the channel to +m if there is alot of text to the channel. After x secs it will then set channel back to -m.

#139532 16/01/06 03:46 AM
Joined: Jun 2005
Posts: 127
H
Vogon poet
Offline
Vogon poet
H
Joined: Jun 2005
Posts: 127
Code:
on @*:text:*:#chan: {
  if (!%lines. [ $+ [ $chan ] ]) { set -u[color:red]3[/color] %lines. [ $+ [ $chan ] ] 1 }
  else { inc %lines. [ $+ [ $chan ] ] 1 }
  if (%lines. [ $+ [ $chan ] ] == [color:blue]5[/color]) { mode $chan +m | timerfloodprot 1 [color:green]10[/color] mode $chan -m }
}



N lines in N seconds
Time to keep +m


-- HAMM3R (aka: alhammer)
http://www.HAMM3R.net
#139533 16/01/06 05:35 AM
Joined: Jan 2006
Posts: 2
T
Bowl of petunias
OP Offline
Bowl of petunias
T
Joined: Jan 2006
Posts: 2
Thanks for that.

With the same script how do i kick the person flooding with a msg "Please dont flood #chan if you continue you will be banned" and if they continue then they get banned.


Link Copied to Clipboard