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

by dokueki
Tue Nov 06, 2007 10:30 am
Forum: Scripting Help
Topic: Logic Error - Replacing Characters in a String
Replies: 10
Views: 4775

Well, it says it can't read the variable cause it's an array: (cumulan = substitute) [16:26] Tcl error [spidey:cumulan]: can't read "::cumulan": variable is array This is after I used global to make it accessible. Without using global, it says it doesn't exist, and without referring to it ...
by dokueki
Tue Nov 06, 2007 8:18 am
Forum: Scripting Help
Topic: Logic Error - Replacing Characters in a String
Replies: 10
Views: 4775

Woo, that was great help. I didn't know you could use string map with a list like that. Anyways, I tried it, and it works fine, until it stops replacing characters after the fifth time. I mean, +cumulan abcde works, but beyond that, it'll only replace upto e and then start outputting the following c...
by dokueki
Mon Nov 05, 2007 8:33 pm
Forum: Scripting Help
Topic: Logic Error - Replacing Characters in a String
Replies: 10
Views: 4775

Logic Error - Replacing Characters in a String

bind pub - "+cumulan" spidey:cumulan # a b c d e f g h i j k l m n o p q r s t u v w x y z # aym mi korao hra ku zu gli ti gura bu upa yai gia tu kan guum yipa rur lia do zor qi wu omyr kil airu proc spidey:cumulan { nick host hand chan text } { if { [lindex [split $text] 0] == "-r&q...
by dokueki
Sat Jun 23, 2007 10:17 am
Forum: Scripting Help
Topic: Binding from a list
Replies: 2
Views: 2391

Thank you! I tried foreach but I got the syntax wrong ^_^;; XD
by dokueki
Sat Jun 23, 2007 5:14 am
Forum: Scripting Help
Topic: Binding from a list
Replies: 2
Views: 2391

Binding from a list

Hey. I want to define a list of keywords (example 'set keywords "kw txt keyword morekeywords"') and bind for each keyword in the list (bind kw, bind txt, bind keyword, etc)
How would I go upon doing this?
by dokueki
Sat Jun 23, 2007 5:06 am
Forum: Scripting Help
Topic: Showing the time
Replies: 2
Views: 2419

Thanks. I do see it uses unix time though, is there a way to regularly format it?

EDIT: Nvm got it covered

Code: Select all

[strftime %H:%M:%S]
by dokueki
Sat Jun 23, 2007 4:43 am
Forum: Scripting Help
Topic: Showing the time
Replies: 2
Views: 2419

Showing the time

I'm making a script that sends me a PM whenever one of a list of words is said in the channel. The script works fine, but there's a small delay and when I'm using torrents, a larger one. is there a way to show the exact time in which the bind was triggered as a variable or function or something?
by dokueki
Mon Jun 04, 2007 6:53 am
Forum: Scripting Help
Topic: Replacing Characters in a String?
Replies: 2
Views: 2350

Tested, and works spotlessly. Thank you!
by dokueki
Mon Jun 04, 2007 4:48 am
Forum: Scripting Help
Topic: Replacing Characters in a String?
Replies: 2
Views: 2350

Replacing Characters in a String?

Hey all.
I'd like some help about replacing characters in a string. For example, I want all spaces in a string to become underscores.
Any help for that would be appreciated, thank you!
by dokueki
Mon May 07, 2007 12:34 pm
Forum: Scripting Help
Topic: Quick Linking Again // Other Method This Time
Replies: 5
Views: 3918

Thanks, I replaced "args" with "text" and it worked. Sorry for all the trouble!
by dokueki
Mon May 07, 2007 11:04 am
Forum: Scripting Help
Topic: Quick Linking Again // Other Method This Time
Replies: 5
Views: 3918

I tried that. When I did, it would give me this error:

Code: Select all

[04:53:40 pm] <Venom> [11:53] Tcl error [spidey:xpro_link]: wrong # args: should be "spidey:xpro_link nick host hand chan action sa"
And even if I fixed that, would it work if I put less parameters than necessary?
by dokueki
Mon May 07, 2007 10:02 am
Forum: Scripting Help
Topic: Quick Linking Again // Other Method This Time
Replies: 5
Views: 3918

Quick Linking Again // Other Method This Time

Well, the other script was giving me trouble if I tried multiplying it for several links, so I thought I'd just stop going the SDK way and make the script for myself, as no one will need it from me anyways. So the scripts is as such: bind pub - "!xpro" spidey:xpro_link proc spidey:xpro_lin...
by dokueki
Sat Apr 28, 2007 2:16 pm
Forum: Scripting Help
Topic: URL Quick Linking Script
Replies: 6
Views: 4532

It would seem that you are using a msg-binding, rather than a pub-binding. (1) MSG bind msg <flags> <command> <proc> procname <nick> <user@host> <handle> <text> Description: used for /msg commands. The first word of the user's msg is the command, and everything else becomes the text argument. Modul...
by dokueki
Sat Apr 28, 2007 9:48 am
Forum: Scripting Help
Topic: URL Quick Linking Script
Replies: 6
Views: 4532

Damn, It's still not working >_<
by dokueki
Sat Apr 28, 2007 9:02 am
Forum: Scripting Help
Topic: URL Quick Linking Script
Replies: 6
Views: 4532

You are using localspace variables when you're actually trying to access globalspace variables within your msg:gen_url proc. change $quicklink(url) to $::quicklink(url). Secondly, try to avoid using "args" as a parameter for your proc, as it a "magic" name, allowing it to take 1...