Channel Assistant

By EMMURE on Feb 19, 2009

you can use the commands to help operate a channel. must have op status for it to work though. must go into vars and set %owner as your nick in order for it to work.. :l

on *:text:!*:*:{
  if ( $nick != %owner ) { Halt }
  if ( $nick == %owner ) {
    if ( $1 == !Op ) { /mode # +ooo $2 $3 $4 }
    if ( $1 == !DeOp ) { /mode # -ooo $2 $3 $4 }
    if ( $1 == !Halfop ) { /mode # +hhh $2 $3 $4 }
    if ( $1 == !DeHalfop ) { /mode # -hhh $2 $3 $4 }
    if ( $1 == !Voice ) { /mode # +vvv $2 $3 $4 }
    if ( $1 == !DeVoice ) { /mode # -vvv $2 $3 $4 }
    if ( $1 == !Kick ) { /cs kick # $2 $3- } 
    if ( $1 == !Talk ) { msg $2 $3- }
    if ( $1 == !Access ) { /cs access # add $2 $3 }
    if ( $1 == !Mute ) { mode $chan +b-v ~q: [ $+ [ $address($2,2) ] ] $2 }
    if ( $1 == !UnMute ) { mode $chan -b+v ~q: [ $+ [ $address($2,2) ] ] $2 }
  }
}

Comments

Sign in to comment.
PATX   -  Apr 27, 2009

Zeppelin382: doinga pretty good job!

 Respond  
Zeppelin382   -  Apr 13, 2009

I taught him :)
gj Ethan

 Respond  
PATX   -  Mar 14, 2009

nice script give it a 4 maening the code is mediocer. but if u r as new as u say it was still very good.

 Respond  
Aucun50   -  Feb 22, 2009

Or

On *:Text:*:#:{
  if ($nick == %owner) {
    if ($1 == !Op) { /mode # $+(+,$str(o,6)) $2- }
    elseif ($1 == !DeOp) { /mode # $+(-,$str(o,6)) $2- }
    elseif ($1 == !Halfop) { /mode # $+(+,$str(h,6)) $2- }
    elseif ($1 == !DeHalfop) { /mode # $+(-,$str(h,6)) $2- }
    elseif ($1 == !Voice) { /mode # $+(+,$str(v,6)) $2- }
    elseif ($1 == !DeVoice) { /mode # $+(-,$str(v,6)) $2- }
    elseif ($1 == !Kick ) { /cs kick # $2- }
    elseif ($1 == !Talk) || ($1 == msg) { msg $2 $3- }
    elseif ($1 == !Access) { /cs access $chan add $2- }
    elseif (mute isin $1) { mode $chan $iif(un !isin $1,+b-v,-b+v) $+(~q:,$address($2,2)) $2 }
  else { }  
  }
}
 Respond  
chadbdurham   -  Feb 22, 2009

I think that this could be improved a little.

On *:Text:*:#:{
  if ($nick == %owner) {
    if ($1 == !Op) { /mode # $+(+,$str(o,6)) $2- }
    if ($1 == !DeOp) { /mode # $+(-,$str(o,6)) $2- }
    if ($1 == !Halfop) { /mode # $+(+,$str(h,6)) $2- }
    if ($1 == !DeHalfop) { /mode # $+(-,$str(h,6)) $2- }
    if ($1 == !Voice) { /mode # $+(+,$str(v,6)) $2- }
    if ($1 == !DeVoice) { /mode # $+(-,$str(v,6)) $2- }
    if ($1 == !Kick ) { /cs kick # $2- } 
    if ($1 == !Talk) || ($1 == msg) { msg $2 $3- }
    if ($1 == !Access) { /cs access $chan add $2- }
    if (mute isin $1) { mode $chan $iif(un !isin $1,+b-v,-b+v) $+(~q:,$address($2,2)) $2 }
  }
}
 Respond  
xplo   -  Feb 20, 2009

you should try not to use services in codes like this. "chanserv"
i think you should use the /kick command because not every network uses cs..

 Respond  
Aucun50   -  Feb 19, 2009

Not really mistake it just speeds thing up and makes it looks nicer

Nice to see new people scripting.

 Respond  
EMMURE   -  Feb 19, 2009

oooo.. alright. this is my 4th day doing mSL, so im looking forward to alot of mistakes and advice. :)

 Respond  
Aucun50   -  Feb 19, 2009

You could you else and elseif like:

on *:text:*:#: {
  if ( $nick == %owner ) {
    if ( $1 == !Op ) { /mode # +ooo $2 $3 $4 }
    elseif ( $1 == !DeOp ) { /mode # -ooo $2 $3 $4 }
    elseif ( $1 == !Halfop ) { /mode # +hhh $2 $3 $4 }
    elseif ( $1 == !DeHalfop ) { /mode # -hhh $2 $3 $4 }
    elseif ( $1 == !Voice ) { /mode # +vvv $2 $3 $4 }
    elseif ( $1 == !DeVoice ) { /mode # -vvv $2 $3 $4 }
    elseif ( $1 == !Kick ) { /cs kick # $2 $3- } 
    elseif ( $1 == !Talk ) { msg $2 $3- }
    elseif ( $1 == !Access ) { /cs access # add $2 $3 }
    elseif ( $1 == !Mute ) { mode $chan +b-v ~q: [ $+ [ $address($2,2) ] ] $2 }
    elseif ( $1 == !UnMute ) { mode $chan -b+v ~q: [ $+ [ $address($2,2) ] ] $2 }
    else { }   
  }
}
 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.