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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
-
Madalin
- Master
- Posts: 310
- Joined: Fri Jun 24, 2005 11:36 am
- Location: Constanta, Romania
-
Contact:
Post
by Madalin »
I need a code so that the eggdrop will pick a randommmm server to connect.
I tryed to make a $randomserver variable but it didnt read it. I made it like this:
Code: Select all
set list_server {
"server 1"
"server 2"
}
set randomserver [lindex $list_server [rand [llength $list_server]]]
and then in the:
Code: Select all
set nb_servers {
$::randomserver
}
[/code]
NOTE: I am using netbots.tcl