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 

OK, so I'm a dumbass...

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
Spot
Guest





PostPosted: Thu Mar 14, 2002 5:34 am    Post subject: Reply with quote

...and it's late, and I'm tired. I've been trying to create a "slap" script of sorts(yea, I know it's lame, but I'm trying to learn =P), piecing together what I've understood of the docs so far and using other scripts as examples, but I'm a bit lost here. I need another set of eyes to look at what I've been working on, and let me know what I've f**ked up this time. It's prolly a total wash, but here it is:

--begin code--
set slap {
{

"slaps $arg around a bit with a large trout"
}
{

"slaps $arg around with $nick's stinky old sock!"
}
}

bind pub - !slap slapit:pub:slap

proc slapit:pub:slap {nick uhost hand chan arg}
set cmd [string tolower [lindex $arg 0]]
if {$cmd == ""} {
putmsg $chan "\002DOES NOT COMPUTE...DOES NOT COMPUTE\002"; return 0}
if { $slap != "" } {
{[lindex $slap [rand [llength $slap]]]}
putact $chan "$slap"
--end code--

Thanks for any help given.
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive 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