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

by oxygen
Sun Sep 23, 2007 4:44 am
Forum: Script Support & Releases
Topic: trivial.tcl html output
Replies: 4
Views: 5113

Hello mr_fanatic Try this: set _op ""; set _vo ""; set _reg ""; foreach nick [lsort [chanlist $tgchan]] { if {[isop $nick $tgchan]} { lappend _op $nick } elseif {[isvoice $nick $tgchan]} { lappend _vo $nick } else { lappend _reg $nick } } set _chanlist [join "$_op ...
by oxygen
Sun Sep 16, 2007 1:58 pm
Forum: Scripting Help
Topic: How can I get the name of the last month?
Replies: 3
Views: 2832

Hello

@DragnLord
Thanks

@tsukeh
Thats exactly what I needed. Thanks a lot. :)

oxygen
by oxygen
Fri Sep 14, 2007 12:52 pm
Forum: Scripting Help
Topic: How can I get the name of the last month?
Replies: 3
Views: 2832

How can I get the name of the last month?

Hello.

I want to store a file every month in a database, with the name of the previous month.

Code: Select all

file copy -force $file $newfile[strftime %Y]_[expr [strftime %m]-1].db
Any sugestion?

Thnx,
oxygen
by oxygen
Mon Jul 23, 2007 11:25 am
Forum: Scripting Help
Topic: Auto Voice Top 3 trivia players
Replies: 1
Views: 2073

Hello Try to add this to your joining proc. If you don't know how.. just post your joining proc here. # Set this to how many players you like to voice. set topplayer 3 # Joining trivia chan. proc tgjoinmsg {nick host hand chan} { global tgranksbyname topplayer tgscoresbyname tgchan tggetscores if {!...
by oxygen
Wed May 24, 2006 7:04 am
Forum: Scripting Help
Topic: missing close-brace
Replies: 2
Views: 3967

Hello whittinghamj. I didn't test the script, but it should work now: bind pub -|o !age age proc age {nick uhost hand channel text} { if {[llength $text] > 1} { puthelp "PRIVMSG $chan :You were supposed to look for a nick.. not more" } elseif {![lsearch $::backupfile $text]} { puthelp &quo...
by oxygen
Mon May 01, 2006 12:50 pm
Forum: Scripting Help
Topic: Sort database
Replies: 3
Views: 5369

Hello I'll try to explaine it better. The database is part of a trivia game. The first item is the yearly score, third item monthly score and so on. With the above code the database is sorted by the first item, the yearly score. When I do a top 10 then it counts the yearly score. What I want is a to...
by oxygen
Fri Apr 28, 2006 6:54 am
Forum: Scripting Help
Topic: Sort database
Replies: 3
Views: 5369

Sort database

Hello all. I need some help to sort my database. My database is formatted like this: A1,B1,C1,D1 A2,B2,C2,D2 A3,B3,C3,D3 and so on... Example: 345,nick1,23,56 333,nick2,22,3 200,nick3,4,3 I sort this with: set score [lsort -dict -decreasing [split [gets $scorefile]]] but I want to sort B1 and B2 and...
by oxygen
Sun Apr 23, 2006 4:41 am
Forum: Scripting Help
Topic: Store colored text.
Replies: 6
Views: 6850

Hello

Seems that this behavior is only under windrop. I uploaded my script on my eggdrop, and there is all ok.


Tnx,
~oxygen
by oxygen
Thu Apr 20, 2006 12:57 pm
Forum: Scripting Help
Topic: Store colored text.
Replies: 6
Views: 6850

Hello, I have a problem with the stored text. I store the greentext with: set fd [open $log_greentext a+] puts $fd "$greentext" close $fd In the stored file, the text is filled with ? between the words. Example: "This is?an?example of the?green?text." With "putlog" in t...
by oxygen
Thu Mar 30, 2006 5:42 am
Forum: Scripting Help
Topic: Store colored text.
Replies: 6
Views: 6850

Hello Sir_Fz

It's exactly what I was lookin' for. Works fine :)

Tnx alot.

~oxygen
by oxygen
Tue Mar 28, 2006 7:46 pm
Forum: Scripting Help
Topic: Store colored text.
Replies: 6
Views: 6850

Hello Sir_Fz

Tnx for your reply. I know that. ;)
Wat I'm searching for is to grab the colored words from a text. Not the entire sentence, only the green colored words. Since english is not my native language, it's a little difficult to explain. Sorry..

~oxygen
by oxygen
Tue Mar 28, 2006 6:33 pm
Forum: Scripting Help
Topic: Store colored text.
Replies: 6
Views: 6850

Store colored text.

Hi,

hope somebody can help...

I want to store a colored text in a variable. And only the words in this specific color. I don't even know if it's possible...
Example:
This text is only an example for what I need.

Code: Select all

set $greentext "is only an example"
Tnx in advance,
oxygen
by oxygen
Wed Mar 01, 2006 7:26 am
Forum: Scripting Help
Topic: problem with utimer
Replies: 0
Views: 3823

problem with utimer

Hello, found this in eggdrop documentation: utimer <seconds> <tcl-command> what I need is something like this: set newtimer [utimer <seconds> <tcl-command> $nick] I'll appreciate a hint :D Ok, got it. :oops: Sorry. set newtimer [utimer <seconds> {<tcl-command> $nick}] ~oxygen
by oxygen
Wed Jan 18, 2006 6:25 am
Forum: Scripting Help
Topic: replacing spaces with random letter
Replies: 2
Views: 5252

working fine :)

Tnx Sir_Fz
by oxygen
Tue Jan 17, 2006 7:52 am
Forum: Scripting Help
Topic: replacing spaces with random letter
Replies: 2
Views: 5252

replacing spaces with random letter

Hello.

How can I replace spaces in a given fraze randomly with letters [a-z] and a specific color.


Thx in advance..
Oxygen