egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Script bug help

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
TEK7
Voice


Joined: 10 Apr 2010
Posts: 10

PostPosted: Sun Jul 04, 2010 7:44 am    Post subject: Script bug help Reply with quote

I have this.

Code:
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:
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?
Back to top
View user's profile Send private message
raider2k
Op


Joined: 01 Jan 2008
Posts: 140

PostPosted: Sun Jul 04, 2010 8:46 am    Post subject: Reply with quote

you might want to change "5Nick" to "$Nick" so nick becomes a variable like its supossed to be.
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Sun Jul 04, 2010 11:00 am    Post subject: Reply with quote

And you'd better use color abd formating rules when writing scripts (ascci, not client)
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
TEK7
Voice


Joined: 10 Apr 2010
Posts: 10

PostPosted: Sun Jul 04, 2010 3:35 pm    Post subject: Reply with quote

Code:
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?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Jul 05, 2010 5:01 pm    Post subject: Reply with quote

Here, check out this post for an example on detecting actions.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber