Top

Blacklist


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  6.0 (of 3 scores)
Date Added  Nov 27, 2006
Last Updated  Feb 19, 2007
Tags  blacklist 

Introduction

This is a channel blacklist script that I made it is for your bot if it is kicked 5 times it will blacklist the channel that has kicked it storing it in the black.ini and part the channel telling them it is blacklisted next time it is invited.. to use do alt+r and past into your remotes
To add to list type !addchan #channame To Remove type !delchan #channame To view if a channel is in the list type
!viewblist #channel To change the colors change the numbers located in the aliases at the top of the script if the number of the color is not double figured type for e.g 04 instead of 4
Enjoy !

Grab the Code

,Blacklist
,By Cobra_strike
,Made on 27/11/06
alias c1 { return $+(10,$1-) } 
alias c2 { return $+(04,$1-) }
on *:kick:#: { 
  if ($knick == $me) { 
    inc $+(%,kick.,$chan) 
    if ($($+(%,kick.,$chan),2) > 4) { 
      /writeini black.ini bans $chan banned
      unset $+(%,kick.,$chan) 
    } 
  } 
}
on me:*:join:#: {
  if $ini(black.ini,bans,$chan) {
    part $chan $c1 This channel has Been blacklisted To have this removed please contact $c2 Yournick.
  }
  else {
    if ($chan != #bots) { 
      if ($($+(%,kick.,$chan),2)) var %left = $+($calc(5 - $v1),/5) 
      else var %left = 5/5 
      .msg # $c1 If i am kicked $c2 5 $c1 Times this channel will be blacklisted Number of kicks left $c2 %left       
    }
  }
}
on *:TEXT:!addchan &:#: {
  if ($nick == yournick) {
    if $ini(black.ini,bans,$2) {
      notice $nick $2 is Already blacklisted
    }
    else {
      writeini -n black.ini bans $2 banned
      msg $chan $c2 $+ $2 $c1 $+ has been Succesfuly added to the blacklist by - $c2 $+ $nick
    }
  }
}
on *:TEXT:!delchan &:#: {
  if ($nick == yournick) {
    if $ini(black.ini,bans,$2) {
      remini black.ini bans $2 banned
      msg $chan $c2 $+ $2 $c1 $+ has been Succesfuly Removed from the blacklist by - $c2 $+ $nick
    }
    else {
      notice $nick $2 is not blacklisted
    }
  }
}
on *:TEXT:!viewblist*:#: {
  if ($nick == yournick) { 
    if (!$2) notice $nick Please Specify a channel to lookup.
    elseif ($ini(black.ini,bans,$2)) notice $nick $2 is blacklisted 
    else notice $nick Channel does not appear in the blacklist
  }
}

Comments

  (13)  RSS
Cobra_Strike
Comments: 25
 
mIRC Snippet:  Blacklist
Posted on Nov 27, 2006 3:48 pm
I have added the missing -n switch to the writeini part now
sean
Comments: 109
 
mIRC Snippet:  Blacklist
Posted on Nov 28, 2006 2:14 am
a lot more time/effort could be put into this. one thing i did notice, was:
"if ($nick == Ccaveman84) {"
this should have been removed upon submitting; and a few other things, backslashes and such. it doesn't look bad. (quick glance)
HassanAbbas
Comments: 18
 
mIRC Snippet:  Blacklist
Posted on Nov 28, 2006 11:14 am
For BOt ??
Cobra_Strike
Comments: 25
 
mIRC Snippet:  Blacklist
Posted on Nov 28, 2006 11:16 pm
Lol thank you for pointing that out sean I completely forgot about that I have amended this now along with the slashes and thanks for the comment

and they were /forward slashes not \back slashes (He He) ;p
Please feel free to score me on this script
Thank you.

And hassan yes it is for a bot
RoninWarrior
Comments: 252
 
mIRC Snippet:  Blacklist
Posted on Dec 8, 2006 4:46 pm
this is a pretty nice black list but i would use -n with the ini staements as i have said before
Cobra_Strike
Comments: 25
 
mIRC Snippet:  Blacklist
Posted on Feb 19, 2007 6:46 pm
Noticed a couple of errors and fixed them so this script will be working better now ^_^
sp33d-d3m0nx
Comments: 3
 
mIRC Snippet:  Blacklist
Posted on May 20, 2007 5:53 pm
i reccomend you add
alias blacklist {
/window -edolCk0 @Black_List -1 -1 200 200 | Black_List.Play}
incase someone blacklists themself and they cant rmeove it.
brian666
Comments: 3
 
mIRC Snippet:  Blacklist
Posted on Jul 17, 2007 8:10 pm
nice man i love it, but do you have it where the words are in color?
brian666
Comments: 3
 
mIRC Snippet:  Blacklist
Posted on Jul 17, 2007 9:21 pm
the delchan wont work =(
Joshuaxiong1
Comments: 127
 
mIRC Snippet:  Blacklist
Posted on Oct 8, 2007 1:53 am
I can't seen to firgure out how to add or remove
nicola.charmed
Comments: 2
 
mIRC Snippet:  Blacklist
Posted on Dec 24, 2007 4:49 am
script works lovely for me just wat i was looking for, thankyou for posting this!!!!

nicola
Joshuaxiong1
Comments: 127
 
mIRC Snippet:  Blacklist
Posted on Feb 1, 2008 9:48 pm
No reason for a blacklist? and how are you suppose to know all the blacklisted channel?
Phoenix847
Comments: 13
 
mIRC Snippet:  Blacklist
Posted on Oct 1, 2008 8:42 pm
A quick way to do this is instead of putting "yournick", set a variable... Like %blname (Your Name)
And then change everything from "yournick" to %blname
Code:
alias blname {
set %blname $1
echo -a :: Your BlackList name has been set to $1 ::
}

Then add in the description to do /blname (Your Name) so the script will work.
It makes things easier :]

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom