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.
user
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Thu Oct 14, 2004 4:57 pm
DarkJFMan wrote: [14:48] Tcl error [msg:ads]: syntax error in expression "$adver = """
Don't you mean "=="?
Have you ever read "The Manual"?
DarkJFMan
Halfop
Posts: 85 Joined: Mon Dec 15, 2003 3:19 pm
Post
by DarkJFMan » Thu Oct 14, 2004 5:08 pm
I thought TCL is = and mIRC is ==, I haven't scripted TCL in a while, ty anyway.
DarkJFMan
Halfop
Posts: 85 Joined: Mon Dec 15, 2003 3:19 pm
Post
by DarkJFMan » Thu Oct 14, 2004 5:09 pm
[15:09] Tcl error [msg:ads]: wrong # args: should be "lindex list index"
I put
proc msg:ads {lindex list index} {
but...
[15:09] Tcl error [msg:ads]: called "msg:ads" with too many arguments
user
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Thu Oct 14, 2004 5:26 pm
The two errors have nothing to do with each other and they explain exactly what you did wrong.
Have you ever read "The Manual"?
DarkJFMan
Halfop
Posts: 85 Joined: Mon Dec 15, 2003 3:19 pm
Post
by DarkJFMan » Thu Oct 14, 2004 5:27 pm
I really need to know how to fix it. Can you tell me how please.
user
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Thu Oct 14, 2004 5:30 pm
DarkJFMan wrote: I really need to know how to fix it. Can you tell me how please.
1: call 'lindex' with the right arguments (check
http://tcl.tk/man/tcl8.5/TclCmd/lindex.htm if in doubt)
2: call your own proc with the right number of arguments (3)
(posting your current code HERE might help if you get stuck again)
Have you ever read "The Manual"?
DarkJFMan
Halfop
Posts: 85 Joined: Mon Dec 15, 2003 3:19 pm
Post
by DarkJFMan » Thu Oct 14, 2004 5:48 pm
Yes got it, ty, I needed to have lrange instead of lindex. Now i understand the difference betwee the 2.
DarkJFMan
Halfop
Posts: 85 Joined: Mon Dec 15, 2003 3:19 pm
Post
by DarkJFMan » Thu Oct 14, 2004 6:09 pm
I have never scripted using Dcc
I'm trying to bind something in order for bot to send me the whole file through dcc chat to me. Now got a couple of question should i make it loop the whole file then send me what's inside it or... easier way.
PRIVMSG is for channel msging
for Dcc should i use
putdcc <idx> <text>
Description: sends text to the idx specified
Returns: nothing
Module: core
or...
dccbroadcast <message>
Description: sends a message to everyone on the party line across the
botnet, in the form of "*** <message>" for local users and
"*** (Bot) <message>" for users on other bots
Returns: nothing
Module: core
Thank you.
user
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Thu Oct 14, 2004 6:14 pm
Do you want it to be displayed to all users or just the particular user invoking the command? (putdcc is for sending messages to a single user)
Have you ever read "The Manual"?
DarkJFMan
Halfop
Posts: 85 Joined: Mon Dec 15, 2003 3:19 pm
Post
by DarkJFMan » Thu Oct 14, 2004 6:15 pm
then it's putdcc. and if i want to read all the lines from a text do i need loop?
user
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Thu Oct 14, 2004 7:14 pm
DarkJFMan wrote: then it's putdcc. and if i want to read all the lines from a text do i need loop?
No (use read)
Have you ever read "The Manual"?
DarkJFMan
Halfop
Posts: 85 Joined: Mon Dec 15, 2003 3:19 pm
Post
by DarkJFMan » Thu Oct 14, 2004 10:35 pm
How can I clear a file, in the TCL faq it said how to delete the last line, how about if i want to clear it
user
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Fri Oct 15, 2004 3:44 am
DarkJFMan wrote: How can I clear a file, in the TCL faq it said how to delete the last line, how about if i want to clear it
http://tcl.tk/man/tcl8.5/TclCmd/open.htm#M7
w Open the file for writing only.
Truncate it if it exists . If it doesn't exist, create a new file.
Have you ever read "The Manual"?
awyeah
Revered One
Posts: 1580 Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:
Post
by awyeah » Fri Oct 15, 2004 9:43 am
DarkJFMan wrote: I thought TCL is = and mIRC is ==, I haven't scripted TCL in a while, ty anyway.
TCL has the same comparators as mIRC excepting a few which are not defined.
In TCL:
== equal to ==> can also use: ([string equal -nocase $text1 $text2])
!= not equal to
=== not defined ==> use: ([string equal $text1 $text2])
< less than
> larger than
>= larger than or equal to
<= smaller than or equal to
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================