mIRC Home    About    Download    Register    News    Help

Print Thread
#195546 27/02/08 06:09 AM
S
Skrubz
Skrubz
S
Would someone be kind enough to help me write an Auto-Op addon script, where names can be added and removed as necessary!?!

#195547 27/02/08 08:13 AM
K
Kol
Kol
K
/help /aop

mIRC's in-built function is fairly advance already

#195548 27/02/08 08:42 AM
J
jakerandall
jakerandall
J
Code:
on *:join:#channelname: { 
 if ($nick == nickname) || ($nick == nick) { mode $chan +o $nick }
}

Its very simple, to add another nickname just copy and paste
|| ($nick == nick) on the end of it and add the nick

#195566 27/02/08 01:26 PM
Joined: Dec 2002
Posts: 1,995
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,995

To make it a little more simple to add/remove nicks, you could do the same using $istok()

Code:

on @*:join:#channelname: {
  ; Add nicks on the next line separated by spaces.
  var %nicks = NICK

  if ($istok(%nicks,$nick,32)) { mode $chan +o $nick }
}



Change NICK to the nick(s) you want.

#195570 27/02/08 04:44 PM
S
Skrubz
Skrubz
S
Sorry...I should have been more specific....I meant on UnderNet...But...thanx a ton tho!!

Regards

#195571 27/02/08 04:48 PM
S
Skrubz
Skrubz
S
Much appreciated...thank you very much!!

S
Skrubz
Skrubz
S
Thank you...itz appreciated!!

#195582 27/02/08 05:55 PM
L
LostShadow
LostShadow
L
Originally Posted By: Skrubz
Sorry...I should have been more specific....I meant on UnderNet...But...thanx a ton tho!!

Regards


Add a if ($network == Undernet) {

Then a } at the very bottom of the code.

It is also unclear whether you wanted to work for all channels (you are op in), by network, or only a select channel on Undernet, for that matter.


Link Copied to Clipboard