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.
Help for those learning Tcl or writing their own scripts.
TEK7
Voice
Posts: 10 Joined: Sat Apr 10, 2010 10:49 am
Post
by TEK7 » Sun Jul 04, 2010 7:44 am
I have this.
Code: Select all
proc 5on5 { 5on5 mad7684 mad8594 mad873 mad8954 args } {
global pcwon pvtmsg
if { $pcwon == 1 } {
putquick "PRIVMSG $pvtmsg :5Nick: 14$mad7684 Host: 14$mad8594 Msg: 2$mad8954"
}
}
and work with this
but when someone says "5on5 .." the bot sends to me
"5Nick: 14~
legeNd@zNeater.users.quakenet.org Host: 14* Msg: 2laskdlakdl"
he don't send me nick.. on nick he says "*" Can help me?
raider2k
Op
Posts: 140 Joined: Tue Jan 01, 2008 10:42 am
Post
by raider2k » Sun Jul 04, 2010 8:46 am
you might want to change "5Nick" to "$Nick" so nick becomes a variable like its supossed to be.
TEK7
Voice
Posts: 10 Joined: Sat Apr 10, 2010 10:49 am
Post
by TEK7 » Sun Jul 04, 2010 3:35 pm
Code: Select all
bind pub -|- "5on5" cinco
proc cinco { nick host handle channel text } {
global pcwon pvtmsg
if { $pcwon == 1 } {
putquick "PRIVMSG $pvtmsg : Nick: 2$nick Msg:7 5on5 $text"
}
}
He detects the message, but when i put /ame 5on5 lasdlasld he dont detect :s can help me?
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Mon Jul 05, 2010 5:01 pm
Here, check out
this post for an example on detecting actions.