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

by Reynaldo
Thu Jan 28, 2010 11:09 pm
Forum: Scripting Help
Topic: help wih colour
Replies: 17
Views: 13986

The part that matters in the script below is the proc pColorRandom which, when called with a <text> argument, will return the text with randomly coloured foreground/background. A while loop is used to ensure that the foreground color cannot be the same as the background color. A public command with...
by Reynaldo
Tue Jan 26, 2010 5:25 am
Forum: Scripting Help
Topic: help wih colour
Replies: 17
Views: 13986

You can use this proc, which is much faster: proc randomcolors str { set str2 "" foreach token [split $str ""] { set rdm [expr {[rand 15]+1}] if {$rdm < 10} { set rdm 0$rdm } if {$token != " "} { append str2 \003${rdm}$token\003 } { append str2 $token } } set str2 } Br...
by Reynaldo
Sun Jan 24, 2010 11:24 am
Forum: Scripting Help
Topic: Please help with this character ( ¤)
Replies: 15
Views: 13765

Code: Select all

if {[regexp {\xa4} [encoding convertfrom utf-8 $rname]] == 1 || [string length $rname] > 45} {..}
Finally it's working perfect!!

Thank you very much Guys. :lol: :D
by Reynaldo
Sat Jan 23, 2010 11:06 pm
Forum: Scripting Help
Topic: Please help with this character ( ¤)
Replies: 15
Views: 13765

set rname "bla bla bla bla bla ¤" if {[regexp {\xA4} $rname] == 1 || [string length $rname] > 45} {..} Doesnt works! using eggdrop v1.6.18. i'm going be silly with this char :( how about using scan method? just scan the last chars of $name, cause the ugly spammers always(not) have that sil...
by Reynaldo
Fri Jan 22, 2010 11:12 pm
Forum: Scripting Help
Topic: Please help with this character ( ¤)
Replies: 15
Views: 13765

:roll: set text "¤ Mp3 ¤ My Song - Yeah, it is.mp3 ¤" set string [lindex [split $text] 0] set test [scan $string %c] if {$test == 164} { putlog "detected that $text! starts with ¤ :P" } There's probably a much easyer and better way to do this Ok, that can detect if the char is i...
by Reynaldo
Fri Jan 22, 2010 8:43 pm
Forum: Scripting Help
Topic: Please help with this character ( ¤)
Replies: 15
Views: 13765

TCL_no_TK wrote:

Code: Select all

 set rname [format {%c} 164]
 set test [scan $rname %c]
  if {$test == 164} {
   puts "It Worked!"
  }
:P

Code: Select all

set rname [format {%c} 164] 
seems it's not working. :(, the character is in $rname.
by Reynaldo
Fri Jan 22, 2010 2:17 am
Forum: Scripting Help
Topic: Please help with this character ( ¤)
Replies: 15
Views: 13765

TCL_no_TK wrote:

Code: Select all

format {%c} "164"
how to use it?

Code: Select all

if {[string match "*[format {%c} "164"]*" $rname] || [string length $rname] > 45} { .... } 

it's right? thanks for the advice.
by Reynaldo
Wed Jan 20, 2010 11:54 pm
Forum: Scripting Help
Topic: Please help with this character ( ¤)
Replies: 15
Views: 13765

if {[string match "*\xA4*" $rname] || [string length $rname] > 45} { .... } The above should work fine because characters up to hex FF can be represented by using a backslash followed by an x and then the two digit hex number (164 decimal == A4 hex). [12:51] <arfer> .tcl set varname \xA4 ...
by Reynaldo
Wed Jan 20, 2010 6:21 am
Forum: Scripting Help
Topic: Please help with this character ( ¤)
Replies: 15
Views: 13765

Please help with this character ( ¤)

if {[string match -nocase "*¤*" $rname] == 1 || [string length $rname] > 45} { .... } any idea how to detect that chars "¤" it doesn't work, but in my mirc scritps it's working well. it mirc, the chars in $chr(164) will return to "¤" , i have no idea in tcl, seems so c...
by Reynaldo
Sat Jan 02, 2010 11:15 pm
Forum: Script Support & Releases
Topic: Please help with shitlist
Replies: 1
Views: 2961

Please help with shitlist

proc pub_+akick {nick uhost hand channel param} { global botname botnick set rest [lindex $param 0] if {$rest == ""} { puthelp "NOTICE $nick :Usage: +akick <nick/hostname>" return 0 } if {$rest == "*" || $rest == "*!*@*"} { puthelp "NOTICE $nick :invalid...
by Reynaldo
Mon Mar 23, 2009 1:25 am
Forum: Script Support & Releases
Topic: Eggdrop RSS Syndication (rss-synd) v0.5b1
Replies: 399
Views: 650607

Re: Eggdrop RSS Syndication (rss-synd) v0.5b1

v0.4 Final has been release, you can find it in the tcl archive http://www.egghelp.org/tcl.htm v0.5 is still work in progress, there are a few more things i would like to add and some things that really need fixing (ie: decent charset support) before I would consider releasing a final version. Curr...
by Reynaldo
Wed Oct 08, 2008 5:01 am
Forum: Script Requests
Topic: Scrips for checking email at yahoo/hotmail
Replies: 0
Views: 1277

Scrips for checking email at yahoo/hotmail

hi, There's anyone can create the scripts for checking email from yahoo/hotmail? just for new email not reading it. Thank you
by Reynaldo
Fri Sep 19, 2008 2:47 am
Forum: Script Requests
Topic: users join and part about 3minutes
Replies: 3
Views: 2071

Code: Select all

bind part - * ban:flyby 

proc ban:flyby {nick uhost hand chan arg} { 
if {[getchanjoin $nick $chan] >= [expr {[clock seconds]-180}]} { 
putquick "MODE $chan +b *!*@[lindex [split $uhost @] 1]" 
 } 
}
by Reynaldo
Fri Sep 19, 2008 2:14 am
Forum: Script Requests
Topic: users join and part about 3minutes
Replies: 3
Views: 2071

yes, i do searching already the intire forums, but i need the simple one :D
by Reynaldo
Wed Sep 17, 2008 10:33 pm
Forum: Script Requests
Topic: users join and part about 3minutes
Replies: 3
Views: 2071

users join and part about 3minutes

Hey anyone can help me to creaate a simple scripts that can ban the users join then part less then 3minutes? the spammer always do this. thanks