Got a another script problem

By BitHelper on May 19, 2015

I need help with a !tb <-- Time Ban script. I want it to be like !tb 1 (d,w,y) Any Ideas?

Here it is!

On $*:Text:/^[@!.](Timeban|tb)/Si:#:{ 
  if ($2 == -s) { 
    set %o.1 $iif($left($1,1) == @, msg $chan, notice $nick)
    %o.1 $logo(timebans) I've did %timebans timebans.
    unset %o.*
  }
  else {
    if ($nick isop $chan) || ($nick ishop $chan) {
      if ($me ishop $chan || $me isop $chan) {
        inc %timebans 1
        set %tb.dur $calc( $3 * 9999 )
        set %tb.reason $iif($left($4,1) == $null, No reason given, $4-)
        /ban $+(-ku,%tb.dur) $chan $2 $2 3has been timebanned for $3 $+ 3mins! Reason: %tb.reason
        unset %tb.*
      }
    }
    else {      notice $nick $logo(error) You must be a channel operator (+o) or an channel halfop (+h) to use this command. $+([) $+ $scripter $+ $+(]) }
  }
}

Comments

Sign in to comment.
OrFeAsGr   -  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

DonCorleone   -  May 19, 2015

Trigger:
!k nickname time

Example:
!k DonCorleone 5

DonCorleone  -  May 19, 2015
BitHelper  -  May 19, 2015

That's not really want. http://prntscr.com/778088

DonCorleone  -  May 20, 2015

This is a kickban script, with minutes you can give the time how long you want to ban somebody like 5 for 5 minutes etc etc...

BitHelper  -  May 21, 2015

Yes I but want to be something more then minutes. I want to be able to ban users for like a Day a week or just a year. Not minutes.

DonCorleone  -  May 22, 2015

if you can count minutes than you can give people bans to for a week or month or year

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.