This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
NoFear
Halfop
Posts: 46 Joined: Wed Sep 10, 2003 8:36 am
Location: cW
Post
by NoFear » Wed Sep 10, 2003 8:41 am
Hy!
I need a superbitch script that kicks oped nick and user that oped him. But i don't want no flags to be added in bot.. can anyone help me?
Way Away From Here..
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Wed Sep 10, 2003 9:31 am
a mode binde bind should do it. example:
Code: Select all
bind mode - "* +o" kick:both
proc kick:both {nick uhost hand chan mc vict} {
putkick $chan $nick "out"
putkick $chan $vict "out"
}
make sure you add the propper "If" lines to exempt the bot and the services from being kicked incase they op someone.
^DooM^
Owner
Posts: 772 Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:
Post
by ^DooM^ » Wed Sep 10, 2003 1:43 pm
Slennox made a superbitch script that does that sort of thing. aside the kicking bit. im sure it wouldn't be hard to mod that to kick rather than deop.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
NoFear
Halfop
Posts: 46 Joined: Wed Sep 10, 2003 8:36 am
Location: cW
Post
by NoFear » Thu Sep 11, 2003 11:24 am
thanks.. but i'm not wery good at tcl scripting.. can u give me whole code? pls.
Way Away From Here..
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Thu Sep 11, 2003 3:11 pm
putquick is the fastes one and by adding -next at it's end will make it be sent first.
Once the game is over, the king and the pawn go back in the same box.
^DooM^
Owner
Posts: 772 Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:
Post
by ^DooM^ » Thu Sep 11, 2003 3:34 pm
NoFear wrote: thanks.. but i'm not wery good at tcl scripting.. can u give me whole code? pls.
Ok download Slennox's superbitch tcl from his "My Files" link on egghelp
open it up in notepad.
find the lines that contain the word
"pushmode"
ie
Code: Select all
pushmode $chan -o $opped
pushmode $chan -o $nick
and change them to
Code: Select all
putquick "KICK $chan $opped"
putquick "KICK $chan $nick"
I think thats the right format im sure that i will be picked up on it if im wrong
Happy kicking
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
NoFear
Halfop
Posts: 46 Joined: Wed Sep 10, 2003 8:36 am
Location: cW
Post
by NoFear » Fri Sep 12, 2003 11:13 am
^DooM^ Tnx.
Way Away From Here..
NoFear
Halfop
Posts: 46 Joined: Wed Sep 10, 2003 8:36 am
Location: cW
Post
by NoFear » Fri Sep 12, 2003 11:27 am
I changed that.. but if someone op .. he gets +d flag.. i don't want that
.. i will try to remove that..
Code: Select all
if {$numversion < 1040200} {
if {[info commands isop] != ""} {
proc wasop {nick chan} {
return [isop $nick $chan]
}
}
}
proc sb_bitch {nick uhost hand chan mode opped} {
global botnick sb_chans sb_canop sb_canopany sb_canopflags sb_checkop sb_note sb_remove
if {$mode == "+o"} {
if {$nick != $botnick} {
if {((($opped != $botnick) && ($nick != $opped) && ([onchan $nick $chan]) && (![wasop $opped $chan])) && (($sb_chans == "") || ([lsearch -exact $sb_chans [string tolower $chan]] != -1)))} {
if {![matchattr [nick2hand $opped $chan] $sb_canopflags $chan]} {
if {(($sb_canopany == "") || (![matchattr $hand $sb_canopany $chan]))} {
putquick "KICK $chan $opped
putquick "KICK $chan $nick
}
}
}
}
}
}
return 0
}
set sb_chans [split [string tolower $sb_chans]] ; set sb_note [split $sb_note]
bind mode - * sb_bitch
putlog "Loaded superbitch.tcl v2.0 by slennox"
return
this is ok?
Way Away From Here..
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Fri Sep 12, 2003 6:19 pm
try it
NoFear
Halfop
Posts: 46 Joined: Wed Sep 10, 2003 8:36 am
Location: cW
Post
by NoFear » Sat Sep 13, 2003 4:21 am
I Tryed it.. it is not working
Way Away From Here..
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sat Sep 13, 2003 6:46 am
Code: Select all
bind mode - "* +o" kick:both
proc kick:both {nick uhost hand chan mc vict} {
global botnick
if {![isbotnick $nick] && ![isbotnick $vict] && ![string match $nick "ChanServ"]} {
putkick $chan $nick "out"
putkick $chan $vict "out"
}
}
NoFear
Halfop
Posts: 46 Joined: Wed Sep 10, 2003 8:36 am
Location: cW
Post
by NoFear » Sat Sep 13, 2003 12:30 pm
I'm on ircnet.. so.. i don't have chanserv..
Way Away From Here..
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sat Sep 13, 2003 12:36 pm
whatever, manage it to suite ircnet then.
NoFear
Halfop
Posts: 46 Joined: Wed Sep 10, 2003 8:36 am
Location: cW
Post
by NoFear » Sat Sep 13, 2003 12:56 pm
ok ti works.. but only bot can op
what do i must add that i can op on channels?
Way Away From Here..
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sat Sep 13, 2003 1:45 pm
add && ![matchattr $hand o|o $chan] , this will let any user with the "o" flag op people. (I'm sure you have the o flag :p)