egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

flood pro on tcl code

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
suffering
Voice


Joined: 27 May 2005
Posts: 27

PostPosted: Sat Sep 10, 2005 3:53 am    Post subject: flood pro on tcl code Reply with quote

i want to make it for me on the tcl code pls

Code:

on @*:TEXT:*:#: {
  if ( $me isop $chan ) {
    set -u3 %fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] $calc( %fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] + 1)
    if (%fld. [ $+ [ $chan ] $+ . $+ [ $nick ] ] >= %limit.flood ) {
      ban # $nick 2
      kick # $nick 10Channel flood detected!!
    }
  }
}
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Sep 10, 2005 7:05 am    Post subject: Reply with quote

Not everybody knows mIRC, so tell us what you exactly want and we might do it or help you do it.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
suffering
Voice


Joined: 27 May 2005
Posts: 27

PostPosted: Sat Sep 10, 2005 8:21 am    Post subject: Reply with quote

i want a text/action flood protection not based on eggdrop.conf
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Sep 10, 2005 9:31 am    Post subject: Reply with quote

Try allfloodprotection. It's not based on eggdrop's protections.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
suffering
Voice


Joined: 27 May 2005
Posts: 27

PostPosted: Sat Sep 10, 2005 3:09 pm    Post subject: Reply with quote

my friend, if i want to use ur script i will use it. i just want a part of it not all of them, i dont want to load a whole script for one protection.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Sep 10, 2005 3:27 pm    Post subject: Reply with quote

my friend, what you requested to be translated into Tcl is nothing but pretty lame and crude mIRC protection, far inferior even to eggdrop's built-in chan protection (because it tracks the flood source by nick, and if the flooder keeps changing nicks, they will beat your "protection" script as they wish)
Back to top
View user's profile Send private message Visit poster's website
suffering
Voice


Joined: 27 May 2005
Posts: 27

PostPosted: Sat Sep 10, 2005 5:46 pm    Post subject: Reply with quote

demond i just ask for a script if anyone can make it for me, i dont need u to tell me what my script will do. if you can help good if you cant or anything else good again but keep ur comments for 'lame' to u. i request a script and i answer to sir not to you. im using his tcl on dalnet and its very good there, on undernet its not what im trying to do thats why im requesting that flood pro. whats ur problem on this?
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Sep 10, 2005 6:01 pm    Post subject: Reply with quote

dude, I will always reply as I see fit, to anyone and to anything; and I will always try to help anyone to use eggdrop as it was meant to be used - including, but not limited to, letting ignorant people like yourself know they are using lame script(s) and they could do a way better - so it's not me who has a problem, it's you who has a problem, and if you were smart enough, you would swallow your mIRC pride and would listen what I have to say, 'cause I'm here you to help you, not to taunt you
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Sep 10, 2005 8:15 pm    Post subject: Reply with quote

Code:
set textftrigger 5:2

bind pubm - * textf
bind ctcp - ACTION actionf

proc textf {nick uhost hand chan arg} {
 global textftrigger textf
 if {![info exists textf([set f [string tolower $uhost:$chan]])]} {
  set textf($f) 0
 }
 utimer [lindex [split $textftrigger :] 1] [list incr textf($f) -1]
 if {[incr textf($f)] >= [lindex [split $textftrigger :] 0]} {
  pushmode $chan +b *!*@[lindex [split $uhost @] 1]
  putkick $chan $nick "Text flood detected."
  unset textf($f)
 }
}

proc actionf {nick uhost hand chan kw arg} {
 if {[isbotnick [lindex [split $chan "@"] 0]] || [lindex [split $chan "@"] 1] != ""} {return 0}
 textf $nick $uhost $chan $chan $arg
}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
suffering
Voice


Joined: 27 May 2005
Posts: 27

PostPosted: Sat Sep 10, 2005 8:45 pm    Post subject: Reply with quote

no comment demond
enx sir_fz.
i have this error sir

Code:

|03:41| › (abuse) [17:40] Tcl error in script for 'timer25902':
|03:41| › (abuse) [17:40] can't read "textf(hellas2@213.149.185.51:#fun-club)": no such element in array
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Sep 10, 2005 10:03 pm    Post subject: Reply with quote

Remove
Code:
unset textf($f)

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
alisetan
Voice


Joined: 21 May 2006
Posts: 36

PostPosted: Thu Jul 27, 2006 9:10 am    Post subject: Reply with quote

Sir_Fz wrote:
Code:
set textftrigger 5:2

bind pubm - * textf
bind ctcp - ACTION actionf

proc textf {nick uhost hand chan arg} {
 global textftrigger textf
 if {![info exists textf([set f [string tolower $uhost:$chan]])]} {
  set textf($f) 0
 }
 utimer [lindex [split $textftrigger :] 1] [list incr textf($f) -1]
 if {[incr textf($f)] >= [lindex [split $textftrigger :] 0]} {
  pushmode $chan +b *!*@[lindex [split $uhost @] 1]
  putkick $chan $nick "Text flood detected."
  unset textf($f)
 }
}

proc actionf {nick uhost hand chan kw arg} {
 if {[isbotnick [lindex [split $chan "@"] 0]] || [lindex [split $chan "@"] 1] != ""} {return 0}
 textf $nick $uhost $chan $chan $arg
}



how to protect voice and op??
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Fri Jul 28, 2006 1:36 am    Post subject: Reply with quote

Code:

if {[isop $nick $chan] || [isvoice $nick $chan]} return

add this after the proc bla bla bla ... line.
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber