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 963 matches

by stdragon
Mon May 03, 2004 6:08 am
Forum: Archive
Topic: Tricky Database Question
Replies: 2
Views: 1319

In tcl, you can make lists with actual list commands rather than a string with entries separated by commas. It will be much easier to change stuff around. Then, if you need the comma-separated string for something later, you can use the join command to get it. For instance: set names set string &quo...
by stdragon
Mon May 03, 2004 6:05 am
Forum: Archive
Topic: Removing colors etc from string.
Replies: 4
Views: 1255

I don't think is a color, is it? If not, why would a color stripper remove it?

Why don't you post some sample lines that cause that error.
by stdragon
Fri Apr 30, 2004 12:53 am
Forum: Archive
Topic: replacing line problem
Replies: 4
Views: 1717

The script you found seems to remove line 76 and add another one onto the very end. You want to replace 76? Change the lreplace command to add the new line in place of the one you remove. See the tcl manual http://www.tcl.tk/man/tcl8.4/TclCmd/contents.htm for the lreplace command for details.
by stdragon
Tue Apr 20, 2004 10:25 am
Forum: Archive
Topic: reading eggdrop.conf
Replies: 12
Views: 3270

Haha I don't know why I said it. I was feeling in a bad mood anyway. Not your fault!
by stdragon
Mon Apr 19, 2004 7:31 pm
Forum: Archive
Topic: reading eggdrop.conf
Replies: 12
Views: 3270

"Connection reset by peer" generally means the person who sent the data closed the socket before all of the data arrived. Maybe your test program that sends the file through the socket is exiting (not just closing the socket but actually exiting) before all the data is sent. One solution i...
by stdragon
Wed Apr 14, 2004 9:01 am
Forum: Archive
Topic: Async socket
Replies: 7
Views: 2408

You also have to wait for it to connect. Try using vwait or a loop with update.
by stdragon
Wed Apr 14, 2004 12:24 am
Forum: Archive
Topic: Async socket
Replies: 7
Views: 2408

Re: Async socket

... cause i tryed this and it seems to be connecting all the time makes no difference wether it connects or not ... From what you posted, it seems like it does not show it to be connecting all the time... it instead shows an error all the time. You forgot an argument to fileevent, namely the socket.
by stdragon
Mon Apr 12, 2004 8:27 am
Forum: Archive
Topic: expr with large values
Replies: 5
Views: 1623

Dude, please don't do ipv6 calculations in floating point. Use integers. Most computers don't have 128 bit builtin integers, so it's kind of unavoidable to split it up.
by stdragon
Sat Apr 10, 2004 5:56 pm
Forum: Archive
Topic: expr with large values
Replies: 5
Views: 1623

An easier way to do it is: expr 9999999999999.0 * 9999999999999.0 1e+26 You got: 100000000000000004764729344 which is the same thing. The real value is 99999999999980000000000001. So it's approximately right. Not much of a difference between 0.999999999999 and 1.0. But anyway, the reason is that com...
by stdragon
Sat Apr 10, 2004 2:20 am
Forum: Archive
Topic: How to kill an identitifed timer
Replies: 2
Views: 1755

Get the return value of the utimer command and save it. It is the timer id. Pass it to killutimer to stop it.

Also, you should really use [list checkverreply $nick $nick!$uhost] instead of "checkverreply $nick $nick!$uhost" so that it won't kill the bot with a nick like [die].
by stdragon
Sat Mar 27, 2004 6:14 pm
Forum: Archive
Topic: Recieving Files?
Replies: 3
Views: 2050

The bot accepts and downloads the file all by itself. The RCVD bind is triggered after the file is totally received.
by stdragon
Thu Mar 25, 2004 8:06 pm
Forum: Archive
Topic: !word does not start the game
Replies: 4
Views: 1478

I don't think you posted the whole script, because nothing in the script ever sends any kind of word to the server, except "the game is turned off". So it's hard to say what the error is. Maybe your word list is empty? Who knows.
by stdragon
Thu Mar 25, 2004 1:26 pm
Forum: Archive
Topic: time sugestion
Replies: 6
Views: 1774

Hikaro, It seems that you haven't posted the part of the script that actually checks for the right answer (binds probably). That is the part you will probably need to change. Most likely, right now it sets a flag or stores the correct answer somewhere. You should make it kill the timers and call the...
by stdragon
Thu Mar 25, 2004 1:10 pm
Forum: Archive
Topic: Adding timed procedure
Replies: 6
Views: 1859

set timer_minutes 300 if {![info exists word_timer_id]} { set word_timer_id [timer $timer_minutes word_timer] } proc word_timer {} { global word_timer_id timer_minutes definitions set word_timer_id [timer $timer_minutes word_timer] putserv "privmsg #mychan :[lindex $definitions [rand [llength ...
by stdragon
Tue Mar 23, 2004 5:48 pm
Forum: Archive
Topic: IRC Bot Proxy Checker
Replies: 2
Views: 1934

That's cool that you want to write your own bot. It doesn't really matter what language you do it in. Eggdrop was written in C for a few reasons. First, C is very portable... almost every platform has a C compiler and standard libraries. Second, it makes it easy to add on to the bot, in the form of ...