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

by Zero
Thu Jul 27, 2006 5:38 am
Forum: Scripting Help
Topic: Compare 2 Numbers
Replies: 5
Views: 3930

Code: Select all

set number1 [string map -nocase {"." ""} "2.200.000.000"]
set number2 [string map -nocase {"." ""} "6.210.000 "]
if {$number1 > $number2} {
true
} else {
false
}
Try this
by Zero
Tue Jul 25, 2006 3:25 pm
Forum: Script Requests
Topic: Copy PM's to a channel
Replies: 10
Views: 6157

Try this bind msg - !say msg_say proc msg_say {nick uhost hand arg} { if {$arg == ""} { putserv "NOTICE $nick :Syntax: /msg $::botnick $::lastbind <#channel> <message>." } else { set chan [lindex [split $arg] 0] set message [join [lrange [split $arg] 1 end]] if {[string index $ch...
by Zero
Tue Jul 25, 2006 11:02 am
Forum: Script Requests
Topic: Copy PM's to a channel
Replies: 10
Views: 6157

Code: Select all

set ::mainchan "#channel"
bind msgm - * msg:mainchan
proc msg:mainchan {nick host hand arg} {
  puthelp "PRIVMSG $::mainchan "$nick Query: $arg"
  puthelp "PRIVMSG $nick :Sorry I'm a Eggdrop..."
}
by Zero
Tue Jul 25, 2006 4:19 am
Forum: Scripting Help
Topic: Trouble with args, *PROB SOLVED*
Replies: 4
Views: 3506

Try this: proc send:help {nick uhost hand chan args} { #Bring in the default list global helplist if { [llength $args] > 0 } { put:help $args $nick } else { putserv "privmsg $nick :Current general commands include: $helplist" putserv "privmsg $nick :For more information on a topic use...