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

by Dw2k
Thu Feb 26, 2004 5:42 am
Forum: Archive
Topic: Talker Script
Replies: 10
Views: 2399

set text [lrange $args 0 end] quite useless eh? ;) just remove that line and replace $text with $args btw @Dw2k: by using "join $args" you convert it to a string. using list commands on that is not a good idea. your "set text [lrange $args 0 end]" on the other hand returns a lis...
by Dw2k
Wed Feb 25, 2004 9:22 am
Forum: Archive
Topic: Talker Script
Replies: 10
Views: 2399

I sometimes use

Code: Select all

 set args [split [join $args] " "]
I'll have to look at it more :D
by Dw2k
Tue Feb 24, 2004 8:50 am
Forum: Archive
Topic: Talker Script
Replies: 10
Views: 2399

Yeah I suppose you could, as long as its just the one channel and it never changes :) take out set chan [lindex $args 0] and rename the other to: set text [lrange $args 0 end] then have putserv "PRIVMSG #yourchannel :$text" put in the channel you want to message and it will always message ...
by Dw2k
Tue Feb 24, 2004 4:35 am
Forum: Archive
Topic: Talker Script
Replies: 10
Views: 2399

Code: Select all

bind msg - talk cmd:talker
proc cmd:talker {nick uhost hand args} {
  set args [join $args]
  set chan [lindex $args 0]
  set text [lrange $args 1 end]

   putserv "PRIVMSG $chan :$text"
}
That should :)
by Dw2k
Mon Feb 23, 2004 7:06 pm
Forum: Archive
Topic: kick cmd not working
Replies: 10
Views: 2483

You need the correcy syntax for putkick putkick $chan $target $reason and if you replace proc cmd:kick {nick host hand chan text} { with proc cmd:kick {nick host hand chan args} { and add set args [join $args] set target [lindex $args 0] set reason [lrange $args 1 end] Im sure you can figure the res...
by Dw2k
Mon Feb 23, 2004 6:39 pm
Forum: Archive
Topic: Talker Script
Replies: 10
Views: 2399

You need to replace

Code: Select all

 proc talker {nick uhost hand chan text} { 
witu

Code: Select all

 proc talker {nick uhost hand args} { 
and have

Code: Select all

set args [join $args]
set chan [lindex $args 0]
set text [lindex $args 1]
then the rest of your code
you will need to use /msg botname tell #chan message

Hope that helps :)
by Dw2k
Mon Feb 23, 2004 5:21 pm
Forum: Archive
Topic: !op !deop !kick
Replies: 2
Views: 1171

by Dw2k
Sun Feb 15, 2004 8:19 pm
Forum: Archive
Topic: Delete a users XTRA line in the userfile
Replies: 2
Views: 1368

Delete a users XTRA line in the userfile

Can anyone point me in the right direction on how to remove the XTRA line from the userfile?

I know to set it you use

Code: Select all

setuser $nick XTRA EMAIL email@address.com
but im unsure how to remove it.

Thanks :)
by Dw2k
Sat Feb 14, 2004 6:06 pm
Forum: Archive
Topic: breaking out of a switch and running more code
Replies: 2
Views: 870

Hmm, thats what I assumed at the start.

I must have something else wrong in my code, i'll have another look.

Thanks :)

EDIT: Yes, my fault. I was rehashing the bots each time, a restart made them recognise the new code. Strange one that.
by Dw2k
Sat Feb 14, 2004 5:05 pm
Forum: Archive
Topic: breaking out of a switch and running more code
Replies: 2
Views: 870

breaking out of a switch and running more code

Im trying to figure out how to come out of a switch and run more code, e.g. proc {lalala} { set up args do somecode here switch $something { "somearg" { dosomecode return / break } "someotherarg" { dosomeothercode return / break } } do more code here (outside of switch) } I have ...
by Dw2k
Thu Feb 12, 2004 7:08 pm
Forum: Archive
Topic: foreach loops help
Replies: 2
Views: 849

Yeah thanks. Got it now with a bit a help and poke in the right direction.

My logic was never good :D
by Dw2k
Thu Feb 12, 2004 1:53 pm
Forum: Archive
Topic: foreach loops help
Replies: 2
Views: 849

foreach loops help

I have a silly problem, with both my code and my head :D My head doesn't understand loops in loops, and neither does my bot, as the code is wrong, anyway I digress... proc cmd:opstatus {nick uhost hand chan args} { global botnick hubchan userchan set message "" foreach channel [channels] {...
by Dw2k
Mon Apr 28, 2003 8:55 am
Forum: Archive
Topic: Who wrote topic
Replies: 17
Views: 4113

you could set a variable at the topic set time

set whotopic($chan) "$nick"

then bring it back with something like

puthelp "PRIVMSG $chan :Topic was set by $whotopic($chan)"

yadda :)

guess this wont work if the topic wasn't set via a cmd on the bot.
by Dw2k
Wed Feb 19, 2003 7:42 am
Forum: Archive
Topic: Delay channel join
Replies: 1
Views: 1021

Delay channel join

I was wondering if its possible to delay eggdrop joining channels before performing a sethost?

Thanks :D
by Dw2k
Sat Dec 07, 2002 5:52 pm
Forum: Archive
Topic: tcl giving me gripe :|
Replies: 1
Views: 806

edit: scratch that, fixed it :) ty Godin