mIRC Homepage
Posted By: usemytoes Scripting nub here ^^ - 27/01/04 10:00 PM
This will probley be a peice of cake care some of you guys =D

I was wondering if it was possible to make a auto-op bot, so I could type something like -addop nickhere and it would op them everytime they join the channel?

Thanks in advance =D
Posted By: KingTomato Re: Scripting nub here ^^ - 27/01/04 10:18 PM
I didn't test it, but this should do the trick:

Code:
on *:TEXT:-addop &:#: {
  var %address = $iif($2 ison $chan, $address($2, 1), $+($2,!*@*))
  if ($aop(%address)) /msg $chan $2 is already on the Auto-Op List
  else /aop %address $chan
}

on *:TEXT:-remop &:#: {
  var %address = $iif($2 ison $chan, $address($2, 1), $+($2,!*@*))
  if (!$aop(%address)) /msg $chan $2 is not on the Auto-Op List
  else /aop -r %address
}


(Copy to wordpad (Start>>Run>>"wordpad") first, then to mirc remotes (alt+r) section)

EDIT:

BTW, the commands are

-addop <name>
Adds the name to the channel's auto-op list
-remop <name>
Removes them from the channel's auto-op list.
Posted By: usemytoes Re: Scripting nub here ^^ - 27/01/04 10:50 PM
either i'm doing something wrong or it does not work, because I can't get it to work, thanks for the help tho =O
Posted By: Iori Re: Scripting nub here ^^ - 28/01/04 02:38 AM
Is Auto-Op on?
To check; type /aop
To turn it on; type /aop on
Posted By: LocutusofBorg Re: Scripting nub here ^^ - 28/01/04 06:30 AM
You also might wanna expand a bit when you get it to work -- right now, everyone can add themselves and everyone else in as op.
© mIRC Discussion Forums