OrFeAsGr commented on a Page, Got a another script problem  -  Jan 19, 2016

ON :TEXT::#: {
if ($strip($1) == !tb) {
if ($nick isop $chan) || ($nick ishop $chan) {
if ($me isop $chan) || ($me ishop $chan) {
var %d = $iif($strip($3) > 0, $calc($v1 86400), 0)
var %w = $iif($strip($4) > 0, $calc($v1
604800), 0)
var %y = $iif($strip($5) > 0, $calc($v1 * 3153600), 0)
var %secs = $calc(%d + %w +%y)
ban $+(-u,%secs) $chan $strip($2)
kick $chan $strip($2) $strip($2) Is Banned For %y Years, %w Weeks, %d Days.
}
}
}
}

-----------NOT TESTED-----------
Type !tb nick day(s) week(s) year(s)
For 0 days/weeks/years use 0 .
I didn't add the counting part.. and the !isop you can add them easily though.. or not add them.. npt so important

OrFeAsGr  -  Jan 19, 2016

Sorry for the messy format i'm on Android right now..

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.