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 

Simple Greeting Script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
kisser
Voice


Joined: 20 Feb 2010
Posts: 7

PostPosted: Sat Feb 20, 2010 3:35 am    Post subject: Simple Greeting Script Reply with quote

Code:
#Scripted By KiSsEr
#KiSsEr@k.St
#To use it .chanset #channel +greets


set greeting "Your Msg Here"
set blackl(punish) 3:2


#[ don't edit here if you don't know how!#

bind join - * bl:greet
setudef flag greets

set blackl(lim) [scan $blackl(punish) %\[^:\]]
set blackl(secs) [scan $blackl(punish) %*\[^:\]:%s]

proc bl:greet {nick uhost hand chan} {
 global BLNicks blackl blflood greeting botnick
 if {![channel get $chan greets]} {return 0}
 if {![info exists blflood([set chan [string tolower $chan]])]} { set blflood($chan) 0 }
 if {$nick == $botnick} { return }
 if {[blfollow $blackl(secs) blflood($chan)] < $blackl(lim)} {
     putserv "notice $nick :$greeting"
    } else {
    return
}
}
proc blfollow {secs blvar} {
 upvar $blvar fvar
 utimer $secs [list bldicr $blvar]
 incr fvar
}

proc bldicr blvar {
 upvar $blvar fvar
 if {$fvar > 0} {
  incr fvar -1
 }
}


putlog "Greeting Script KiSsEr"

_________________
•°o.O Wµ¥ ƒîgµT tø LìvÈ µøm¥ îƒ wÊ Øñ£ÿ £îvìñ tÕ ÐïÊ O.o°•
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases 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