mIRC Homepage
Posted By: Cred Mass voice script - 06/08/08 04:23 PM
I want my bot to make every one who doesnt have a rank be voiced when i type .v I want it so only i can use this command. Please help me tyvm.
Posted By: Tomao Re: Mass voice script - 06/08/08 09:52 PM
Code:
alias m {
  var %x = $nick($1,0,r) | while (%x) { 
    var %r = %r $nick($1,%x,r)
    if ($numtok(%r,32) = $modespl) { mode $1 + $+ $str(v,$modespl) %r | unset %r } | dec %x
  }
  if (%r) { mode $1 + $+ $str(v,$numtok(%r,32)) %r }
}



The above code goes into the remote, will voice everyone at once, skip those who are already voiced, and only you can do the voicing.

The syntax is: /m #YourChannelNameHere

You can also put this little command in your popups Nick List for an easier access via right click on the nicklist: MassVoice:m $chan
Posted By: Cred Re: Mass voice script - 07/08/08 09:02 PM
thankyou verry much
Posted By: Cred Re: Mass voice script - 07/08/08 09:12 PM
the above script isnt working can anyone help?
Posted By: Tomao Re: Mass voice script - 07/08/08 10:08 PM
Can you elaborate why isn't working for you? What have you done?
Posted By: Cred Re: Mass voice script - 10/08/08 01:38 PM
alias m {
var %x = $nick($1,0,r) | while (%x) {
var %r = %r $nick($1,%x,r)
if ($numtok(%r,32) = $modespl) { mode $1 + $+ $str(v,$modespl) %r | unset %r } | dec %x
}
if (%r) { mode $1 + $+ $str(v,$numtok(%r,32)) %r }
}

I paste this into my remote, now where does the rest of the stuff go, can you please explain it a bit more detailed for someone who is new to mIRC.
Posted By: Tomao Re: Mass voice script - 10/08/08 06:05 PM
Now you either type this command in your main mirc chat screen while inside your own chat room to voice those unvoiced people:

Code:
/m <Your Channel Name>


For example: /m #MyChat

Or

Code:
MassVoice:m $chan
<- This goes into your popups Nick List or popups Channel. Then you can right-click on your mirc's nick list or main chat screen to trigger the script.

You have two choices here, so you decide what you want.

That is all you need to do.
Posted By: Cred Re: Mass voice script - 10/08/08 10:43 PM
Originally Posted By: Tomao
Now you either type this command in your main mirc chat screen while inside your own chat room to voice those unvoiced people:

Code:
/m <Your Channel Name>


For example: /m #MyChat

Or

Code:
MassVoice:m $chan
<- This goes into your popups Nick List or popups Channel. Then you can right-click on your mirc's nick list or main chat screen to trigger the script.

You have two choices here, so you decide what you want.

That is all you need to do.


Thank you very much this has realy helped me! =]
Posted By: starpossen Re: Mass voice script - 24/02/11 08:36 PM
Sorry for 'bumping' this old topic.

Is it possible to use this as, you select whom you want to voice
in the nicklist, and then make a rightclick menu saying ie. mv selected ?
Posted By: Tomao Re: Mass voice script - 24/02/11 11:46 PM
Originally Posted By: starpossen
Sorry for 'bumping' this old topic.

Is it possible to use this as, you select whom you want to voice
in the nicklist, and then make a rightclick menu saying ie. mv selected ?
Code:
menu nicklist {
  $iif($me isop $active,Mass Voice) {
    var %x = $snick($active,0), %y = $active
    while (%x) { 
      var %r = %r $snick(%y,%x)
      if ($numtok(%r,32) = $modespl) { 
        mode %y + $+ $str(v,$modespl) %r
      } 
      dec %x
    }
    if (%r) { mode %y + $+ $str(v,$numtok(%r,32)) %r }
  }
}
You highlight and select the nicks you want to voice from the nicklist first, then right click to the popup menu, and tick "mass voice" to voice all of them.
Posted By: starpossen Re: Mass voice script - 25/02/11 03:08 PM
Thanks alot for your reply, I will test it later.
Posted By: ixAaron Re: Mass voice script - 02/06/14 04:48 AM
~ Bump sorry, I have the Mass Voice added. I was wondering how I could get Mass De-Voice added with the Mass Voice.

Thanks smile
Posted By: blessing Re: Mass voice script - 02/06/14 05:11 AM
Code:
alias md {
  if $me !isop $1 { echo -a You are not OP in $1 | return }
  var %x = $nick($1,0,v) | while (%x) { 
    var %r = %r $nick($1,%x,v)
    if ($numtok(%r,32) = $modespl) { mode $1 - $+ $str(v,$modespl) %r | unset %r } 
    dec %x
  }
  if (%r) { mode $1 - $+ $str(v,$numtok(%r,32)) %r }
}

Usage: /md #channel
© mIRC Discussion Forums