mIRC Home    About    Download    Register    News    Help

Print Thread
#120387 17/05/05 10:44 AM
P
PunkDud3
PunkDud3
P
Can you help me with this please. I want to have script that makes me rejoin channel when empty to gain ops.

Thanks.

smile

#120388 17/05/05 10:59 AM
B
bloodfog
bloodfog
B
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 } }

#120389 18/05/05 08:17 AM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
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 


Link Copied to Clipboard