multi mode notice

By Cheiron on Aug 12, 2008

had a thought earlier with regards the onotice.. and wondered how it could be done in a room structure comprised of a ranking setup.. ie.. regulars , then step 1 voice, step 2 hop, 3 op etc..

until now we had to do a manual notice to hops and voice members where we could use otalk for the rest of the ops.

this goes into remotes and the command to use is /ohv

this was tested with mIRC v6.33 on unreal server 3.2.7

this snippet will now effectively mass notice as it were anyone with a + , % , @ , & , ~

big thankyou to KokoRyu for his help with the debugs and code

alias ohv {
 var %i 1
 while (%i <= $nick($chan,0)) {
   inc %i
   if (($nick($chan,%i) isop $chan) || ($nick($chan,%i) isvoice $chan) || ($nick($chan,%i) ishop $chan)) {
     if ($nick($chan,%i) != $me) { .notice $nick($chan,%i) [@] $1- }
   }
 }
 echo 4 $chan [OHV] $1-
}

Comments

Sign in to comment.
DiGiTaL   -  Sep 13, 2008

Or you know...just type this:

/notice +# Hello there and it would notice anyone who is Voiced or up.

 Respond  
Cheiron   -  Aug 13, 2008

no worries napa :) the script is for noticing anything with a voice or higher

 Respond  
napa182   -  Aug 13, 2008

um i edited it on the other comment and i also added another way as well

 Respond  
Cheiron   -  Aug 13, 2008

ah.. i have a problem now arising from that clean up napa.. it now says

12<20712:222am12> testing the final ohv notice script so if anyone gets a notice from me.. dont panic.. we just trialing a new script
[OHV] testing final /ohv notice script
11» The nickname \"[@]\" is 4NOT 4online!

why is it saying the nickname [@] is not online for

also it does not notice ops now..

i have had to revert back to my original version until the debug is done

 Respond  
Cheiron   -  Aug 12, 2008

well blow me sideways..... :))

thankies for that clean up napa
i have edited it with the clean up. looks much better.

 Respond  
napa182   -  Aug 12, 2008

why not just shorten the line

if (($nick($chan,%i) isop $chan) || ($nick($chan,%i) isvoice $chan) || ($nick($chan,%i) ishop $chan)) {
      if ($nick($chan,%i) != $me) { .notice $nick($chan,%i) [@] $1- }

to this

if ($nick(#,%i) != $me && $nick(#,%i) !isreg #) .notice $nick(#,%i) [@] $1- 

so the code would look like this

alias ohv {
  var %a = $nick(#,0), %i = 0
  while (%i <= %a) {
    inc %i 
    if ($nick(#,%i) != $me && $nick(#,%i) !isreg #) .notice $nick(#,%i) [@] $1- 
  }
  echo 4 # [OHV] $1-
}

also you can do something like this as well making it to notice by useing usermodes like ~ & @ % + so to notice say halfops you would do
/modenotice % message here

alias modenotice {
  if ($regex($1,/^[~@&%+]$/)) {
    var %a = $nick(#,0), %i = 0
    while (%i <= %a) {
      inc %i 
      if ($nick(#,%i).pnick != $me && $left($nick(#,%i).pnick,1) == $1) .notice $nick(#,%i) $+($chr(91),$1,$chr(93)) $2- 
    }
    echo 4 # $+($chr(91),$1,$chr(93)) $2-
  }
}
 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.