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

by dwickie
Thu May 11, 2006 10:49 am
Forum: Script Support & Releases
Topic: Tcl error [tv]: couldn't execute "php": no such fi
Replies: 5
Views: 6521

try replace "php" in [exec php $script_home/tvprog.php "$arg"] with full path (eg. /usr/bin/php)
by dwickie
Thu May 11, 2006 10:33 am
Forum: Script Requests
Topic: [MySQL] Join several channels
Replies: 2
Views: 4007

try:

Code: Select all

foreach res [mysqlsel $mysql(conn) "SELECT name FROM channels" -list] { }
by dwickie
Mon Apr 03, 2006 4:11 am
Forum: Script Requests
Topic: Searching from MySQL db and posting to chan?
Replies: 7
Views: 5103

Short question; How do I add a "No info found" to channel if nothing is found? :? simple edit: set query [mysqlsel $mysql(conn) "SELECT * FROM `releases` WHERE `rls` LIKE '%$arg%' LIMIT 10" -list] if {$query==""} { putserv "PRIVMSG $chan :Nothing found" ; ret...
by dwickie
Mon Mar 27, 2006 11:54 pm
Forum: Eggdrop Help
Topic: joined #chan but didn't want to!
Replies: 7
Views: 8798

sorry for digging out few years old topic, but:

how do i add channe, when eggdrop joins in it? i tried bind join and than check if nick==botnick and add channel, but i found this quite not working :/
by dwickie
Mon Mar 27, 2006 8:03 am
Forum: Script Requests
Topic: Searching from MySQL db and posting to chan?
Replies: 7
Views: 5103

One more thing, is it possible to change the standard output "days, hours, minutes, etc" to d, h, m, s, w, mn, etc? :) string map {" years" y " year" y " weeks" w " week" w " days" d " day" d " hours" h " hour"...
by dwickie
Mon Mar 27, 2006 5:22 am
Forum: Script Requests
Topic: Searching from MySQL db and posting to chan?
Replies: 7
Views: 5103

foreach result [mysqlsel $mysql(conn) "SELECT * FROM `releases` WHERE `rls` LIKE '%$arg%' LIMIT 10" -list] { set time [lindex $restul 1] set rls [lindex $result 2] set sect [lindex $result 3] putserv "PRIVMSG $chan :$rls ($sec) got updated [duration [expr [unixtime]-$time]] ago"...
by dwickie
Mon Feb 27, 2006 6:11 pm
Forum: Scripting Help
Topic: regexp returning values into variables stored in oneVariable
Replies: 1
Views: 3994

regexp returning values into variables stored in oneVariable

iam trying to do simple thing, there is example: regexp -all {(.*)\s(.*)} - nick rank this will store first (.*) into $nick and second (.*) into $rank, but if i will do it this way: # because on some channels is it for example "rank nick" set tmp "nick rank" regexp -all {(.*)\s(....
by dwickie
Thu Dec 22, 2005 8:11 pm
Forum: Scripting Help
Topic: help with random
Replies: 7
Views: 10979

one way how to do this (list putlog random numbers 0-20 without repeating) set num "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20" while {[llength $num]!=0} { set index [rand [llength $num]] putlog [lindex $num $index] set num "[lrange $num 0 [expr $index-1]] [lrange $num [expr...
by dwickie
Tue Nov 01, 2005 5:35 pm
Forum: Modules & Programming
Topic: how to speed up eggdrops default text-output to server
Replies: 6
Views: 18424

Code: Select all

proc putfast {arg} {
  append arg "\n"
  putdccraw 0 [string length $arg] $arg
} 

usage same as putquick/putserv/puthelp
by dwickie
Mon Aug 01, 2005 7:57 pm
Forum: Archive
Topic: Looping of script
Replies: 2
Views: 1948

Code: Select all

set variable 5

for {set i 1} {$i <= $variable} {incr i} {
  utimer [expr 5*$i] doproc 
}
this should work, if i get what you want

edit: you probably wanted to do 5min steps $variable times, so i edited
by dwickie
Mon Jul 25, 2005 11:07 am
Forum: Archive
Topic: "am i online?" script for lide.cz webchat
Replies: 14
Views: 5947

i dont still understand, why lide.cz - it is webchat server, no irc
by dwickie
Mon Jul 25, 2005 9:17 am
Forum: Archive
Topic: "am i online?" script for lide.cz webchat
Replies: 14
Views: 5947

a to /m evilloli a tam posle?
by dwickie
Sun Jul 24, 2005 6:47 pm
Forum: Archive
Topic: "am i online?" script for lide.cz webchat
Replies: 14
Views: 5947

no zadnou chybu to nepsalo zatim, tak doufam ze to teda bude fungovat btw moh bys este udelat at to na ten kanal posle kazdych 30 minut "." - no proste tecku? no kazdych 30 minut to posila to "/m evilloli a" tak jestli chces aby to posilalo tohle a tecku za tim, tak za putquick ...
by dwickie
Sun Jul 24, 2005 6:06 pm
Forum: Archive
Topic: "am i online?" script for lide.cz webchat
Replies: 14
Views: 5947

totok zkus # v kazdych xx:00 a xx:30 provede proceduru "checker" bind time - "00,30 * * * *" checker bind notc - * notcchecker proc notcchecker {nick host handle text dest} { putlog "checking notice: $text" # pokud prvni slovo z notice je "System:" (nejde cela...
by dwickie
Sun Jul 24, 2005 5:09 pm
Forum: Archive
Topic: "am i online?" script for lide.cz webchat
Replies: 14
Views: 5947

tak to uz vubec nechapu :) ty chces aby na kanal #686450 posilal pravidelne kazdou minutu "/m evilloli a" a pokud nedostane tu odpoved do minuty, tak to neco udela? s tim ti neporadi, v tehle timerovskejch zalezitostech se vzdy ztratim :) zkus jim to napsat jeste jednou a anglicky a trosku...