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 

help with action binds

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


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Tue Dec 18, 2007 2:44 am    Post subject: help with action binds Reply with quote

I'm trying to make an action script on certain words said and bot will display a random message from text file..

I have tried this bind:
bind act - "*hey*" acttext

Tried a few other ways but no go Sad
Back to top
View user's profile Send private message
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Tue Dec 18, 2007 3:28 am    Post subject: Reply with quote

Hi there

I think that bind act is for situations when someone does an action on the botnet.
I think you want to use this : bind ctcp - ACTION
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Tue Dec 18, 2007 3:49 am    Post subject: Reply with quote

Thats where I get confused when I read help document because I'm clueless where to set it to go off on "*hey*" since ACTION is going there instead.
Back to top
View user's profile Send private message
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Tue Dec 18, 2007 4:00 am    Post subject: Reply with quote

I think that in the body or your proc acttext, you have to make a test like this :
Code:
if [string match -nocase "*hey*" $arg]

I m not a coder, but some months ago i asked for a script to prevent flood by actions, Sir_Fz gave me this code, it can help you to see how to use the bind with action : http://forum.egghelp.org/viewtopic.php?t=13689&highlight=bind+action
Good luck
Back to top
View user's profile Send private message
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