Ivanalicius why did you ripped my addon for protection ?
Here is original code:
Dark-Pro by Dark-Master
#deop on
on *:DEOP:#: {
if ($opnick !== $me) halt << if you are deoped
if ($nick == $me) halt << you dont want to be kicked
if ($nick !ison $chan) halt << the cs problem
else {
msg $chan 0,69Mess with the best,die like a rest $nick $+ .
cs op $chan $me
timer 1 2 cs deop $chan $nick
timer 1 2 kick $chan $nick 0,69Mess with the best,die like a rest!
timer 1 2 ban $chan $nick
}
}
#deop end
#ban on
on @!*:ban:#: {
if ($banmask iswm $address($me,5)) {
chanserv unban #
if ( $chan == $active ) { timer 1 2 mode # -o $nick }
else { .cs deop $chan $nick }
if ( $chan == $active ) { timer 1 2 kick # $nick 0,69Mess with the best,die like a rest! }
if ( $chan == $active ) { timer 1 2 ban $chan $nick }
else { .cs ban # $nick 0,69Mess with the best,die like a rest! }
}
}
#ban end
#kick on
on *:kick:#: {
if ($knick == $me) {
if ($nick == $me) {
join #
}
elseif ($nick != $me) {
join #
timer 1 2 mode # -o $nick
timer 1 2 kick # $nick 0,69Mess with the best,die like a rest!
timer 1 2 ban $chan $nick
}
}
}
#kick end
#deprotect on
on *:rawmode:#: {
if (-a isin $1-) && ($me isin $1-) {
if ($nick == $me) { halt }
else {
cs protect #
}
}
if (-q isin $1-) && ($me isin $1-) {
if ($nick == $me) { halt }
else {
cs owner #
}
}
}
#deprotect end
alias dp { dialog -m dp dp }
dialog DP {
title "Dark-Pro"
size -1 -1 160 107
option dbu
box "ALL", 1, 2 2 50 50
box "Protect-Owner", 2, 55 2 50 50
box "DeOp", 3, 108 2 50 50
box "Kick", 4, 2 52 50 50
box "Ban", 5, 55 52 50 50
text "This Protection Was Created By Dark-Master", 6, 108 55 50 23, disable center
button "OK", 7, 109 88 49 12, ok
button "ON", 8, 5 12 44 12, push
button "OFF", 9, 5 34 44 12, push
button "ON", 10, 58 12 44 12, push
button "ON", 11, 111 12 44 12, push
button "ON", 12, 5 61 44 12, push
button "ON", 13, 58 61 44 12, push
button "OFF", 14, 58 34 44 12, push
button "OFF", 15, 111 34 44 12, push
button "OFF", 16, 5 84 44 12, push
button "OFF", 17, 58 84 44 12, push
}
on 1:dialog:dp:sclick:*: {
if ( $did == 8 ) { .enable #deprotect | .enable #kick | .enable #deop | .enable #ban | echo -a 0,129Enabled All }
if ( $did == 9 ) { .disable #deprotect | .disable #deop | .disable #kick | .disable #ban | echo -a 0,129Disabled All }
if ( $did == 10 ) { .enable #deprotect | echo -a 0,129Enabled DeProtect }
if ( $did == 11 ) { .enable #deop | echo -a 0,129Enabled Deop }
if ( $did == 12 ) { .enable #kick | echo -a 0,129Enabled Kick }
if ( $did == 13 ) { .enable #ban | echo -a 0,129Enabled Ban }
if ( $did == 14 ) { .disable #deprotect | echo -a 0,129Disabled DeProtect }
if ( $did == 15 ) { .disable #deop | echo -a 0,129Disabled Deop }
if ( $did == 16 ) { .disable #kick | echo -a 0,129Disabled Kick }
if ( $did == 17 ) { .disable #ban | echo -a 0,129Disabled Ban }
}
alias kiba $$1 $2- { | echo -s 0,129[ $chan ] - User $$1 Will Be Kicked - Reason: $2- | .ban $chan $$1 | .mode $chan -Q | .kick $chan $$1 $2- | mode # +Q }
on *:LOAD: {
echo -a 0,129You have loaded Dark-Pro by Dark-Master
echo -a 0,129Special Is That You Can Kick In +Q Mode
echo -a 0,129With Command /kiba Nick Reason
echo -a 0,129Enjoy ;)))))
}
It was one of my first addons for mIRC , first published in Vip-Script v.2 (3.12.2007)