mIRC Home    About    Download    Register    News    Help

Print Thread
Playing sound on:op event #266977 14/03/20 11:15 PM
Joined: Mar 2019
Posts: 1
R
Reader Offline OP
Mostly harmless
OP Offline
Mostly harmless
R
Joined: Mar 2019
Posts: 1
Hi

I wrote a script like this:

on *:op:#: {
if ($opnick == $me) /splay op.mp3
}

Sound is playing when the operator gives it later, but it does not play when he enters the channel and becomes an operator, so i wrote the following code but it doesn't work:

on me:*:join:#:{
if ($me isop $chan) /splay op.mp3
}

I would be happy if you help me
Have a nice day

Re: Playing sound on:op event [Re: Reader] #267000 18/03/20 04:17 AM
Joined: Jul 2014
Posts: 164
TECO Offline
Vogon poet
Offline
Vogon poet
Joined: Jul 2014
Posts: 164
Only with this small code, it works both ways. When you join a channel and receive OP and when someone gives you OP status.
Code
on *:op:#: {
  if ($opnick == $me) { .splay op.mp3 }
}


TECO
irc.PTirc.org (Co-Admin)