Heart Thunder
Platform: mIRC
Published Jun 06, 2012
Updated Jun 27, 2012
Hawkee's sort of becoming my depository for whatever script I write, no matter how stupid or frivolous. This is one of those. Move along. Nothing to see here.
alias thunder {
if %thunderon {
set %thunderon 0
echo 1 <3 thunder off
}
else {
set %thunderon $chan
echo 1 <3 thunder $chan
}
}
on *:INPUT:*: {
if (%thunderon == $chan) && !$regex($1-,^/) {
var %tnick 1
var %tlength 0
var %thunder <3 thunder
while $nick($chan,%tnick) {
if $len($nick($chan,%tnick)) > %tlength {
var %tlength $len($nick($chan,%tnick))
}
if ($nick($chan,%tnick) !isop $chan) && ($nick($chan,%tnick) !ishop $chan) && ($nick($chan,%tnick) !isvoice $chan) {
dec %tlength 1
}
inc %tnick 1
}
if ($me !isop $chan) && ($me !ishop $chan) && ($me !isvoice $chan) {
inc %tlength 1
}
while %tlength > $len($me) {
var %thunder %thunder
dec %tlength 1
}
msg $chan %thunder $1-
halt
}
}
on *:TEXT:#: {
if (%thunderon == $chan) && ($me isop $chan) && !$istok($1-,<3,32) || ($gettok($1-,$calc($gettok($1-,<3,32) + 1),32) != thunder) {
kick $chan $nick <3 thunder
}
}