mIRC Homepage
Posted By: PunkDud3 Rejoin to gain OPs - 17/05/05 10:44 AM
Can you help me with this please. I want to have script that makes me rejoin channel when empty to gain ops.

Thanks.

smile
Posted By: bloodfog Re: Rejoin to gain OPs - 17/05/05 10:59 AM
Code:
on !*:part:#:{ if ($nick(#,0) = 2) && ($me !isop #) { hop # } }
on *:quit:{ var %comchan = $comchan($nick,0) | while %comchan { if ($nick($comchan($nick,%comchan),0) = 2) && (!$comchan($nick,%comchan).op) { hop $comchan($nick,%comchan) } | dec %comchan } }
Posted By: xDaeMoN Re: Rejoin to gain OPs - 18/05/05 08:17 AM
Try this

Code:
alias acycle {
  var %c = 1
  while $chan(%c) {
    if ($nick($chan(%c),0) == 1) && ($me !isop $chan(%c)) hop $chan(%c)
    inc %c
  }
}

on *:CONNECT: .timeracycle 0 3 acycle 


That checks the channel(s) you are on every 3 seconds if your are alone & opless then performs a hop.

To start it without re-connecting, do

Code:
/timeracycle 0 3 acycle 
© mIRC Discussion Forums