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

by krimson
Thu Jul 27, 2006 1:53 am
Forum: Scripting Help
Topic: Compare 2 Numbers
Replies: 5
Views: 3721

if you use multiple dots in a number you'd get an invalid number format, so it won't work... don't use the dots
by krimson
Wed Jul 26, 2006 11:10 am
Forum: Scripting Help
Topic: Compare 2 Numbers
Replies: 5
Views: 3721

use '<' or '>' in if statements
by krimson
Tue Jul 25, 2006 4:32 am
Forum: Scripting Help
Topic: Trouble with args, *PROB SOLVED*
Replies: 4
Views: 3407

you should use

Code: Select all

proc send:help {nick uhost hand chan {args ""}}
by krimson
Fri Jul 21, 2006 11:12 am
Forum: Scripting Help
Topic: uncomment a *
Replies: 4
Views: 3733

i misinterpreted your request.. my bad :roll:
by krimson
Fri Jul 21, 2006 10:19 am
Forum: Scripting Help
Topic: uncomment a *
Replies: 4
Views: 3733

so you want to check if '*' is anywhere in your string? or only at the beginning?

Code: Select all

if {[string first * $oper 0] >0} {
  #this will check if there's at least one '*' in $oper
}
by krimson
Fri Jul 21, 2006 6:56 am
Forum: Scripting Help
Topic: timer problem
Replies: 2
Views: 2967

you should use

Code: Select all

utimer 15 [list putquick "privmsg #channel :Timer after 15 seconds!"]
by krimson
Wed Jul 19, 2006 11:21 am
Forum: Scripting Help
Topic: two problems
Replies: 4
Views: 4148

you can use something like this set openfile [open "path/to/your/file" r] set data [read $openfile] foreach line [split $data \n] { if {$line == nick1} { #perform whatever commands } elseif {$line == nick2} { #perform other commands } else { #another set of commands } }
by krimson
Wed Jul 19, 2006 10:30 am
Forum: Scripting Help
Topic: two problems
Replies: 4
Views: 4148

1. use [split "This-is-a-test" -]
2. http://tclhelp.net/#faqfile
by krimson
Fri Jul 07, 2006 9:15 am
Forum: Script Requests
Topic: timer thing
Replies: 2
Views: 2395

Code: Select all

foreach chan [channels] {
  timer <time> <proc>
}
by krimson
Mon Jul 03, 2006 8:32 am
Forum: Script Requests
Topic: !command <var>
Replies: 5
Views: 3512

"arg" holds everything you type after !command
by krimson
Mon Jul 03, 2006 8:31 am
Forum: Eggdrop Help
Topic: linking error
Replies: 1
Views: 2616

one has been compiled using handlen 9 and the other using handlen 32.. i would suggest running both bots from the same directory (same binary file, thus same handlen), using different config files.
by krimson
Wed Jun 28, 2006 4:27 pm
Forum: Scripting Help
Topic: Question about an array
Replies: 8
Views: 6370

try using

Code: Select all

foreach text [split $texts \n] {
  if {[string match -nocase $text $reset]} {set case 1} 
}
it should work
by krimson
Tue Jun 27, 2006 5:40 pm
Forum: Scripting Help
Topic: Can anyone tell me where I went wrong ? :(
Replies: 15
Views: 11663

no.. if you want it to get called 30 seconds after it finishes, paste the utimer 30 line after the last line in proc test2
by krimson
Tue Jun 27, 2006 4:19 pm
Forum: Scripting Help
Topic: Can anyone tell me where I went wrong ? :(
Replies: 15
Views: 11663

you shouldn't declare the proc inside the utimer, you should just call it then proc topic_update {sock} { set headers [egghttp:headers $sock] set topic [egghttp:data $sock] regexp { <td height="39" valign="top" id="description"><font color="white" face="v...
by krimson
Tue Jun 27, 2006 2:53 pm
Forum: Scripting Help
Topic: Is this possible ? (utimer)
Replies: 4
Views: 4281

they would just print out one after another, but one second later than the first time i would suggest using utimer in utimer. something like this: utimer 1 { putserv "msg $chan :bleah" utimer 1 { putserv "msg $chan :bleah" utimer 1 { putserv "msg $chan :bleah" [...] } }...