mIRC Home    About    Download    Register    News    Help

Print Thread
#98648 25/09/04 04:44 PM
Joined: Sep 2004
Posts: 85
G
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
how would a script look if i wanted to automatically reop myself if someone deops me, then deop them?(kinda like a revenge script)

#98649 25/09/04 05:54 PM
Joined: Jun 2003
Posts: 54
C
Babel fish
Offline
Babel fish
C
Joined: Jun 2003
Posts: 54
If you don't have any bots in the channel you are pretty much helpeless if someone deops you.


I'm Croyfer @ the EF.net -- #nesse
#98650 25/09/04 05:56 PM
Joined: Sep 2004
Posts: 85
G
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
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
}
}
 

#98651 25/09/04 06:27 PM
Joined: Nov 2003
Posts: 257
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
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..

#98652 25/09/04 06:40 PM
Joined: May 2004
Posts: 132
N
Vogon poet
Offline
Vogon poet
N
Joined: May 2004
Posts: 132
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
  }
}
 


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX
#98653 26/09/04 01:38 AM
Joined: Sep 2004
Posts: 85
G
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
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
  }
}

#98654 26/09/04 01:45 AM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
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 ..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#98655 26/09/04 01:48 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on *:rawmode:#:{
  if (-*a* iswm $1) &amp;&amp; ($istok($2-,$me,32)) { 
    yourstuff
  }
}


New username: hixxy
#98656 26/09/04 01:55 AM
Joined: May 2004
Posts: 132
N
Vogon poet
Offline
Vogon poet
N
Joined: May 2004
Posts: 132
sorry for asking but what is mode $chan -a $nick ???


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX
#98657 26/09/04 01:56 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Deprotect/Deadmin (depending on the server you're on)


New username: hixxy
#98658 26/09/04 01:58 AM
Joined: May 2004
Posts: 132
N
Vogon poet
Offline
Vogon poet
N
Joined: May 2004
Posts: 132
hmm on Quakenet deop is -o


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX
#98659 26/09/04 02:52 PM
Joined: Sep 2004
Posts: 85
G
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
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


Link Copied to Clipboard