mIRC Home    About    Download    Register    News    Help

Print Thread
#218102 01/02/10 07:35 PM
Joined: Oct 2007
Posts: 51
J
JH1354 Offline OP
Babel fish
OP Offline
Babel fish
J
Joined: Oct 2007
Posts: 51
Where and how do i create a msg that says " Thanks for the OP's "
when I enter my channel and I'm OP'ed.
Thanks

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Code:
on *:OP:#:if ($opnick == $me) .msg # Thanks for the op's!

Joined: Oct 2007
Posts: 51
J
JH1354 Offline OP
Babel fish
OP Offline
Babel fish
J
Joined: Oct 2007
Posts: 51
Thanks but where do i add this?

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
on your mirc, press the keyboard buttons ALT+R at the same time.
This pops open a dialog.
Locate and click the Remote tab, place the code in and ok to finish.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
In addition, if you already have a script there, it's a good idea to choose New from the File menu to avoid creating an kind of conflict in the script that's already there. In this case, it's unlikely to conflict, but it's a good habbit to be in if you aren't sure how to find out of it will conflict by placing it in the same file.


Invision Support
#Invision on irc.irchighway.net
Joined: Feb 2009
Posts: 133
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2009
Posts: 133
hi
i think u can replace the condition by me:* befor the level
edit: that's whong me:*:op:#: replace if $nick == $me sorry !!

Last edited by chacha; 06/02/10 03:25 PM.

WorldDMT
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
What are you talking about?

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
He's talking about the "me:" prefix:

Code:
on me:*:op:#:{ do stuff }


This is equivalent to:

Code:
on *:op:#:{
  if ($nick == $me) { do stuff } 
}

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
If I understand it correctly. It has to be $opnick
$nick refers to the person who gives out the +o

On me op won't work, as it will trigger the event on every user that's been opped.

And Chacha said "sorry" so I figured he miscalculated the use of his suggestion.


Link Copied to Clipboard