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

by krimson
Tue Sep 12, 2006 1:25 pm
Forum: Eggdrop Help
Topic: eggdrop works with -n, but with no args...doesnt work
Replies: 2
Views: 2708

by krimson
Sat Sep 02, 2006 11:24 am
Forum: Script Requests
Topic: Channel Key Save.
Replies: 2
Views: 2558

by krimson
Fri Sep 01, 2006 8:11 am
Forum: Scripting Help
Topic: string editing
Replies: 3
Views: 3091

by krimson
Tue Aug 29, 2006 3:07 pm
Forum: Eggdrop Help
Topic: Problem with eggdrop on shell command line
Replies: 5
Views: 4164

or use backslash to escape the special char

Code: Select all

./eggdrop -m \<trashbot.conf\>
by krimson
Mon Aug 28, 2006 10:21 am
Forum: Scripting Help
Topic: How many Files in Folder?
Replies: 3
Views: 3253

for the first question:

Code: Select all

set filenum 0
foreach entry [glob -directory /filebase/ *.moep] {
  incr filenum
}
return $filenum
and for the second:

Code: Select all

foreach entry [glob -directory /filebase/ *.moep] {
  file delete $entry
}
by krimson
Wed Aug 09, 2006 4:24 pm
Forum: Scripting Help
Topic: global variables don't work
Replies: 18
Views: 13656

it's true that his first post was not so clear, but still, for that matter you'd need to use $botnick instead of $nick
by krimson
Wed Aug 09, 2006 3:55 pm
Forum: Scripting Help
Topic: global variables don't work
Replies: 18
Views: 13656

here are some tips:

1. don't use global nick, you'd be better off using an argument for proc botaway instead

2. you don't have to use ${nick} there, you use that when you have any non-space char right after the var, and don't want it to get mixed up with something else
by krimson
Wed Aug 09, 2006 3:38 pm
Forum: Scripting Help
Topic: global variables don't work
Replies: 18
Views: 13656

that's no prob :P just wanted to make sure the info is recieved the right way ;)
by krimson
Wed Aug 09, 2006 2:44 pm
Forum: Script Requests
Topic: Anti-Socks v1.1 TCL need hack
Replies: 7
Views: 7190

note to ko-pach: when posting any type of code, please enclose it between

Code: Select all

 brackets.. especially when posting something that large
by krimson
Wed Aug 09, 2006 4:21 am
Forum: Scripting Help
Topic: global variables don't work
Replies: 18
Views: 13656

if you used an argument when declaring the procs, you must use it when calling them too proc bla { nick } { return [string equal -nocase bla $nick] } proc blabla { nick } { return [string equal -nocase blabla $nick] } bind pubm - "*!afk*" afk proc afk {nick host hand chan arg} { if {[bla $...
by krimson
Tue Aug 08, 2006 3:23 am
Forum: Scripting Help
Topic: global variables don't work
Replies: 18
Views: 13656

@darton: the reason why the code in your first post won't work is because (probably) you didn't set $nick before setting $bla and $blabla. this is the reason why you should use both vars inside your procs
by krimson
Mon Aug 07, 2006 4:00 pm
Forum: Scripting Help
Topic: how to remove channel appearing
Replies: 4
Views: 3990

ok, i didn't quite understand what you wanted at first.

you might want to reconsider editing your config

Code: Select all

set bwhere 1
will send the rules to the whole channel via notice (hence the channel appearing)
if you want to send it (and i think you do) only to the user who typed !rules use

Code: Select all

set bwhere 0
by krimson
Mon Aug 07, 2006 2:53 pm
Forum: Scripting Help
Topic: how to remove channel appearing
Replies: 4
Views: 3990

just open this file

Code: Select all

/home/breeze/eggdrop/text/rules.txt
and change the text inside

ps. use

Code: Select all

 tags when posting scripts / snippets
by krimson
Mon Aug 07, 2006 3:01 am
Forum: Scripting Help
Topic: results
Replies: 5
Views: 3955

Code: Select all

set userhost [getchanhost $user $chan]
this provides you the ident@host part
by krimson
Sun Aug 06, 2006 2:31 pm
Forum: Scripting Help
Topic: results
Replies: 5
Views: 3955

well, what your code does there is check each host if it matches *.users.undernet.org and overwrites the variable $h until the last user to be checked.

i'm not sure what you want to do with this, so if you'd be more specific i could help out with some code