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

by juanamores
Thu Apr 20, 2017 11:44 am
Forum: Scripting Help
Topic: Tabulations
Replies: 8
Views: 9024

This I had already tried but it did not work for me. What I want is that the names and points are aligned in the same column. I can not put an example here, because I do not see the tool to tabulate the forum. With the code that I shared you above it out like this: 1. Ana 12 2. Federico 11 3. Pedro ...
by juanamores
Wed Apr 19, 2017 5:36 pm
Forum: Scripting Help
Topic: Tabulations
Replies: 8
Views: 9024

Tabulations

How can I tabulate the rr,name and rank variables so that they are all in the same column? foreach pair $results { scan $pair {%s%d} name rank incr rr if {$rr == 1} { putmsg $chan_owners "\002\0034 $rr. $name $rank"} if {$rr == 2} { putmsg $chan_owners "\0032 $rr. $name $rank"} i...
by juanamores
Wed Apr 19, 2017 2:20 pm
Forum: Scripting Help
Topic: Greeting on join with countdown days
Replies: 4
Views: 6868

Excellent solution and excellent explanation. :mrgreen:
You are a genious :)
by juanamores
Wed Apr 19, 2017 7:41 am
Forum: Scripting Help
Topic: Greeting on join with countdown days
Replies: 4
Views: 6868

Hi Caesar, I worked perfect your script from above. :)
Could you explain to me, to learn, how does this line work?

Code: Select all

# compute the number of days in the current month
set days [clock format [clock scan "$month/1/$year + 1 month - 1 day"] -format %d]
Thank you very much! :)
by juanamores
Tue Apr 18, 2017 9:10 pm
Forum: Scripting Help
Topic: Greeting on join with countdown days
Replies: 4
Views: 6868

Greeting on join with countdown days

I want to create a script that greets the nicks when join a channel and indicates how many days rest for the last day of the month. The last day of the month will be known who was the winner. I have problem with the variables nick and chan, since I can not put them in the process because it gives er...
by juanamores
Tue Apr 18, 2017 1:03 pm
Forum: Eggdrop Help
Topic: Update, configuring and compiling TCL version
Replies: 4
Views: 8624

A) I think you have to recompile the eggdrop again to "see" the newer version of TCL. Several years ago I installed the eggdrop, I honestly do not remember how it is recompiled. :oops: Do I have to remove the bots from the IRC for that task? Could you help me with that? Edit: I was able t...
by juanamores
Tue Apr 18, 2017 6:22 am
Forum: Eggdrop Help
Topic: Update, configuring and compiling TCL version
Replies: 4
Views: 8624

If you do: yum list tcl tcl-devel what's the result? Paquetes instalados tcl.x86_64 1:8.5.13-8.el7 @base tcl-devel.x86_64 1:8.5.13-8.el7 @base Paquetes disponibles tcl.i686 1:8.5.13-8.el7 base tcl-devel.i686 1:8.5.13-8.el7 base If you go the path I said above... Petición HTTP enviada, esperando res...
by juanamores
Tue Apr 18, 2017 6:14 am
Forum: Scripting Help
Topic: Sort file data
Replies: 21
Views: 19488

You're right, I've changed it back to -integer and it works fine. :) I had changed it to -real because earlier it gave me an error of the type: Tcl error: expected floating-point number but got "5.00 15.00 11.00 14.00 2.00". I understood that a floating number was expected and got a list o...
by juanamores
Mon Apr 17, 2017 6:40 pm
Forum: Eggdrop Help
Topic: Update, configuring and compiling TCL version
Replies: 4
Views: 8624

Update, configuring and compiling TCL version

I was reading to inform me of the update of the version of my TCL, here and here . Because my English is very basic, I want a summary, step of step , of how to do these tasks without making mistakes. Data: running eggdrop v1.6.21 OS: Linux 3.10.23-xxxx-std-ipv6-64-vps (CentOS 64 bits) Tcl library: /...
by juanamores
Mon Apr 17, 2017 4:17 pm
Forum: Scripting Help
Topic: Sort file data
Replies: 21
Views: 19488

[Solved!]

Fixed! This is what I wanted. :) :) :) :) Thank you so much to caesar and willyw . proc averages {nick uhost hand chan text} { set fp [open "ranking" "r"] set data [read -nonewline $fp] close $fp foreach line [split $data "\n"] { if {[scan $line {%s%d} name rank] != 2} ...
by juanamores
Mon Apr 17, 2017 2:20 pm
Forum: Scripting Help
Topic: Sort file data
Replies: 21
Views: 19488

caesar is almost perfect.
There is only one small detail that I can not solve.
It is about applying the rounding rule with the "round" function.
If you look at the values of Pedro
9 + 10 + 4 = 23
23/3 = 7.66
The final result of Pedro should be 8, not 7.
It can be fixed?
by juanamores
Mon Apr 17, 2017 1:42 pm
Forum: Scripting Help
Topic: Sort file data
Replies: 21
Views: 19488

Error: Tcl error [averages]: element 1 missing from sublist "10"
by juanamores
Mon Apr 17, 2017 1:39 pm
Forum: Scripting Help
Topic: Sort file data
Replies: 21
Views: 19488

running eggdrop v1.6.21
Tcl version: 8.5.13 (header version 8.5.13)
by juanamores
Mon Apr 17, 2017 1:31 pm
Forum: Scripting Help
Topic: Sort file data
Replies: 21
Views: 19488

caesar your code gives an error:
Tcl error [averages]: bad option "-stride": must be -ascii, -command, -decreasing, -dictionary, -increasing, -index, -indices, -integer, -nocase, -real, or -unique
by juanamores
Mon Apr 17, 2017 12:33 pm
Forum: Scripting Help
Topic: Sort file data
Replies: 21
Views: 19488

willyw wrote:I showed you one way to sort it, above. You can adapt from that.
In your solution, you get the result by sorting a list, but with the caesar code I have to sort an array.
I haven't idea how to integrate both ideas... :oops: