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.
Old posts that have not been replied to for several years.
Real
Voice
Posts: 24 Joined: Mon Mar 08, 2004 11:27 am
Post
by Real » Wed Apr 07, 2004 5:52 am
1) I have a rather stupid question.
What is the $+ command in TCL?
I've tried searching for it in google and on this forum, but it's quite impossible to search for since it only uses special characters.
Thanks in advance
2) Is there a way to save global variables, so that they are still there when the bot is rebooted? Now, in my script there's set var "" , but I actually want it to have to same value as it did before the loading of the script. Is this possible?
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Wed Apr 07, 2004 8:53 am
maybe if u write it to a txt file .. then read it on startup .. other wize i can't think of a way how you could do this ..
XplaiN but think of me as stupid
dollar
Op
Posts: 178 Joined: Tue Oct 28, 2003 3:47 pm
Location: Netherlands
Post
by dollar » Wed Apr 07, 2004 9:40 am
Real wrote: 1) I have a rather stupid question.
What is the $+ command in TCL?
I've tried searching for it in google and on this forum, but it's quite impossible to search for since it only uses special characters.
Thanks in advance
Not everyone speaks mirc (guess), try explaining what it does...
dollar (or something similar) at:
#eggdrop / #tcl - undernet
#egghelp / #tcl / #eggtcl - efnet
#eggdrop.support / #tcl - quakenet
#eggdrop - ircnet
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Wed Apr 07, 2004 5:21 pm
also $+ means join vars or something eh
but in tcl u can just write them next to eachother like
$test$test$test$test
no need for
$+($test, $test, $test, $test)
XplaiN but think of me as stupid
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Thu Apr 08, 2004 5:28 am
You could if you so wish, use concat.
Code: Select all
set a "hello"
set b "world"
set var [concat $a $b]
set var
Would output "helloworld"
Ofloo
Owner
Posts: 953 Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:
Post
by Ofloo » Thu Apr 08, 2004 3:27 pm
thats usefull to know
XplaiN but think of me as stupid