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.

Script bug help

Help for those learning Tcl or writing their own scripts.
Post Reply
T
TEK7
Voice
Posts: 10
Joined: Sat Apr 10, 2010 10:49 am

Script bug help

Post by TEK7 »

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

Code: Select all

bind pub -|- "5on5" 5on5
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?
r
raider2k
Op
Posts: 140
Joined: Tue Jan 01, 2008 10:42 am

Post by raider2k »

you might want to change "5Nick" to "$Nick" so nick becomes a variable like its supossed to be.
User avatar
CrazyCat
Revered One
Posts: 1299
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

And you'd better use color abd formating rules when writing scripts (ascci, not client)
T
TEK7
Voice
Posts: 10
Joined: Sat Apr 10, 2010 10:49 am

Post by TEK7 »

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?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Here, check out this post for an example on detecting actions.
Post Reply