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.

SuperBitch Script That Kicks

Old posts that have not been replied to for several years.
User avatar
NoFear
Halfop
Posts: 46
Joined: Wed Sep 10, 2003 8:36 am
Location: cW

SuperBitch Script That Kicks

Post by NoFear »

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..
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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.
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

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
User avatar
NoFear
Halfop
Posts: 46
Joined: Wed Sep 10, 2003 8:36 am
Location: cW

Post by NoFear »

thanks.. but i'm not wery good at tcl scripting.. can u give me whole code? pls. :roll:
Way Away From Here..
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

NoFear wrote:thanks.. but i'm not wery good at tcl scripting.. can u give me whole code? pls. :roll:
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 :lol:

Happy kicking :wink:
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
User avatar
NoFear
Halfop
Posts: 46
Joined: Wed Sep 10, 2003 8:36 am
Location: cW

Post by NoFear »

^DooM^ Tnx. :P
Way Away From Here..
User avatar
NoFear
Halfop
Posts: 46
Joined: Wed Sep 10, 2003 8:36 am
Location: cW

Post by NoFear »

I changed that.. but if someone op .. he gets +d flag.. i don't want that :roll: .. 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..
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

try it
User avatar
NoFear
Halfop
Posts: 46
Joined: Wed Sep 10, 2003 8:36 am
Location: cW

Post by NoFear »

I Tryed it.. it is not working :cry:
Way Away From Here..
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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" 
 }
}
User avatar
NoFear
Halfop
Posts: 46
Joined: Wed Sep 10, 2003 8:36 am
Location: cW

Post by NoFear »

I'm on ircnet.. so.. i don't have chanserv.. :P
Way Away From Here..
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

whatever, manage it to suite ircnet then.
User avatar
NoFear
Halfop
Posts: 46
Joined: Wed Sep 10, 2003 8:36 am
Location: cW

Post by NoFear »

ok ti works.. but only bot can op :roll: what do i must add that i can op on channels?
Way Away From Here..
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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)
Locked