mIRC Homepage
Posted By: Skrubz AutoOp addon script - 27/02/08 06:09 AM
Would someone be kind enough to help me write an Auto-Op addon script, where names can be added and removed as necessary!?!
Posted By: Kol Re: AutoOp addon script - 27/02/08 08:13 AM
/help /aop

mIRC's in-built function is fairly advance already
Posted By: jakerandall Re: AutoOp addon script - 27/02/08 08:42 AM
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
Posted By: RoCk Re: AutoOp addon script - 27/02/08 01:26 PM

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.
Posted By: Skrubz Re: AutoOp addon script - 27/02/08 04:44 PM
Sorry...I should have been more specific....I meant on UnderNet...But...thanx a ton tho!!

Regards
Posted By: Skrubz Re: AutoOp addon script - 27/02/08 04:48 PM
Much appreciated...thank you very much!!
Posted By: Skrubz Re: AutoOp addon script - 27/02/08 04:50 PM
Thank you...itz appreciated!!
Posted By: LostShadow Re: AutoOp addon script - 27/02/08 05:55 PM
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.
© mIRC Discussion Forums