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-
}
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
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-
}
}