![Smile :)](./images/smilies/icon_smile.gif)
Now this is my second problem with scripts
![Smile :)](./images/smilies/icon_smile.gif)
This is a chalenge for you
![Smile :)](./images/smilies/icon_smile.gif)
In this scripts When i write .masskick in DCC to kick all chaters in my Chanel, the bot kicks also and Me:( I don't want to kick me with the others chaters
![Smile :)](./images/smilies/icon_smile.gif)
Here is the script :
proc dcc_masskick {nick idx arg} {
global botnick
if {$arg== ""} {
putdcc $idx " masskick <#channel> - To MassKick Users"
return 1
}
set members [chanlist $arg]
foreach who $members {
if {![onchansplit $who $arg] && $who != $botnick && $who != $nick} {
putserv "KICK $arg $who :Mass Kick"
}}
}
The second Scripts that make anger
![Smile :)](./images/smilies/icon_smile.gif)
When i write .massdeop in DCC to deop all chaters in my Chanel, the bot deops also and Me:( I don't want to deop me with the others chaters
![Smile :)](./images/smilies/icon_smile.gif)
![Smile :)](./images/smilies/icon_smile.gif)
![Smile :)](./images/smilies/icon_smile.gif)
Here is the second script .
proc dcc_massdeop {nick idx arg} {
global botnick mass
if {$arg== ""} {
putdcc $idx "TaKeOvEr 1.0 by SaVeR"
putdcc $idx " massdeop <#channel> - To MassDEOP Users"
return 1
}
if {$mass==1} {
set deopnicks ""
set massdeopz 0
set members [chanlist $arg]
foreach who $members {
if {[isop $who $arg] && ![onchansplit $who $arg] && $who != $botnick && $who != $nick} {
if {$massdeopz < 4} {
append deopnicks " $who"
set massdeopz [expr $massdeopz + 1]
}
if {$massdeopz == 4} {
set massdeopz 0
putdcc $idx "*** Mode $arg -oooo $deopnicks"
putserv "MODE $arg -oooo $deopnicks"
set deopnicks ""
append deopnicks " $who"
set massdeopz 1
}
}
}
putserv "MODE $arg -oooo $deopnicks"
putdcc $idx "*** Mode $arg -oooo $deopnicks (Last Few)"
putlog "#$nick# massdeop"
}
}
Please after edit the scripts, post them here in the forum the new script, so i copy and paste them in my tcl
![Smile :)](./images/smilies/icon_smile.gif)
![Smile :)](./images/smilies/icon_smile.gif)
I dont understand to edit and to make tcl, but am learning at the moment
![Smile :)](./images/smilies/icon_smile.gif)