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.

I need only a single TCL script, please help..

Old posts that have not been replied to for several years.
Locked
h
hide
Voice
Posts: 26
Joined: Mon Dec 22, 2003 12:02 pm

I need only a single TCL script, please help..

Post by hide »

Hi all!
I've already got stuck reading manuals and having no progress in scripting. So I decided to ask somebody to write a complete tcl script for me because: a) I've read lots of manuals and it made almos no effect for me; I'm still green in it b) I need only single TCL script, it is no matter to continue wasting health and time for reading manuals.

So now I'll try to describe my script.

The script watches the channel #main for joins. If a user having ident "cht-v3.1" joins the channel, the script sends him a file called vkt.ini and puts that user's IP in some kind of list (it sais that this user has already received this file) and when somebody joins again from the same IP, the script won't send the file again.

I tried to write this kind of script in mIRC (it doesn't work properly but maybe it would help you to understand what I want)

ON *:JOIN:#Main:{
if (( %send. [ $+ [ $address($nick,2) ] ] == $null ) && ( cht-v3.1 isin $address )) {
.dcc send -c $nick c:\vkt.ini
.set %send. [ $+ [ $address($nick,2) ] ] sent
}
}
else { }



Is it difficult to write a script in a scripting-language you know well? This is a small detail for some gurus but for me is very important. I hope to get help. Thanks
Locked