mIRC Homepage
Posted By: Dingo echo after a nick is oped - 14/12/02 09:14 AM
somethign easy for you all - i'm a bit tired, can't think right- but i know you are awake

i need to put the nick of the person who oped someone else into an echo - here's the script...

on *:OP:#:{
if ($opnick == $me) {
cline 9 # $opnick
echo -a * $timestamp You got op in $chan by "WHO?"
}
}

coudl you please help me put the nick of the person who oped theo ther nick?

thanks:)
Posted By: vasil_michev Re: echo after a nick is oped - 14/12/02 09:24 AM
Code:
on *:OP:#:{
if ($opnick == $me) {
cline 9 # $opnick
echo -at * You got op in $chan by $nick
}
}  
Posted By: theRat Re: echo after a nick is oped - 14/12/02 09:28 AM
on *:OP:#:{
if ($opnick == $me) {
cline 9 # $opnick
echo -a * $timestamp You got op in $chan by $nick
}
}


cline 9 # $opnick
is pretty much useless as you can set diffrent colors for yourself & for others easily in address book(alt+b) nicktab
Posted By: Dana Re: echo after a nick is oped - 14/12/02 12:06 PM
I don't think that was the issue here ...

They wanted to colour the nickname of the person who opped them ... not to colour the nicknames of all the ops in the channel.

Dana
Posted By: FunChatter Re: echo after a nick is oped - 14/12/02 12:21 PM
you first say: i need to put the nick of the person who oped someone else
and in the code you use if ($opnick == $me)
folloing what you asked in the first time i would use this:
Code:
on *:OP:#:{ cline 9 # $opnick | echo -a $timestamp Nick: $opnick got op status on # by $nick $+ . 


now if you want to get an echo only when you get oped you can use ban the
Code:
 if ($opnick == $me)  
if you do so im not really sure if the nick you wanted to cline is your nick or the nick of the person who oped you... if you wanted to cline the person who oped you use $nick in the cline line instead of $opnick
© mIRC Discussion Forums