op voice commands

By M[n]M on Sep 05, 2007

Hey this is my first script and thats how u use it

1)+o <--used for getting op from your bot
2)-o <--Used for deop you
3)+v <--> 1)
4)-v <--> 2)

u gotto paste it in to your remote and just check it and it'll work :)

on *:text:*+o*:#: {
  if $1 == %c $+ +o {
    if $2 == $null { /mode $chan +o $nick | halt }
    else { mode $chan +o $2 | halt }
  }
}

on *:text:*-o*:#: {
  if $1 == %c $+ -o {
    if $2 == $null { /mode $chan -o $nick | halt }
    else { mode $chan -o $2 | halt }
  }
}

on *:text:*+v*:#: {
  if $1 == %c $+ +v {
    if $2 == $null { /mode $chan +v $nick | halt }
    else { mode $chan +v $2 | halt }
  }
}

on *:text:*-v*:#: {
  if $1 == %c $+ -v {
    if $2 == $null { /mode $chan -v $nick | halt }
    else { mode $chan -v $2 | halt }
  }
}

Comments

Sign in to comment.
M[n]M   -  Apr 14, 2008

btw %c is $chan

 Respond  
guest598594   -  Sep 26, 2007
$iif($nick isop $chan,mode $chan +o $$2,msg $chan You arent op)
 Respond  
SilentExile   -  Sep 19, 2007

anyone can op/voice another person, you should include an if ($nick = %owner) and have a variable set to %owner so that only you can use the commands. what is %c for? if it has no use in this snippet you should remove it ;)

 Respond  
guest598594   -  Sep 05, 2007

umm...click edit and change language to mirc, not .net :P

 Respond  
guest598594   -  Sep 05, 2007

btw if you dont supply a $2 it does it to you

 Respond  
M[n]M   -  Sep 05, 2007

lol ok dude :)

 Respond  
guest598594   -  Sep 05, 2007

omg i keep screwin up

on *:text:*:#:{
  if ($1 == - || $1 == +) && ($mid($1,2,1) isin $nickmode) && (!$3) {
    if (!$2) {
      mode $chan $1 $nick
    }
    else mode $chan $1-
  }
}
 Respond  
M[n]M   -  Sep 05, 2007

right ..

 Respond  
guest598594   -  Sep 05, 2007

lets you do -anyletter or +anyletter as long as the server supports it as a nick mode

 Respond  
guest598594   -  Sep 05, 2007

sorry make that

on *:text:*:#:{
  if ($1 == - || $1 == +) && ($mid($1,2,1) isin $nickmode) && (!$3) {
    if (!$2) {
      mode $chan $left($1,2) $nick
    }
    else mode $chan $left($1,2) $2
  }
}
 Respond  
guest598594   -  Sep 05, 2007

i was also wondering what %c is

 Respond  
napa182   -  Sep 05, 2007

you dont need to use the / and whats %c?? and you have the +o -o and +v -v as wildcards

 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.