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

by sparta
Tue Mar 01, 2005 2:01 pm
Forum: Archive
Topic: file check
Replies: 4
Views: 2347

with some modification that worked just fine, thnx for the help.. :) have to read a bit so i know what does what it that code tho ;)
by sparta
Tue Mar 01, 2005 10:04 am
Forum: Archive
Topic: file check
Replies: 4
Views: 2347

I got that to work, but now i got another problem.. :?: proc list_bchannels {userfile-loaded} { global "bitchchannels" set datafile bitchchannels if {![file exists bitchchannels]} { set r [open bitchchannels a+] puts $r "." putlog "File bitchchannels missing, created it.&quo...
by sparta
Tue Mar 01, 2005 9:38 am
Forum: Archive
Topic: file check
Replies: 4
Views: 2347

file check

if {![info exists filename]} { do stuff } else { do other stuff } that code should look for a file called "filename", if it dosent exist it should do some stuff, but if it exist it should do something else.. how do i fix this error ? cos now it say the file dosent exist even when it does.....
by sparta
Mon Feb 28, 2005 4:40 pm
Forum: Archive
Topic: trigger command on start
Replies: 2
Views: 1612

thnx :)
by sparta
Mon Feb 28, 2005 3:23 pm
Forum: Archive
Topic: trigger command on start
Replies: 2
Views: 1612

trigger command on start

How do i make a tcl trigger a command on start ? i have a proc, and i want the bot to trigger that proc when it start, same thing when i do .restart or .rehash, and i have no idea on how it should look like. been searching here too, but couldent find it..
by sparta
Mon Feb 28, 2005 7:55 am
Forum: Archive
Topic: write to file problem
Replies: 9
Views: 2897

if i ask like this then, how do i remove a file ? i want all old data stored in the file gone befor i add a new line to it.. the fastest way would be "rm" i guess ? but i dont know the command for that true a TCL, the comman need to be sent to the shell.. since i know the name of the file,...
by sparta
Mon Feb 28, 2005 7:30 am
Forum: Archive
Topic: write to file problem
Replies: 9
Views: 2897

I want to replace the channel thats in the file, then over write it with a new channel or channels.. now if i add 1 more channel it ends up like: #channel1 #channel2 but i want it to be only 1 line.. so if i type: .bchan #channel1 #channel2 then it write down the channels to the file bitchchannels.....
by sparta
Mon Feb 28, 2005 7:14 am
Forum: Archive
Topic: write to file problem
Replies: 9
Views: 2897

I tryed your code, same result.. [12:13] Tcl error [set:sbch]: can't read "bitchchannel": no such variable ------------- EDIT --------------- OK, i solved the problem, now to next part.. when i set a new channel, then i want the old one to be replaced with the new value, any way to do this...
by sparta
Mon Feb 28, 2005 5:54 am
Forum: Archive
Topic: write to file problem
Replies: 9
Views: 2897

This is the error i get: Tcl error [set:sbch]: can't read "bitchchannel": no such variable but since the seccond "script" works ok, then the problem must be in the first one, chwr $channels <<-- thats the line i call the proc chwr with.. and if i remove that line, then the seccon...
by sparta
Mon Feb 28, 2005 5:37 am
Forum: Archive
Topic: variable problem [Solved]
Replies: 5
Views: 2463

I solved the problem with:

Code: Select all

proc set:sbch {nickc hand text} {
 global channels 
 set channels "$text"
 putlog "S-Bitch channel set to: $channels"
}
:roll:
by sparta
Mon Feb 28, 2005 5:34 am
Forum: Archive
Topic: write to file problem
Replies: 9
Views: 2897

write to file problem

this is what i have so far: proc chwr {text} { global bitchchannel bitchchannels set data "$text" if {$bitchchannel != ""} {set r [open $bitchchannels a+]; puts $r "[strftime "%d %b %Y, %H:%M %z"]: $data"; close $r} putlog "Added $text to Bitch channel li...
by sparta
Sun Feb 27, 2005 12:48 pm
Forum: Script Support & Releases
Topic: entertain.tcl
Replies: 14
Views: 26393

I used that TCL years ago, and had the same problem with it, i think it's only "miss spelled", and since i wanted to lern a litle about TCL i made my own, much bether and more fun to use home made stuff.. :) :wink: :evil:
by sparta
Sun Feb 27, 2005 12:41 pm
Forum: Archive
Topic: unreal TCL
Replies: 2
Views: 1991

unreal TCL

I would like to see a TCL that can 1: connect to a Unreal Tournament server. 2: gather the info from the players there. 3: send it to the nick requesting it in /msg. like: Amount of players. Players nick's. Map they playing. i have seen a fev types of this scripts. but they are to complicated. i hav...
by sparta
Sun Feb 27, 2005 10:16 am
Forum: Archive
Topic: variable problem [Solved]
Replies: 5
Views: 2463

variable problem [Solved]

I have this code: bind dcc n bchan sbch proc sbch {channels i bc} { global sbch set sbch $bc putlog "S-Bitch channel(s) set to: $bc" } Now the problem is that it wont set the var sbch as $bc .. i have been asking in some channels.. and people tell me that it should work, but dosent. so any...