A simple strike script, This is Version One, Ill add the new updats in two weeks time max.
Its basically Three strikes and your out. Not really Much more to say Really...
SYNAX:- .strike then it tells you how many stikes they currently have
on *:text:.strike*:#: {
inc %strike. [ $+ [ $2- ] ]
if ($nick isop $chan) notice $2- you now have a strike, you currently have %strike. [ $+ [ $2- ] ]
if ($nick ishop $chan) notice $2- you now have a strike, you currently have %strike. [ $+ [ $2- ] ]
if ($nick isop $chan) notice $nick you have issued a strike, $2- now has %strike. [ $+ [ $2- ] ]
if ($nick ishop $chan) notice $nick you have issued a strike, $2- now has %strike. [ $+ [ $2- ] ]
if (%strike. [ $+ [ $2- ] ] == 3) notice $nick $2- has 3 strikes, which is kbable, so go ahead
if ($nick ishop $chan) if (%strike. [ $+ [ $2- ] ] == 3) set %strike. [ $+ [ $2- ] ]
if (%strike. [ $+ [ $2- ] ] == 3) notice $nick $2- has 3 strikes, which is kbable, so go ahead
if (%strike. [ $+ [ $2- ] ] == 3) set %strike. [ $+ [ $2- ] ]
}
mountiandew I didnt think of doing it like that, I fit all the commands into the one line tho, using |. Cherion that was my intention, The option of kick on third stike will be on my Upcoming update, aswell as reason for strike, Strike check, And many more. So keep checking this script, If you want I will Pm you when it comes out.Thanks for all the positive comments.
why not do
on @*:text:.strike*:#: {
if ($nick(#,$nick,oh)) {
inc $+(%,strike,.,$2,.,$chan)
if ($($+(%,strike,.,$2,.,$chan),2) isnum 1-2) { .notice $2 you now have a strike, you currently have $($+(%,strike,.,$2,.,$chan),2) | .notice $nick you have issued a strike, $2 now has $($+(%,strike,.,$2,.,$chan),2) }
else { .notice $nick $2 has 3 strikes, which is kbable, so il go ahead and kick ban them | ban -k # $2 2 Three strikes and ur out | unset $+(%,strike,.,$2,.,$chan) }
}
}
You can combine some of these if statements. Example:
if ($nick isop $chan || $nick ishop $chan) {
notice $2 you now have a strike...
notice $nick you have issued a strike...
}
And then with
if (%strike. [ $+ [ $2- ] ] == 3) notice $nick $2- has 3 strikes, which is kbable, so go ahead
if (%strike. [ $+ [ $2- ] ] == 3) set %strike. [ $+ [ $2- ] ]
You can combine them:
if (%strike. [ $+ [ $2- ] ] == 3) {
notice $nick $2- has 3 strikes, which is kbable, so go ahead
set %strike. [ $+ [ $2- ] ]
}
Just use brackets { } and you can put multiple things in one if statement.