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.
V
Vynn
Post
by Vynn » Sat Nov 02, 2002 6:47 pm
Hello guys, I am having some problem with this lol script. Below are some codes I got from the lol.tcl. Guide me pls.
Code: Select all
bind pub o !act proc:act
proc proc:act { nick uhost hand channel rest } {
set sendchan [lindex $a 0]
set sendact [lrange $a 1]
putserv "PRIVMSG $sendchan :$sendact"
}
Whenever I tried !act blah blah, it gives me this error msg.
[06:32] Tcl error [proc:act]: can't read "a": no such variable
I totally do not understand tcl language. But from what i compared with this, I guess this is the line which gives the error.
proc proc:act { nick uhost hand channel rest } {
Help appreciated.
D
Dr-007
Post
by Dr-007 » Sat Nov 02, 2002 7:20 pm
bind pubm - !act proc:act
proc proc:act { nick uhost hand channel rest } {
putserv "privmsg $channel :$rest"
}
---
---
if you wanna add the functions for only ops and crap then contact me @ efnet or mail me (
dr007@skall.no ) my nick @ efnet is Dr-007
V
Vynn
Post
by Vynn » Sat Nov 02, 2002 7:34 pm
Code: Select all
bind pubm - !act proc:act
proc proc:act { nick uhost hand channel rest } {
putserv "privmsg $channel :$rest"
}
Or
Code: Select all
bind pub - !act proc:act
proc proc:act { nick uhost hand channel rest } {
putserv "privmsg $channel :$rest"
}
Note the difference pubm and pub
V
Vynn
Post
by Vynn » Sat Nov 02, 2002 8:24 pm
Ah.. It's working now. But, I *think* I did not state clearly what I want.. This !act command, is the same as !say in the lol.tcl script. =/
What I want is, when I did a !act slap nick, the bot will execute /me slap nick. Is it possible ? If yes, can someone give me the code pls ? Thanks
D
Dr-007
Post
by Dr-007 » Sun Nov 03, 2002 12:46 pm
oh, use
putserv "PRIVMSG $channel :\001ACTION $rest\001"
V
Vynn
Post
by Vynn » Mon Nov 04, 2002 12:44 pm