mIRC Homepage
Posted By: Gameaddix Keep Ops - 25/09/04 04:44 PM
how would a script look if i wanted to automatically reop myself if someone deops me, then deop them?(kinda like a revenge script)
Posted By: croyfer Re: Keep Ops - 25/09/04 05:54 PM
If you don't have any bots in the channel you are pretty much helpeless if someone deops you.
Posted By: Gameaddix Re: Keep Ops - 25/09/04 05:56 PM
nah, i got one working
here it is if anyone else wants to use it

Code:
 on 1:deop:#: {
  If ($nick == $me) { halt }
  .timer 1 7 unset %msd $+ $nick
  inc %msd [ $+ [ $nick ] ]
  /chanserv op $chan %prince
  /mode # -o $nick | kick # $nick 4No deoping me!!! | unset %msd
}
}
 
Posted By: alkahol1k Re: Keep Ops - 25/09/04 06:27 PM
It actually depends on the type of server you are on.
In that remote just pasted it would only work if you were on the channels AOP or SOP list AND only if the server is running Chanserv ,Nickserv services..
Posted By: NoPleX Re: Keep Ops - 25/09/04 06:40 PM
If you got L on your channel and have +o, +m or +n on it you can use this script

Code:
 
on *:DEOP:#:{
  if ($nick == $me) { halt | stop }
  elseif ($opnick == $me) { 
    msg L op $chan
    .timer 1 1 mode $chan -o $nick
    .timer 1 2 kick $chan $nick Don't try to deop me
  }
}
 
Posted By: Gameaddix Re: Keep Ops - 26/09/04 01:38 AM
ok, that worked, and i'm adding ones in to reowner myself if someone -q's me, and it works, but now i;m trying to get deprotect to work (mode "a"), and it isnt working, this is what i got
Code:
  on *:DEPROTECT:#:{  
  if ($nick == $me) { halt | stop }
  elseif ($opnick == $me) {
    msg chanserv protect $chan
    .timer 1 1 mode $chan -a $nick
    .timer 1 2 kick $chan $nick Don't try to deprotect me
  }
}
Posted By: sparta Re: Keep Ops - 26/09/04 01:45 AM
DEPROTECT <<-- thats not a mode on a irc server, not what i have seen anyway.. on 1:OP: och on 1:DEOP: the identifyer for op/deop ..
Posted By: tidy_trax Re: Keep Ops - 26/09/04 01:48 AM
Code:
on *:rawmode:#:{
  if (-*a* iswm $1) &amp;&amp; ($istok($2-,$me,32)) { 
    yourstuff
  }
}
Posted By: NoPleX Re: Keep Ops - 26/09/04 01:55 AM
sorry for asking but what is mode $chan -a $nick ???
Posted By: tidy_trax Re: Keep Ops - 26/09/04 01:56 AM
Deprotect/Deadmin (depending on the server you're on)
Posted By: NoPleX Re: Keep Ops - 26/09/04 01:58 AM
hmm on Quakenet deop is -o
Posted By: Gameaddix Re: Keep Ops - 26/09/04 02:52 PM
well, i still cant get it working, i'm running unrealircd, and the mode is +/- a, (which you type /msg chanserv protect #chan nick, to set the mode +a on yourself, but i cant get to to detect when someone -a's me
© mIRC Discussion Forums