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 dragoneye
Sat Feb 10, 2007 7:41 am
Forum: Scripting Help
Topic: problem with list / mysql
Replies: 7
Views: 4727

thx again...well im learning more about tcl all the time :) but sometimes i need little help :L
by dragoneye
Fri Feb 09, 2007 3:43 pm
Forum: Scripting Help
Topic: problem with list / mysql
Replies: 7
Views: 4727

well im trying :) but not good with this kinda thingie :( foreach {a b} [split [set vs][set vs ""] "- "] { lappend vs [expr {$a>$b?"\00303":($a==$b?"\00312":"\00304")}]$a-$b if { $a>$b } { [incr win 1] } if { $a==$b } { [incr draw 1] } if { $a<$b } {...
by dragoneye
Fri Feb 09, 2007 3:14 pm
Forum: Scripting Help
Topic: problem with list / mysql
Replies: 7
Views: 4727

well how can i make the script add wins losses and draws ? i tried this but didnt get it to work :( set win "0" set draw "0" set lose "0" foreach {a b} [split [set vs][set vs ""] "- "] { lappend vs [expr {$a>$b?"[incr lose 1]":($a==$b?"...
by dragoneye
Fri Feb 09, 2007 2:30 pm
Forum: Scripting Help
Topic: problem with list / mysql
Replies: 7
Views: 4727

user wrote:

Code: Select all

foreach {a b} [split [set vs][set vs ""] "- "] {
	lappend vs [expr {$a>$b?"\00303":($a==$b?"\00312":"\00304")}]$a-$b
}
set vs [join $vs]
EDIT: moved the \003 to prevent expr messing up the return values
again man you rock :) thx
by dragoneye
Fri Feb 09, 2007 12:06 pm
Forum: Scripting Help
Topic: problem with list / mysql
Replies: 7
Views: 4727

problem with list / mysql

i want to put colors to my scores like if 1-0 then green if 0-1 red and 1-1 blue proc cws {nick uhost hand chan arg} { if { [isop $nick $chan] } { global dbhost dbuser dbpass dbname mycpage matchtab mytag pchan if {$arg == ""} { putnotc $nick "\[\2cw's\2\] syntax: !cws clantag";r...
by dragoneye
Tue Nov 28, 2006 3:30 am
Forum: Scripting Help
Topic: little prob
Replies: 1
Views: 2281

little prob

got little problemn i have this script that says anything that someone says to my bot in private to my privatechannel. the problem is that i dont want the bot say !add and !remove in my private chanel, how do i make the if {[lindex $line 0] != "!add" "!remove" } - line so that i ...
by dragoneye
Wed Apr 20, 2005 2:24 pm
Forum: Archive
Topic: script request
Replies: 3
Views: 2898

thx to allmighty De Kus the script works now =)
by dragoneye
Wed Apr 20, 2005 10:55 am
Forum: Archive
Topic: script request
Replies: 3
Views: 2898

script request

hello guys again =) im currently working on a matchfindbot-script but i cannot figure how to make a spam protection to it, i also need somekinda timer to delete 1 line from the database. script works like this when u type !cw 3 now on the bot will msg [ RQ3 CW ] #channel is looking for 3vs3 @ now - ...
by dragoneye
Tue Apr 19, 2005 4:29 pm
Forum: Archive
Topic: need little help mrc script to tcl
Replies: 1
Views: 1631

need little help mrc script to tcl

hi i was just wondering how can i change this script for eggdrop menu channel { .start monitor : servermonitor $$?="Enter a server ip:" $$?="Enter the server port: (default 27910)" $$?="Enter name of Team 1: (one word)" $$?="Enter name of Team 2: (one word)" ....