| Arcades | Library | Travel | MP3 | Directory | Horoscope | Downloads | Mobile | Movies | Gallery | PHP Group |
| mIRC :: SCRIPTING & HELP mIRC Scripting help, General help, Tips and Tricks! |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Notice
on @*:notice:*:#:{
if ($nick isop #) || ($nick isvo #) || (dal.net isin $Nick) || (chanserv isin $Nick) || ($me isin $Nick) { halt } if ($len($strip($1-)) >= 1) { ;Note that I $strip the text before I use $len, so it won't count any ; control codes like colour or bold etc... .ignore -u60 $nick mode # +Mb $wildsite kick # $nick 1[10NOTICE: Are Not Allowed For The Users Its Allowed Only For The OPS1] } }
__________________
I Love AngelSoul :* |
|
#2
|
||||
|
||||
|
Re: Notice
Bilboul, pretty good snippet, but setting the mode +M, is gonna set it as the notice event goes on, so you might make a check event for that, thanks, have a nice day.
__________________
Me here, Me gone. |
|
#3
|
||||
|
||||
|
Re: Notice
BilbOuL, try using the not instead of the halt and the reg level instead of the op/voice, maybe a simple check if the nick is in the channel as some of the botnet attacks are using bots connected on high speeds and you wouldnt need to check if the nick is the chanserv or any of the services as it isnt in the channel in the first place. so instead of:
Code:
if ($nick isop #) || ($nick isvo #) || (dal.net isin $Nick) || (chanserv isin $Nick) || ($me isin $Nick) { halt }
Code:
if ($nick ison $chan) && ($nick isreg $chan) Code:
on @*:notice:*:#:{
if ($nick ison $chan) && ($nick isreg $chan) {
; note that in here i am checking if the event was triggered by some1
; that is still in the channel (bootnet, services or server) and then
; checks the level of the user, I am already an OP, so it wont react on me.
; faster cleaner codes.
if ($len($strip($1-)) >= 1) {
; i have some issues regarding this line.
.ignore -u60 $nick
mode # $iif(M !isin $gettok($chan(#).mode,1,32),+Mb,+b) $wildsite
kick # $nick [KICK REASON]
; ignore then set mode then kick
; and as u see it got it to check if the mode is set or not :)
}
}
}
I would say, loose the strip and get the snippet to kick on notices no matter what is in the notice.
__________________
:: i have been since the dawn of time. i will be until the dusk of eternity :: Last edited by ZAcK; 30-05-2005 at 04:34 AM. Reason: Final codes just REFUSE to align! |
|
#4
|
||||
|
||||
|
Re: Notice
ok guys
aborted no bro killo tamen il amen kill rawa2 msaytrin 3al wade3 eza 7tejna aya mouse3adet men2elak la tenzal bi asle7et il damar il shemil ![]()
__________________
I Love AngelSoul :* |
|
#5
|
||||
|
||||
|
Re: Notice
man he asked this question in may/2005, i think u`r a little bit late to answer`m :P
__________________
|
|
#6
|
||||
|
||||
|
Re: Notice
PHP Code:
__________________
Last edited by Cult; 21-11-2005 at 07:33 PM. |
|
#7
|
||||
|
||||
|
Re: Notice
or if u want it to kick when user sends more that 2 notice. for example.
>= 2 <= means when user notices the channel more than 2 times, he will be kick banned. you can edit the 2 number to set it how many notices max. allowed. Code:
on @*:NOTICE:*:#:{
if ($nick !isreg $chan) { return }
if ($len($strip($1-)) >= 2) {
ban $chan $nick 2
kick # $nick Mass Notices Are Not Allowed In $chan 4C14ult™
}
}
__________________
Last edited by Cult; 21-11-2005 at 07:34 PM. |
|
#8
|
||||
|
||||
|
Re: Notice
Hi again
![]() Code:
on @*:NOTICE:*:#:{
if ($nick !isreg $chan) { return }
if ($len($strip($1-)) >= 2) {
ban $chan $nick 2
kick # $nick Mass Notices Are Not Allowed In $chan 4C14ult™
}
}
Code:
if ($len($strip($1-)) >= 1) only way to kick this flooder would be kicking him for using control codes, and the max has to be set to zero codes. Never the less, kicking someone, for using control codes while noticing a channel would be the correct reason, unless you want it that way. Here is what I am using; I modified it a bit as I use Hash tables and custom kick messages for different channels and networks along with different triggers and actions. Code:
on @*:notice:*:#:{
if ($nick isreg $chan) {
var %fnotc = $dll(aircdll.dll,Flood,$+(notc,$chr(44),$wildsite) 1 1 1 )
if (+FLOOD* iswm %fnotc) ban -k $chan $nick 2 Notice Flood Detected $+([,$gettok(%fnotc,2,32),notices/,$gettok(%fnotc,3,32),secs])
}
}
Using such DLL will get the mIRC to do all its calculations in the DLL instead of getting the mIRC to do it which will get it to freeze get lagged cause of a botnet notice flood. Again, I modified this to be as simple as possible, I am using hash tables to save my settings, and using them here would mean I will have to post a large portion of my channel protection as I am using core aliases to run all my script. To explain how the code work Code:
Flood , <+desc> <+inc> <+max> <+secs>
$dll(aircdll.dll,Flood,$+(notc,$chr(44),$wildsite) 1 1 1 )
desc = flood type, in this situation it is notice. inc = is the increment for the event, normally it will be 1, unless you are using the DLL to check private flood (bytes) max = the max allowed events (in this case number of notices) sec = seconds duration Which means that the script in this case will kick for 1 notice in 1 sec, therefore changing the values of :” 1 1 1 to be 1 2 3 will get the code to kick on the second notice in three seconds, and so on. Using this DLL will take the OP to the next level of scripting, multi actions on each event, first a warning notice to the user then a kick, then a ban/kick… etc. As always, need help, contact me.
__________________
:: i have been since the dawn of time. i will be until the dusk of eternity :: |
|
#9
|
||||
|
||||
|
Re: Notice
thanx for u`r post man, good to hear from u again. and thanx for u`r snippets and explanation.
![]()
__________________
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Clemson soccer gains No. 1 notice (AP) | TheGodFather | Sports -Warm up first! | 0 | 22-09-2006 10:31 AM |
| Bird Flu Notice!! | wkd | Science, Philosophy & Logic | 0 | 30-03-2006 07:57 AM |
| Notice: Dont Talk While Recharging Ur Cell!! | wkd | Phones - PDAs - PALMs - iMates -etc... | 5 | 18-09-2005 07:43 PM |
| mass notice prot. | Cult | mIRC :: SCRIPTING & HELP | 20 | 14-03-2005 02:10 PM |
| what's the first thing you notice in a girl/guy? | Khawtaaa | The Lounge | 98 | 02-03-2005 10:00 AM |