Great Input Script

By Diamond on Nov 20, 2008

You use the commands as:

.calc - Calculate your request.
.tb - Timebans a user.
.kb - Kickbans a user.
.inv - Invites a bot.

This script also include a few more commands.

  • Diamond
On *:INPUT:#:{
  if ($1 == .calc) {
    set %numbers $iif($left($2,1) == $null, No numbers given., $2-)
    echo -a < $+ $time $+ > ** [CALCULATOR]: %numbers = $bytes($calc($replace(%numbers,k,*1000,m,*1000000,pi,$pi)),bd)
    unset %numbers
  }
  if ($1 == @calc) {
    set %numbers $iif($left($2,1) == $null, No numbers given., $2-)
    msg #** [CALCULATOR]: %numbers = $bytes($calc($replace(%numbers,k,*1000,m,*1000000,pi,$pi)),bd)
    unset %numbers
  }
  if ($1 == .inv) {
    set %botinv $iif($left($2,1) == $null, FailScript, $2-)
    invite %botinv $chan
    echo -a < $+ $time $+ > ** [INVITE]: Invited bot < $+ %botinv $+ > to this channel.
    unset %botinv
  }
  if ($1 == .tb) {
    set %tb.who $iif($left($2,1) == $null, $me, $2)
    set %tb.reason $iif($left($4,1) == $null, No reason given., $4-)
    set %tb.time $calc($3 * 60)
    /ban $+(-ku,%tb.time) $chan %tb.who 1 $+ %tb.who $+ 3 has been timebanned for1 $3 $+ 3 $+ mins! For reason:1 %tb.reason
    unset %tb.*
  }
  if ($1 == .kb) {
    set %kb.who $iif($left($2,1) == $null, $me, $2)
    set %kb.reason $iif($left($3,1) == $null, No reason given., $3-)
    mode # +b %kb.who $address(%kb.who,2)
    unset %kb.*
    if ($1 == .gaytest) {
      set %gay.who $iif($left($2,1) == $null, $me, $2)
      msg $chan ** [GAYTEST]: The gaytest returns that %gay.who is $rand(0,100) $+ % gay!
      unset %gay.who
    }
    else { halt }
  }
}

Comments

Sign in to comment.
guest598594   -  Nov 20, 2008

Use /var instead of /set, it'll make the variables local and you won't need to /unset them.

 Respond  
Diamond   -  Nov 20, 2008

If anything is glitched in this script, or you want more commands..

  • Diamond
 Respond  
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.