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

by arfer
Thu Jul 14, 2011 11:28 am
Forum: Script Requests
Topic: Top 10 by country
Replies: 2
Views: 2267

# domains.tcl # probably not suitable for multiple fast moving channels because it reads/writes per each join # automatically scans each join on each bot channel. no need for !addhost command # ignores the botnick joining a channel # ignores numeric ips # so far lacks code to reset ?#channel? to ze...
by arfer
Fri Jul 08, 2011 9:18 pm
Forum: Eggdrop Help
Topic: Ok.. I give up, and I'm waving the white flag
Replies: 3
Views: 4562

You are not alone in your issues with DCC chat. I'm afraid I can't respond with specifics regarding your dedicated VPS server because I don't use one, but I can give some hints at the type of problem that can occur. My setup is a broadband connection through a router to several PCs, some wired and s...
by arfer
Fri Jul 08, 2011 8:32 pm
Forum: Script Support & Releases
Topic: Holdem Script from egghelp
Replies: 1
Views: 3794

dict is a command that first appeared in core Tcl 8.5.x so my first port of call would be to check your Tcl version.
by arfer
Mon Mar 28, 2011 5:11 pm
Forum: Script Requests
Topic: .bad add/del/list Tcl
Replies: 2
Views: 6706

Give this script a try. I've done a limited amount of testing. # badnick.tcl ### ---------- operation ---------------------------------------------------------------------- ### # creates and manages a list of banned nicks from badnick.txt in the bots root directory # nicks joining selected bot chann...
by arfer
Mon Mar 21, 2011 10:21 am
Forum: Script Requests
Topic: youtube tcl with protection
Replies: 1
Views: 2087

Give this a try. # youtitle.tcl # to function in #channelname requires in the partyline .chanset #channelname +youtitle # requires that coloured text can be displayed in #channelname (eg. not +c on DALnet) ##############################################################################################...
by arfer
Tue Mar 08, 2011 10:02 am
Forum: Scripting Help
Topic: Find date of second thursday of month
Replies: 18
Views: 12053

Jagg, please give the following script a thorough testing on your system. Input to the command !finddate is the same (English). Output is English. [13:57] <@arfer> !finddate sunday december 2010 5 [13:57] <osmosis> cannot find 5 Sunday's in December 2010 [13:57] <@arfer> !finddate wednesday december...
by arfer
Tue Mar 08, 2011 8:20 am
Forum: Scripting Help
Topic: Find date of second thursday of month
Replies: 18
Views: 12053

I think this problem is likely to be as a result of server/eggdrop language settings rather than timezone, since a timezone will often encompass several countries/languages. The best solution would be to think about a rewrite of the script to deal with day and month numbers, mapping the numbers to n...
by arfer
Mon Mar 07, 2011 7:45 pm
Forum: Scripting Help
Topic: Find date of second thursday of month
Replies: 18
Views: 12053

This latest 'fixed' version should now work with Eggdrop or Windrop and with Tcl 8.4 or Tcl 8.5
by arfer
Mon Mar 07, 2011 5:50 pm
Forum: Scripting Help
Topic: Find date of second thursday of month
Replies: 18
Views: 12053

Fixed :- set vFinddateVersion 11.03.07.21.48 bind PUB - !finddate pPubFinddate proc pPubFinddate {nick uhost hand chan text} { set vars [split $text] if {[llength $vars] == 4} { set day [lindex $vars 0]; set month [lindex $vars 1]; set year [lindex $vars 2]; set number [lindex $vars 3] switch -- [se...
by arfer
Mon Mar 07, 2011 3:14 pm
Forum: Scripting Help
Topic: Find date of second thursday of month
Replies: 18
Views: 12053

Still not functioning correctly on my Windrop bot (1.6.19) with Tcl 8.5 [19:07] <@arfer> !finddate monday february 2010 5 [19:07] <osmosis> Monday 01 March 2010 [19:08] <@arfer> !finddate saturday february 2010 5 [19:08] <osmosis> 0 [19:22] <arfer> .tcl [clock scan 31-February-2010 -format "%d-...
by arfer
Mon Mar 07, 2011 2:08 pm
Forum: Scripting Help
Topic: Find date of second thursday of month
Replies: 18
Views: 12053

Thanks speechless, that does explain things. I have modified the script in my original post according to your recommendations. Hopefully Jagg is still following the thread he created.

One possible problem though, I'm assuming the code no longer works on Tcl 8.4?
by arfer
Mon Mar 07, 2011 9:11 am
Forum: Scripting Help
Topic: Find date of second thursday of month
Replies: 18
Views: 12053

Yes I'm aware caesar, but that's only any use if the code for two or more switch values require the same code. All the values in the script above have different code. I wouldn't mind some explanation of why my Windrop bot rolls extra days over into the next month rather than returning an invalid dat...
by arfer
Sun Mar 06, 2011 8:56 am
Forum: Script Requests
Topic: Simple calculator.
Replies: 18
Views: 25381

I copied the script calc.tcl directly from the site you pasted above and loaded it into one of my bots. It seems to work fine for me. [12:44] <@arfer> .calc 123/2 [12:44] <Colossus> 123/2 = 61 [12:44] <@arfer> .calc 123/2.0 [12:44] <Colossus> 123/2.0 = 61.5 The script is on an Eggdrop version 1.6.20...
by arfer
Sat Mar 05, 2011 9:11 pm
Forum: Script Requests
Topic: Simple calculator.
Replies: 18
Views: 25381

The errors you are getting are as a consequence of how the script you are using treats the command arguments. I was merely illustrating how core Tcl handles math.
by arfer
Sat Mar 05, 2011 4:56 pm
Forum: Script Requests
Topic: Simple calculator.
Replies: 18
Views: 25381

Tcl is integer math unless it is otherwise implied in the function eg. by using one or more decimal number values. [20:45] <@arfer> % return [expr {123/7}] [20:45] <@Baal> 17 [20:45] <@arfer> % return [expr {123/7.0}] [20:45] <@Baal> 17.5714285714 [20:51] <@arfer> % return [format %.2f [expr {123/7....