Tchatting.com Forums
mIRC :: SCRIPTING & HELP mIRC Scripting help, General help, Tips and Tricks!

User Name
Password
Reply
 
Thread Tools Display Modes
  #1  
Old 25-04-2005, 01:38 PM
BilbOuL's Avatar
BilbOuL BilbOuL est déconnecté
Registered User
 
Join Date: Aug 2004
Location: Beirut - Dahieh
Posts: 225
BilbOuL is a jewel in the roughBilbOuL is a jewel in the roughBilbOuL is a jewel in the roughBilbOuL is a jewel in the rough
Send a message via AIM to BilbOuL Send a message via MSN to BilbOuL Send a message via Yahoo to BilbOuL
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 :*
Reply With Quote
  #2  
Old 29-04-2005, 03:52 PM
anmlhckr's Avatar
anmlhckr anmlhckr est déconnecté
Scripting Mod
 
Join Date: Jan 2005
Location: LB
Posts: 163
anmlhckr will become famous soon enoughanmlhckr will become famous soon enough
Send a message via MSN to anmlhckr Send a message via Yahoo to anmlhckr
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.
Reply With Quote
  #3  
Old 10-05-2005, 03:17 AM
ZAcK's Avatar
ZAcK ZAcK est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Upper Saddle River, NJ USA
Posts: 54
ZAcK is on a distinguished road
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 }
use:
Code:
if ($nick ison $chan) && ($nick isreg $chan)
so the code will be:
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 :)
    }
  }
}
Anyone can flood and not get kicked as the script will only respond if there was text in the notice! What if the there is no text and only one thing was sent and it was the bold code or the underline code...etc. The flooder will go on flooding and flooding and your script will NOT even recognize that he is there! Example: /notice #leb 
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!
Reply With Quote
  #4  
Old 28-09-2005, 08:23 PM
BilbOuL's Avatar
BilbOuL BilbOuL est déconnecté
Registered User
 
Join Date: Aug 2004
Location: Beirut - Dahieh
Posts: 225
BilbOuL is a jewel in the roughBilbOuL is a jewel in the roughBilbOuL is a jewel in the roughBilbOuL is a jewel in the rough
Send a message via AIM to BilbOuL Send a message via MSN to BilbOuL Send a message via Yahoo to BilbOuL
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 :*
Reply With Quote
  #5  
Old 29-09-2005, 04:04 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Notice

man he asked this question in may/2005, i think u`r a little bit late to answer`m :P
__________________
Reply With Quote
  #6  
Old 02-10-2005, 12:01 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Notice

PHP Code:
on @*:NOTICE:*:#:{
  
if ($nick isreg $chan)
  
ban $chan $nick 2
  kick
# $nick Mass Notices Are Not Allowed 4C14ult™    
}
__________________

Last edited by Cult; 21-11-2005 at 07:33 PM.
Reply With Quote
  #7  
Old 02-10-2005, 12:04 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
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.
Reply With Quote
  #8  
Old 28-10-2005, 05:54 AM
ZAcK's Avatar
ZAcK ZAcK est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Upper Saddle River, NJ USA
Posts: 54
ZAcK is on a distinguished road
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™
  }
}
Actually this will NOT kick unless the notice contains 2 or more characters; I mentioned this in a different post with the same codes that I had issues regarding this line:
Code:
if ($len($strip($1-)) >= 1)
as anyone can flood using sending only an empty notice containing only 1 control code (bold, color, underline, reverse) which is actually isn't considered as a letter, so this code wouldn't recognize it as a flood 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])
  }
}
You will need to be using a DLL called: aircdll.dll by tabo, if you need it, please contact me and I’ll send it to you. This DLL has a lot of features and controls over the mIRC, but this controlling floods is the main reason – as the author said in his release notes- he made this DLL. All of us remember how the mIRC used to freeze couple of years ago, and the nick list would turn white, when a +100 bots joined a channel, or when bots used to notice flood channels using codes causing screen lagging/freezing; getting it to move like a wave.
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 )
flood = flood
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 ::
Reply With Quote
  #9  
Old 30-10-2005, 01:33 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Notice

thanx for u`r post man, good to hear from u again. and thanx for u`r snippets and explanation.
__________________
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump

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

All times are GMT. The time now is 05:50 AM.
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
All data and information are copyright of DOTLeb Network