Auto voice that welcomes & halts on ops

By Cobra_Strike on Nov 22, 2006

I know there is alot of auto voice scripts out there but I made this one and quite liked it compared to most I have found.. It welcome's the user on join and checks their status, if regular they will be voiced after reciving a notice saying voicing now... if op or halfop it will send a notice saying voicing canceled... and halt. to use
do alt+R then copy to the remotes page !av-on to turn on !av-off to turn off..
it works in all channel it has been turned on in and does nothing in the ones it hasnt be turned on in hope you like it. XD

##############################
# Auto Voice By Cobra_Strike #
##############################
on *:TEXT:!av-on*:#: {
  if ( $nick(#,$nick,vr) ) {
    notice $nick You must be at least halfop to do this
  }
  else {
    set %avchannel $addtok(%avchannel,$chan,44)
    set %avoice $addtok(%avoice,$chan,44)
    msg $chan 4auto voice is now on for $chan
  }
}
on *:TEXT:!av-off*:#: {
  if ( $nick(#,$nick,vr) ) {
    notice $nick You must be at least halfop to do this
  }
  else {
    set %avchannel $remtok(%avchannel,$chan,1,44)
    set %avoice $remtok(%avoice,$chan,1,44)
    msg $chan 4auto voice is now off for $chan
  }
}
on *:JOIN:%avchannel:{ 
  if (%avoice) { 
    .timer 1 1 /notice $nick Welcome $nick 
    .timer 1 2 /notice $nick checking status.. 
    .timer 1 5 statuscheck $nick $chan
  } 
} 
alias statuscheck { 
  if $nick($2,$1,a,ohv) { 
    notice $1 Voicing Now... 
    mode $2 +v $1 
  }
  else {
    .notice $1 Voicing Cancelled...
  }
}

Comments

Sign in to comment.
Cobra_Strike   -  Nov 27, 2006

Lol yeah I see the token problem now and I have fixed it

Also I hadnt done much in the way of if and else { at the time and didnt think of it
but I have now so I added as you suggeted and i think it tidy\'s it up a bit nicer XD

 Respond  
Cobra_Strike   -  Nov 22, 2006

Like I say in my notes I know there are alot of these scripts about but I was bord and made this and I quite liked it compared to most I have found
Feel free to let me know what you think

 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.