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.

Search found 9 matches

by exs-n0s
Sat Aug 28, 2004 10:39 pm
Forum: Archive
Topic: relaying eggdrop PM to a chan/nick
Replies: 4
Views: 2059

relaying eggdrop PM to a chan/nick

well, what im trying to do is, have every single PM bot's pms forwarded to a specific channel. But i cant seem to get it working. heres code...

Code: Select all

bind msg - * msgchan

proc noticeuser {nick uhost hand arg} { 
 puthelp "PRIVMSG $chan :[string tolower $arg]"
return 0
}
by exs-n0s
Sat Aug 28, 2004 10:21 pm
Forum: Archive
Topic: cant connect to mysql through tcl script
Replies: 4
Views: 2901

maybe the box your trying to connect to has blocked your ip? I dont know, this has happened to me once before.
by exs-n0s
Sat Aug 28, 2004 2:40 am
Forum: Archive
Topic: timer only goes on once
Replies: 10
Views: 3491

This should work bind pub -|- !done scrim:killtimer proc scrim:killtimer {nick host hand chan arg} { foreach t [timers] { if {[string match "*scrim:timer*" $t]} { killtimer [lindex $t 2] } } } Note that timer and utimer is not the same, timer count in minutes, while utimer use seconds, so...
by exs-n0s
Fri Aug 27, 2004 8:44 pm
Forum: Archive
Topic: timer only goes on once
Replies: 10
Views: 3491

nice, thanks GB, works like a charm now. I decided to bind public command to kill the timer, but not too sure if im doing it right. timer 1 scrim:timer proc scrim:timer {} { global basechan msg foreach c [channels] { if {(![string equal -nocase $c $basechan])} { puthelp "PRIVMSG $c :$msg" ...
by exs-n0s
Fri Aug 27, 2004 12:51 pm
Forum: Archive
Topic: timer only goes on once
Replies: 10
Views: 3491

Yes, thats what the script is supposed to do! To msg all the channels the bot is on (the script is working perfectly!). So how come you are saying the script doesn't seem to work? *confused* Yeah, the script displays the messages to all channels fine. But my problem here is that the timer doesnt wo...
by exs-n0s
Fri Aug 27, 2004 5:13 am
Forum: Archive
Topic: timer only goes on once
Replies: 10
Views: 3491

Yes, the message is being broadcasted to all channels the bot is in. $basechan would be set to a channel where the you can trigger the script, no where else. I have no idea why the $i is there, but i read somewhere on the forums that 'incr' is used to loop timers :s
by exs-n0s
Fri Aug 27, 2004 3:45 am
Forum: Archive
Topic: timer only goes on once
Replies: 10
Views: 3491

thanks for the reply awyeah.

Code: Select all

foreach c [channels] { 
 if {(![string equal -nocase $c $basechan])} { 
  utimer $interval "puthelp \"PRIVMSG $c :$msg\"" 
  } 
} 
Doesnt seem to work. It seems like its doing the same thing the old code is doing.
by exs-n0s
Thu Aug 26, 2004 11:23 pm
Forum: Archive
Topic: timer only goes on once
Replies: 10
Views: 3491

timer only goes on once

set i 0 foreach c [channels] { if {[strlwr $c] != [strlwr $basechan]} { utimer $interval [list puthelp "PRIVMSG $c :$msg"] incr i } } Well, for some reason, the continuous timer isnt working. Only does the timer once, and its killed. I cant seem to find out whats wrong.
by exs-n0s
Sat Feb 21, 2004 9:05 pm
Forum: Archive
Topic: Timer wont go on
Replies: 1
Views: 1300

Timer wont go on

#The script checks the mysql db every 5 minutes. The problem is that the script only checks the db after I rehash the bot. But afterwards, it doesnt parse anymore, unless you rehash the bot. For some odd reason, the timer doesn't work. Some help would be appreciated. Thanks set debug 0 set ver "...