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

by Gemster
Wed Mar 09, 2011 8:27 pm
Forum: Scripting Help
Topic: run command from another proc command ?
Replies: 8
Views: 8977

run command from another proc command ?

Hi, Ill try to explain this the best i can. proc totest {nick host handle chan arg} { puthelp "PRIVMSG ###1 : this is a simple little test :D" } bind pub - ".loltest" loltest proc loltest {nick host handle chan arg} { totest } When i type ".loltest" in channel ###1 i wa...
by Gemster
Tue Mar 08, 2011 6:41 am
Forum: Scripting Help
Topic: can't read "chan": no such variable
Replies: 13
Views: 12826

caesar,

All i was saying it that there were things added that i didnt need and things i didnt understand and yes you both explained them. I guess i learn a different way as i make simple script and get them working then i grow on the scripts making them better when i learn more.

Thanks
Gemster
by Gemster
Mon Mar 07, 2011 7:08 pm
Forum: Scripting Help
Topic: can't read "chan": no such variable
Replies: 13
Views: 12826

Anyways i finally found a way to declare the chan :D bind raw - 379 whois:stoner proc whois:stoner {from keyword text} { global whochan putserv "PRIVMSG $whochan :My Modes are \00310[lrange $text 5 end]\003" } bind pub m ".whome" whome proc whome {nick host handle chan arg} { glo...
by Gemster
Mon Mar 07, 2011 6:54 pm
Forum: Scripting Help
Topic: can't read "chan": no such variable
Replies: 13
Views: 12826

speechles, caesar Im sorry if it seems that i cant read or need help. Im new to tcl scripting so i like to try to keep things simple. Id rather have a command or whatever added to my first code so that i can learn from it and understand how it works. Yes you guys make scripts that work how i need th...
by Gemster
Mon Mar 07, 2011 3:48 pm
Forum: Scripting Help
Topic: can't read "chan": no such variable
Replies: 13
Views: 12826

Thanks but dont need # does a channel to send whois info exist? if {[info exists ::whereWhois]} { as the chan does exist as i type .whome in that channel. Dont need # is it the bots nick? if {[isbotnick $nick]} { The bot is called Stoner and the command is "whois Stoner" basically i know t...
by Gemster
Mon Mar 07, 2011 3:12 pm
Forum: Scripting Help
Topic: can't read "chan": no such variable
Replies: 13
Views: 12826

Thanks caesar, I think you may have missunderstud a little. There is no user for it to whois, it whois itself. Basically this is for me to grab the bots modes when needed to check them. bind raw - 379 whois:stoner proc whois:stoner {from keyword text} { putserv "PRIVMSG #opers :My Modes are \00...
by Gemster
Mon Mar 07, 2011 7:11 am
Forum: Scripting Help
Topic: can't read "chan": no such variable
Replies: 13
Views: 12826

caesar wrote:The variables 'from keyword text' are correct. The $chan variable needs to declared before is used, thus why it complains about it can't be read.

Anyway, what you want to accomplish?
I need to use $chan instead of #opers, so it will reply in any channel that me and the bot is in.

Thanks
Gemster
by Gemster
Sun Mar 06, 2011 8:36 pm
Forum: Scripting Help
Topic: can't read "chan": no such variable
Replies: 13
Views: 12826

can't read "chan": no such variable

Hi i think i know the problem but not sure how to resolve it :/ bind raw - 379 whois:stoner proc whois:stoner {from keyword text} { putserv "PRIVMSG #opers :My Modes are \00310[lrange $text 5 end]\003" } This works fine but when i change channel #opers to $chan i get can't read "chan&...
by Gemster
Sun Mar 06, 2011 7:14 pm
Forum: Scripting Help
Topic: read from a file ?
Replies: 10
Views: 6594

I know yours does that nml375, but id like to learn this but i cant as i dont understand your script. The script i posted i made my self and took a few hours as for googleing everything but the examples i seen for "gets" i just cant get them to work. The main reason i need to learn is that...
by Gemster
Sun Mar 06, 2011 6:53 pm
Forum: Scripting Help
Topic: read from a file ?
Replies: 10
Views: 6594

I still dont understand that script you posted lol

Ill i want is a command that will read from a file ?

Thanks
Gemster
by Gemster
Sun Mar 06, 2011 3:10 pm
Forum: Scripting Help
Topic: read from a file ?
Replies: 10
Views: 6594

Thanks nml375, but thats kinda too complicated for me to understand atm lol, im new to tcl scripting.

Is it possible to use the code i posted but will a read command that will msg channel ###1 the output ?

The file is written as a list like this:

#channel1
#channel2
#channel3

Thanks
Gemster
by Gemster
Sun Mar 06, 2011 2:02 pm
Forum: Scripting Help
Topic: read from a file ?
Replies: 10
Views: 6594

read from a file ?

Hi, how do i make this read from the file and output it ? bind raw - 322 channel:list proc channel:list {from keyword text} { set cl [open scripts/chanlist.txt a+] puts $cl "[lindex $text 1]" close $cl } bind pub - ".chanlist" chanlist proc chanlist {nick uhost hand chan text} { ...
by Gemster
Sun Feb 27, 2011 5:51 pm
Forum: Eggdrop Help
Topic: Why is raw events such a bad thing ?
Replies: 1
Views: 2476

Why is raw events such a bad thing ?

Hi,

I dont get it, in all docs ect it states that using raw numberic events is a bad thing but i dont see how it is if u have the correct raw numberic.

Thanks
Gemster
by Gemster
Sun Feb 27, 2011 4:15 pm
Forum: Script Requests
Topic: grabbing notices from operserv and relay them to a channel ?
Replies: 14
Views: 8493

Ya it needed "* TS Control *" as match patten. After the last reply i was messing with it and got it working and was just about to reply back saying that :D

Thanks
Gemster
by Gemster
Sun Feb 27, 2011 4:08 pm
Forum: Script Requests
Topic: grabbing notices from operserv and relay them to a channel ?
Replies: 14
Views: 8493

Nope, that dont work either and no errors :/

Thanks
Gemster